* [PATCH] fix prototypes of reads[bwl]() on sparc64
@ 2025-08-10 3:42 Al Viro
2025-09-19 18:02 ` Andreas Larsson
0 siblings, 1 reply; 3+ messages in thread
From: Al Viro @ 2025-08-10 3:42 UTC (permalink / raw)
To: sparclinux; +Cc: linux-arch
Conventions for readsl() are the same as for readl() - any __iomem
pointer is acceptable, both const and volatile ones being OK. Same
for readsb() and readsw().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/arch/sparc/include/asm/io_64.h b/arch/sparc/include/asm/io_64.h
index c9528e4719cd..d8ed296624af 100644
--- a/arch/sparc/include/asm/io_64.h
+++ b/arch/sparc/include/asm/io_64.h
@@ -250,19 +250,19 @@ void insl(unsigned long, void *, unsigned long);
#define insw insw
#define insl insl
-static inline void readsb(void __iomem *port, void *buf, unsigned long count)
+static inline void readsb(const volatile void __iomem *port, void *buf, unsigned long count)
{
insb((unsigned long __force)port, buf, count);
}
#define readsb readsb
-static inline void readsw(void __iomem *port, void *buf, unsigned long count)
+static inline void readsw(const volatile void __iomem *port, void *buf, unsigned long count)
{
insw((unsigned long __force)port, buf, count);
}
#define readsw readsw
-static inline void readsl(void __iomem *port, void *buf, unsigned long count)
+static inline void readsl(const volatile void __iomem *port, void *buf, unsigned long count)
{
insl((unsigned long __force)port, buf, count);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] fix prototypes of reads[bwl]() on sparc64
2025-08-10 3:42 [PATCH] fix prototypes of reads[bwl]() on sparc64 Al Viro
@ 2025-09-19 18:02 ` Andreas Larsson
2025-09-19 18:58 ` Andreas Larsson
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Larsson @ 2025-09-19 18:02 UTC (permalink / raw)
To: Al Viro, sparclinux; +Cc: linux-arch
On 2025-08-10 05:42, Al Viro wrote:
> Conventions for readsl() are the same as for readl() - any __iomem
> pointer is acceptable, both const and volatile ones being OK. Same
> for readsb() and readsw().
>
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> ---
> diff --git a/arch/sparc/include/asm/io_64.h b/arch/sparc/include/asm/io_64.h
> index c9528e4719cd..d8ed296624af 100644
> --- a/arch/sparc/include/asm/io_64.h
> +++ b/arch/sparc/include/asm/io_64.h
> @@ -250,19 +250,19 @@ void insl(unsigned long, void *, unsigned long);
> #define insw insw
> #define insl insl
>
> -static inline void readsb(void __iomem *port, void *buf, unsigned long count)
> +static inline void readsb(const volatile void __iomem *port, void *buf, unsigned long count)
> {
> insb((unsigned long __force)port, buf, count);
> }
> #define readsb readsb
>
> -static inline void readsw(void __iomem *port, void *buf, unsigned long count)
> +static inline void readsw(const volatile void __iomem *port, void *buf, unsigned long count)
> {
> insw((unsigned long __force)port, buf, count);
> }
> #define readsw readsw
>
> -static inline void readsl(void __iomem *port, void *buf, unsigned long count)
> +static inline void readsl(const volatile void __iomem *port, void *buf, unsigned long count)
> {
> insl((unsigned long __force)port, buf, count);
> }
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Picking this up to my for-next.
Thanks,
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-19 18:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-10 3:42 [PATCH] fix prototypes of reads[bwl]() on sparc64 Al Viro
2025-09-19 18:02 ` Andreas Larsson
2025-09-19 18:58 ` Andreas Larsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox