Explorar el Código

xen/tmem: use BUILD_BUG_ON() in favor of BUG_ON()

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Jan Beulich hace 10 años
padre
commit
01b720f329
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      drivers/xen/tmem.c

+ 1 - 1
drivers/xen/tmem.c

@@ -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;