* ppc64: BPA iommu fails to build (BUILD_BUG_ON)
@ 2005-09-17 8:10 Alexey Dobriyan
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2005-09-17 8:10 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linuxppc64-dev, linux-kernel
After a patch to make BUILD_BUG_ON error at compile-time went in
2.6.14-git1, arch/ppc64/kernel/bpa_iommu.c fails to build:
CC arch/ppc64/kernel/bpa_iommu.o
arch/ppc64/kernel/bpa_iommu.c: In function `get_iost_entry':
arch/ppc64/kernel/bpa_iommu.c:102: error: size of array `type name' is negative
static inline __attribute__((always_inline)) ioste get_iost_entry(unsigned long iopt_base, unsigned long io_address, unsigned page_size)
{
unsigned long ps;
unsigned long iostep;
unsigned long nnpt;
unsigned long shift;
switch (page_size) {
case 0x1000000:
^^^^^^^^^
ps = IOST_PS_16M;
nnpt = 0;
shift = 5;
break;
...
default:
((void)sizeof(char[1 - 2*!!(1)]));
break;
ioste = get_iost_entry(0x10000000000ul, address, 0x1000000);
^^^^^^^^^
gcc is powerpc64-unknown-linux-gnu-gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ppc64: BPA iommu fails to build (BUILD_BUG_ON)
[not found] <OFC125707F.002C0D91-ONC125707F.002C0D91-C125707F.002C0D95@de.ibm.com>
@ 2005-09-17 17:22 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2005-09-17 17:22 UTC (permalink / raw)
To: adobriyan; +Cc: paulus, linuxppc64-dev, linux-kernel, jordi_caubet
On Sünnavend 17 September 2005 10:01, Alexey Dobriyan wrote:
> After a patch to make BUILD_BUG_ON error at compile-time went in
> 2.6.14-git1, arch/ppc64/kernel/bpa_iommu.c fails to build
This patch fixes that, I forgot to send it out with the previous updates.
Please apply.
Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Index: linux-cg/arch/ppc64/kernel/bpa_iommu.c
===================================================================
--- linux-cg.orig/arch/ppc64/kernel/bpa_iommu.c
+++ linux-cg/arch/ppc64/kernel/bpa_iommu.c
@@ -99,7 +99,7 @@ get_iost_entry(unsigned long iopt_base,
break;
default: /* not a known compile time constant */
- BUILD_BUG_ON(1);
+ BUG();
break;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-17 17:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <OFC125707F.002C0D91-ONC125707F.002C0D91-C125707F.002C0D95@de.ibm.com>
2005-09-17 17:22 ` ppc64: BPA iommu fails to build (BUILD_BUG_ON) Arnd Bergmann
2005-09-17 8:10 Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox