linux-next: build failure after merge of the asm-generic tree
Hi Arnd,
After merging the asm-generic tree, today's linux-next build (powerpc allnoconfig) failed like this:
arch/powerpc/kernel/iomap.c:18:14: error: conflicting types for 'ioread8'
unsigned int ioread8(void __iomem *addr)
^~~~~~~
In file included from arch/powerpc/include/asm/io.h:653,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:32,
from arch/powerpc/kernel/iomap.c:7:
include/asm-generic/iomap.h:29:21: note: previous declaration of 'ioread8' was here
extern unsigned int ioread8(const void __iomem *addr);
^~~~~~~
arch/powerpc/kernel/iomap.c:22:14: error: conflicting types for 'ioread16'
unsigned int ioread16(void __iomem *addr)
^~~~~~~~
In file included from arch/powerpc/include/asm/io.h:653,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:32,
from arch/powerpc/kernel/iomap.c:7:
include/asm-generic/iomap.h:30:21: note: previous declaration of 'ioread16' was here
extern unsigned int ioread16(const void __iomem *addr);
^~~~~~~~
arch/powerpc/kernel/iomap.c:26:14: error: conflicting types for 'ioread16be'
unsigned int ioread16be(void __iomem *addr)
^~~~~~~~~~
In file included from arch/powerpc/include/asm/io.h:653,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:32,
from arch/powerpc/kernel/iomap.c:7:
include/asm-generic/iomap.h:31:21: note: previous declaration of 'ioread16be' was here
extern unsigned int ioread16be(const void __iomem *addr);
^~~~~~~~~~
arch/powerpc/kernel/iomap.c:30:14: error: conflicting types for 'ioread32'
unsigned int ioread32(void __iomem *addr)
^~~~~~~~
In file included from arch/powerpc/include/asm/io.h:653,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:32,
from arch/powerpc/kernel/iomap.c:7:
include/asm-generic/iomap.h:32:21: note: previous declaration of 'ioread32' was here
extern unsigned int ioread32(const void __iomem *addr);
^~~~~~~~
arch/powerpc/kernel/iomap.c:34:14: error: conflicting types for 'ioread32be'
unsigned int ioread32be(void __iomem *addr)
^~~~~~~~~~
In file included from arch/powerpc/include/asm/io.h:653,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:32,
from arch/powerpc/kernel/iomap.c:7:
include/asm-generic/iomap.h:33:21: note: previous declaration of 'ioread32be' was here
extern unsigned int ioread32be(const void __iomem *addr);
^~~~~~~~~~
arch/powerpc/kernel/iomap.c:142:6: error: conflicting types for 'ioread8_rep'
void ioread8_rep(void __iomem *addr, void *dst, unsigned long count)
^~~~~~~~~~~
In file included from arch/powerpc/include/asm/io.h:653,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:32,
from arch/powerpc/kernel/iomap.c:7:
include/asm-generic/iomap.h:82:13: note: previous declaration of 'ioread8_rep' was here
extern void ioread8_rep(const void __iomem *port, void *buf, unsigned long count);
^~~~~~~~~~~
arch/powerpc/kernel/iomap.c:146:6: error: conflicting types for 'ioread16_rep'
void ioread16_rep(void __iomem *addr, void *dst, unsigned long count)
^~~~~~~~~~~~
In file included from arch/powerpc/include/asm/io.h:653,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:32,
from arch/powerpc/kernel/iomap.c:7:
include/asm-generic/iomap.h:83:13: note: previous declaration of 'ioread16_rep' was here
extern void ioread16_rep(const void __iomem *port, void *buf, unsigned long count);
^~~~~~~~~~~~
arch/powerpc/kernel/iomap.c:150:6: error: conflicting types for 'ioread32_rep'
void ioread32_rep(void __iomem *addr, void *dst, unsigned long count)
^~~~~~~~~~~~
In file included from arch/powerpc/include/asm/io.h:653,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:32,
from arch/powerpc/kernel/iomap.c:7:
include/asm-generic/iomap.h:84:13: note: previous declaration of 'ioread32_rep' was here
extern void ioread32_rep(const void __iomem *port, void *buf, unsigned long count);
^~~~~~~~~~~~Caused by commit
8e074c243ed3 ("iomap: add missing const to ioread*/iowrite addr arg")
The const qualifiers are also missing in:
arch/parisc/lib/iomap.carch/sh/kernel/iomap.c
I have reverted that commit for today.
BTW, that commit only added the const to the ioread* functions ...
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen, Arnd,
Quoted 6 lines
After merging the asm-generic tree, today's linux-next build (powerpc allnoconfig) failed like this:
...
Caused by commit
8e074c243ed3("iomap: add missing const to ioread*/iowrite addr arg")
I have prepared a patch addressing this issue, and am currently building it with a powerpc cross compiler. I'll submit it once it's done. Please tell me if I should update the initial patch instead.
Quoted 4 lines
The const qualifiers are also missing in:
arch/parisc/lib/iomap.carch/sh/kernel/iomap.c
I also have patches for these architectures, but it is more complicated for me to test them with a cross compiler. Should I still submit them?
Quoted 3 lines
I have reverted that commit for today.
BTW, that commit only added the const to the ioread* functions ...
Yes, and it does not even make sense to add a const qualifier to the addr argument in the iowrite case. That was a bad commit message.
Thanks, and sorry for the trouble.
regards,
Hugo
Signature · 3 lines
Hugo Lefeuvre (hle) | www.owl.eu.com RSA4096_ 360B 03B3 BF27 4F4D 7A3F D5E8 14AA 1EB8 A247 3DFD ed25519_ 37B2 6D38 0B25 B8A2 6B9F 3A65 A36F 5357 5F2D DC4C
Quoted 14 lines · Hugo Lefeuvre
Hi Stephen, Arnd,
Quoted 6 lines
After merging the asm-generic tree, today's linux-next build (powerpc allnoconfig) failed like this:
...
Caused by commit
8e074c243ed3("iomap: add missing const to ioread*/iowrite addr arg")I have prepared a patch addressing this issue, and am currently building it with a powerpc cross compiler. I'll submit it once it's done. Please tell me if I should update the initial patch instead.
Quoted 7 lines
Quoted 4 lines
The const qualifiers are also missing in:
arch/parisc/lib/iomap.carch/sh/kernel/iomap.cI also have patches for these architectures, but it is more complicated for me to test them with a cross compiler. Should I still submit them?
I'm not sending a pull request for this if it breaks any architectures, so I think we need to fix them all, and I suppose we also have to change all architectures in the same patch that changes the architecture independent declaration, so it doesn't break intermittently.
At this point, I'd probably drop your patches from my asm-generic tree entirely to avoid the regression, and wait for you to resend them all after 5.1-rc1, for inclusion in 5.2.
Can you elaborate on the original problem that you saw? Maybe we can have a different workaround for it in the meantime.
Arnd
Quoted 11 lines
I'm not sending a pull request for this if it breaks any architectures, so I think we need to fix them all, and I suppose we also have to change all architectures in the same patch that changes the architecture independent declaration, so it doesn't break intermittently.
At this point, I'd probably drop your patches from my asm-generic tree entirely to avoid the regression, and wait for you to resend them all after 5.1-rc1, for inclusion in 5.2.
Can you elaborate on the original problem that you saw? Maybe we can have a different workaround for it in the meantime.
Agree, these two patches should be dropped:
1. iomap: add missing const to ioread*/iowrite addr arg
since there are incompatible definitions or declarations in
arch/alpha/include/asm/core_apecs.harch/alpha/include/asm/core_cia.harch/alpha/include/asm/core_lca.harch/alpha/include/asm/core_marvel.harch/alpha/include/asm/core_mcpcia.harch/alpha/include/asm/core_t2.harch/alpha/include/asm/io.harch/alpha/include/asm/io_trivial.harch/alpha/include/asm/jensen.harch/alpha/include/asm/machvec.harch/alpha/kernel/core_marvel.carch/alpha/kernel/io.carch/parisc/lib/iomap.carch/powerpc/kernel/iomap.carch/sh/kernel/iomap.c
2. lib/iomap: add missing const to mmio_ins* addr arg
since there are incompatible definitions or declarations in
arch/sh/kernel/iomap.c
I will resubmit them with all changes required for arch/. The ones for alpha, powerpc and sh are already ready and built with cross compiler. I still have to setup a cross compiler to build my parisc changes.
Thanks,
regards,
Hugo
Signature · 3 lines
Hugo Lefeuvre (hle) | www.owl.eu.com RSA4096_ 360B 03B3 BF27 4F4D 7A3F D5E8 14AA 1EB8 A247 3DFD ed25519_ 37B2 6D38 0B25 B8A2 6B9F 3A65 A36F 5357 5F2D DC4C
Quoted 37 lines · Hugo Lefeuvre
Quoted 6 lines
I'm not sending a pull request for this if it breaks any architectures, so I think we need to fix them all, and I suppose we also have to change all architectures in the same patch that changes the architecture independent declaration, so it doesn't break intermittently.
Quoted 6 lines
At this point, I'd probably drop your patches from my asm-generic tree entirely to avoid the regression, and wait for you to resend them all after 5.1-rc1, for inclusion in 5.2.
Can you elaborate on the original problem that you saw? Maybe we can have a different workaround for it in the meantime.
Agree, these two patches should be dropped:
1. iomap: add missing const to ioread*/iowrite addr arg
since there are incompatible definitions or declarations in
arch/alpha/include/asm/core_apecs.harch/alpha/include/asm/core_cia.harch/alpha/include/asm/core_lca.harch/alpha/include/asm/core_marvel.harch/alpha/include/asm/core_mcpcia.harch/alpha/include/asm/core_t2.harch/alpha/include/asm/io.harch/alpha/include/asm/io_trivial.harch/alpha/include/asm/jensen.harch/alpha/include/asm/machvec.harch/alpha/kernel/core_marvel.carch/alpha/kernel/io.carch/parisc/lib/iomap.carch/powerpc/kernel/iomap.carch/sh/kernel/iomap.c2. lib/iomap: add missing const to mmio_ins* addr arg
Quoted 7 lines
since there are incompatible definitions or declarations in
arch/sh/kernel/iomap.cI will resubmit them with all changes required for
arch/. The ones for alpha, powerpc and sh are already ready and built with cross compiler. I still have to setup a cross compiler to build my parisc changes.
I've dropped all your patches for the moment, since one of the remaining ones had a conflict against changes in the char-misc tree, and the last one didn't do much by itself.
Please submit the full set again after -rc1.
Arnd