projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] bogus BUILD_BUG_ON() in bpa_iommu
[linux-2.6-block.git]
/
arch
/
ppc64
/
kernel
/
bpa_iommu.c
diff --git
a/arch/ppc64/kernel/bpa_iommu.c
b/arch/ppc64/kernel/bpa_iommu.c
index f33a7bccb0d780ed4e66f03b0acf8113c5776cfe..507eb9d0223faef5f97d430051ebbd658f19c5b8 100644
(file)
--- a/
arch/ppc64/kernel/bpa_iommu.c
+++ b/
arch/ppc64/kernel/bpa_iommu.c
@@
-99,7
+99,11
@@
get_iost_entry(unsigned long iopt_base, unsigned long io_address, unsigned page_
break;
default: /* not a known compile time constant */
- BUILD_BUG_ON(1);
+ {
+ /* BUILD_BUG_ON() is not usable here */
+ extern void __get_iost_entry_bad_page_size(void);
+ __get_iost_entry_bad_page_size();
+ }
break;
}