xen/tmem: use BUILD_BUG_ON() in favor of BUG_ON()
authorJan Beulich <JBeulich@suse.com>
Thu, 28 May 2015 12:04:33 +0000 (13:04 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 28 May 2015 14:12:59 +0000 (15:12 +0100)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/tmem.c

index c4211a3..c87fdee 100644 (file)
@@ -395,7 +395,7 @@ static int __init xen_tmem_init(void)
        }
 #endif
 #ifdef CONFIG_CLEANCACHE
-       BUG_ON(sizeof(struct cleancache_filekey) != sizeof(struct tmem_oid));
+       BUILD_BUG_ON(sizeof(struct cleancache_filekey) != sizeof(struct tmem_oid));
        if (tmem_enabled && cleancache) {
                int err;