aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/tmem.c
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2015-05-28 13:04:33 +0100
committerDavid Vrabel <david.vrabel@citrix.com>2015-05-28 15:12:59 +0100
commit01b720f3295b6c1b2dcfc1affd0fedc6f5d28c1e (patch)
treeda79878e7fb04b42241a7d56bb9c974912665d71 /drivers/xen/tmem.c
parenthvc_xen: avoid uninitialized variable warning (diff)
downloadlinux-dev-01b720f3295b6c1b2dcfc1affd0fedc6f5d28c1e.tar.xz
linux-dev-01b720f3295b6c1b2dcfc1affd0fedc6f5d28c1e.zip
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>
Diffstat (limited to 'drivers/xen/tmem.c')
-rw-r--r--drivers/xen/tmem.c2
1 files changed, 1 insertions, 1 deletions
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;