include/asm-alpha/core_cia.h, kernel 2.6.23.12
PATCH 1/1 include/asm-alpha/core_cia.h, kernel 2.6.23.12
[please Cc: me on followups]
Trying to compile 2.6.23.12 on alpha (a miata) resulted in this failure:
cc1: warnings being treated as errorsinclude/asm/io_trivial.h: In function 'cia_readb':include/asm/io_trivial.h:75: warning: passing argument 1 of 'cia_ioread8' discards qualifiers from pointer target type
This trivial patch to include/asm-alpha/core_cia.h fixed it
src/linux-2.6.23.12/include/asm-alpha/core_cia.h renamed from include/asm-alpha/core_cia.h +6 -6
@@ -341,7 +341,7 @@#define vuip volatile unsigned int __force *#define vulp volatile unsigned long __force * -__EXTERN_INLINE unsigned int cia_ioread8(void __iomem *xaddr) +__EXTERN_INLINE unsigned int cia_ioread8(const volatile void __iomem *xaddr) {unsigned long addr = (unsigned long ) xaddr;unsigned long result, base_and_type;
@@ -358,7 +358,7 @@return __kernel_extbl (result, addr &3 ); } -__EXTERN_INLINE void cia_iowrite8(u8 b, void __iomem *xaddr) +__EXTERN_INLINE void cia_iowrite8(u8 b, volatile void __iomem *xaddr) {unsigned long addr = (unsigned long ) xaddr;unsigned long w, base_and_type;
@@ -373,7 +373,7 @@ *(vuip) ((addr <<5 ) + base_and_type) = w; } -__EXTERN_INLINE unsigned int cia_ioread16(void __iomem *xaddr) +__EXTERN_INLINE unsigned int cia_ioread16(const volatile void __iomem *xaddr) {unsigned long addr = (unsigned long ) xaddr;unsigned long result, base_and_type;
@@ -388,7 +388,7 @@return __kernel_extwl (result, addr &3 ); } -__EXTERN_INLINE void cia_iowrite16(u16 b, void __iomem *xaddr) +__EXTERN_INLINE void cia_iowrite16(u16 b, volatile void __iomem *xaddr) {unsigned long addr = (unsigned long ) xaddr;unsigned long w, base_and_type;
@@ -403,7 +403,7 @@ *(vuip) ((addr <<5 ) + base_and_type) = w; } -__EXTERN_INLINE unsigned int cia_ioread32(void __iomem *xaddr) +__EXTERN_INLINE unsigned int cia_ioread32(const volatile void __iomem *xaddr) {unsigned long addr = (unsigned long ) xaddr;if (addr <CIA_DENSE_MEM )
@@ -411,7 +411,7 @@return *(vuip )addr; } -__EXTERN_INLINE void cia_iowrite32(u32 b, void __iomem *xaddr) +__EXTERN_INLINE void cia_iowrite32(u32 b, volatile void __iomem *xaddr) {unsigned long addr = (unsigned long ) xaddr;if (addr <CIA_DENSE_MEM )
Signed-off-by Anders Hammarquist <[email protected]>
Signature · 4 lines
-- Of course I'm crazy, but that doesn't mean I'm wrong. Anders Hammarquist | [email protected] Physics student, Chalmers University of Technology, | Hem: +46 31 88 48 50 G|teborg, Sweden. RADIO: SM6XMM and N2JGL | Mob: +46 707 27 86 87
Quoted 6 lines · Anders Hammarquist
Trying to compile 2.6.23.12 on alpha (a miata) resulted in this failure:
cc1: warnings being treated as errors
include/asm/io_trivial.h: In function 'cia_readb':include/asm/io_trivial.h:75: warning: passing argument 1 of 'cia_ioread8' discards qualifiers from pointer target type
Fixed in 2.6.24-rc6.
Ivan.