From: Igor Prusov Date: Tue, 14 Nov 2023 11:02:47 +0000 (+0300) Subject: mips: io.h: Add const to reads functions params X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=953970221980c677e0755d515b9e6fb2fbf2543e;p=u-boot.git mips: io.h: Add const to reads functions params Currently reads{b,w,l}() functions don't have const qualifier for their address parameter. Since asm-generic/io.h in Linux has const for all read functions, add it here as well to keep signatures in sync. Signed-off-by: Igor Prusov --- diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index d3ad669301..12595c4334 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -405,7 +405,8 @@ static inline void writes##bwlq(volatile void __iomem *mem, \ } \ } \ \ -static inline void reads##bwlq(volatile void __iomem *mem, void *addr, \ +static inline void reads##bwlq(const volatile void __iomem *mem, \ + void *addr, \ unsigned int count) \ { \ volatile type *__addr = addr; \