Skip to content

Commit

Permalink
xen/tmem: use BUILD_BUG_ON() in favor of BUG_ON()
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
  • Loading branch information
Jan Beulich authored and David Vrabel committed May 28, 2015
1 parent c4ace5d commit 01b720f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/tmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 01b720f

Please sign in to comment.