[PATCH] bogus BUILD_BUG_ON() in bpa_iommu

BUILD_BUG_ON(1) is asking for trouble (and getting it) when used in that
manner - dead code elimination happens after we parse it and invalid
type is invalid type, dead code or not.

It might be version-dependent, but at least 4.0.1 refuses to accept
that.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Al Viro and committed by Linus Torvalds c215a16a 47358857

+5 -1
+5 -1
arch/ppc64/kernel/bpa_iommu.c
··· 99 99 break; 100 100 101 101 default: /* not a known compile time constant */ 102 - BUILD_BUG_ON(1); 102 + { 103 + /* BUILD_BUG_ON() is not usable here */ 104 + extern void __get_iost_entry_bad_page_size(void); 105 + __get_iost_entry_bad_page_size(); 106 + } 103 107 break; 104 108 } 105 109