Commit 2e02e15b authored by Jesse Barnes's avatar Jesse Barnes Committed by Tony Luck

[IA64-SGI] more sparse I/O accessor fixes

I forgot to add 'const volatile' to the I/O read/write functions in the last
patch, and also forgot to update the _relaxed variants.  This patch fixes
that by adding 'const volatile' to the sn2 specific read/write routines as
well as the ia64 machine vector wrappers.
Signed-off-by: default avatarJesse Barnes <jbarnes@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 83ffe4f0
...@@ -62,14 +62,14 @@ typedef unsigned int ia64_mv_inl_t (unsigned long); ...@@ -62,14 +62,14 @@ typedef unsigned int ia64_mv_inl_t (unsigned long);
typedef void ia64_mv_outb_t (unsigned char, unsigned long); typedef void ia64_mv_outb_t (unsigned char, unsigned long);
typedef void ia64_mv_outw_t (unsigned short, unsigned long); typedef void ia64_mv_outw_t (unsigned short, unsigned long);
typedef void ia64_mv_outl_t (unsigned int, unsigned long); typedef void ia64_mv_outl_t (unsigned int, unsigned long);
typedef unsigned char ia64_mv_readb_t (void __iomem *); typedef unsigned char ia64_mv_readb_t (const volatile void __iomem *);
typedef unsigned short ia64_mv_readw_t (void __iomem *); typedef unsigned short ia64_mv_readw_t (const volatile void __iomem *);
typedef unsigned int ia64_mv_readl_t (void __iomem *); typedef unsigned int ia64_mv_readl_t (const volatile void __iomem *);
typedef unsigned long ia64_mv_readq_t (void __iomem *); typedef unsigned long ia64_mv_readq_t (const volatile void __iomem *);
typedef unsigned char ia64_mv_readb_relaxed_t (void __iomem *); typedef unsigned char ia64_mv_readb_relaxed_t (const volatile void __iomem *);
typedef unsigned short ia64_mv_readw_relaxed_t (void __iomem *); typedef unsigned short ia64_mv_readw_relaxed_t (const volatile void __iomem *);
typedef unsigned int ia64_mv_readl_relaxed_t (void __iomem *); typedef unsigned int ia64_mv_readl_relaxed_t (const volatile void __iomem *);
typedef unsigned long ia64_mv_readq_relaxed_t (void __iomem *); typedef unsigned long ia64_mv_readq_relaxed_t (const volatile void __iomem *);
static inline void static inline void
machvec_noop (void) machvec_noop (void)
......
...@@ -129,7 +129,7 @@ ___sn_outl (unsigned int val, unsigned long port) ...@@ -129,7 +129,7 @@ ___sn_outl (unsigned int val, unsigned long port)
*/ */
static inline unsigned char static inline unsigned char
___sn_readb (void __iomem *addr) ___sn_readb (const volatile void __iomem *addr)
{ {
unsigned char val; unsigned char val;
...@@ -140,7 +140,7 @@ ___sn_readb (void __iomem *addr) ...@@ -140,7 +140,7 @@ ___sn_readb (void __iomem *addr)
} }
static inline unsigned short static inline unsigned short
___sn_readw (void __iomem *addr) ___sn_readw (const volatile void __iomem *addr)
{ {
unsigned short val; unsigned short val;
...@@ -151,7 +151,7 @@ ___sn_readw (void __iomem *addr) ...@@ -151,7 +151,7 @@ ___sn_readw (void __iomem *addr)
} }
static inline unsigned int static inline unsigned int
___sn_readl (void __iomem *addr) ___sn_readl (const volatile void __iomem *addr)
{ {
unsigned int val; unsigned int val;
...@@ -162,7 +162,7 @@ ___sn_readl (void __iomem *addr) ...@@ -162,7 +162,7 @@ ___sn_readl (void __iomem *addr)
} }
static inline unsigned long static inline unsigned long
___sn_readq (void __iomem *addr) ___sn_readq (const volatile void __iomem *addr)
{ {
unsigned long val; unsigned long val;
...@@ -215,27 +215,27 @@ sn_inl_fast (unsigned long port) ...@@ -215,27 +215,27 @@ sn_inl_fast (unsigned long port)
} }
static inline unsigned char static inline unsigned char
___sn_readb_relaxed (void *addr) ___sn_readb_relaxed (const volatile void __iomem *addr)
{ {
return *(volatile unsigned char *)addr; return *(volatile unsigned char __force *)addr;
} }
static inline unsigned short static inline unsigned short
___sn_readw_relaxed (void *addr) ___sn_readw_relaxed (const volatile void __iomem *addr)
{ {
return *(volatile unsigned short *)addr; return *(volatile unsigned short __force *)addr;
} }
static inline unsigned int static inline unsigned int
___sn_readl_relaxed (void *addr) ___sn_readl_relaxed (const volatile void __iomem *addr)
{ {
return *(volatile unsigned int *) addr; return *(volatile unsigned int __force *) addr;
} }
static inline unsigned long static inline unsigned long
___sn_readq_relaxed (void *addr) ___sn_readq_relaxed (const volatile void __iomem *addr)
{ {
return *(volatile unsigned long *) addr; return *(volatile unsigned long __force *) addr;
} }
struct pci_dev; struct pci_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment