diff options
| author | Igor Prusov <[email protected]> | 2023-11-14 14:02:47 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-11-28 16:19:06 -0500 |
| commit | 953970221980c677e0755d515b9e6fb2fbf2543e (patch) | |
| tree | 708944d431d37e81ba66a80a8f506f54b8362f23 /arch/mips/include | |
| parent | 93e1552cb1cd80a348d1eb56a294585ed43a4c9d (diff) | |
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 <[email protected]>
Diffstat (limited to 'arch/mips/include')
| -rw-r--r-- | arch/mips/include/asm/io.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index d3ad6693013..12595c43347 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; \ |
