From: Jan Beulich Date: Thu, 28 May 2015 12:04:33 +0000 (+0100) Subject: xen/tmem: use BUILD_BUG_ON() in favor of BUG_ON() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01b720f3295b6c1b2dcfc1affd0fedc6f5d28c1e;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git xen/tmem: use BUILD_BUG_ON() in favor of BUG_ON() Signed-off-by: Jan Beulich Signed-off-by: David Vrabel --- diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index c4211a31612d..c87fdee13ee9 100644 --- a/drivers/xen/tmem.c +++ b/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;