Skip to contentSkip to conversation

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

PATCH New Jan Beulich 1 participant 1 message May 28, 2015 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

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

---
 drivers/xen/tmem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---
v2: Drop the description at David's request.

drivers/xen/tmem.c +1 -1
@@ -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;