[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <168155746830.13678.8071954787135972276.stgit@skinsburskii.localdomain>
Date: Sat, 15 Apr 2023 04:17:48 -0700
From: Stanislav Kinsburskii <skinsburskii@...ux.microsoft.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Helge Deller <deller@....de>, Arnd Bergmann <arnd@...db.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>,
linux-ia64@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 5/7] ia64: asm/io.h: Expect immutable pointer in virt_to_phys
prototype
From: Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>
These helper function - virt_to_phys - doesn't need the address pointer to
be mutable.
In the same time expecting it to be mutable leads to the following build
warning for constant pointers:
warning: passing argument 1 of ‘virt_to_phys’ discards ‘const’ qualifier from pointer target type
Signed-off-by: Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>
CC: Geert Uytterhoeven <geert@...ux-m68k.org>
CC: Helge Deller <deller@....de>
CC: Arnd Bergmann <arnd@...db.de>
CC: Andrew Morton <akpm@...ux-foundation.org>
CC: Bjorn Helgaas <bhelgaas@...gle.com>
CC: Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>
CC: linux-ia64@...r.kernel.org
CC: linux-kernel@...r.kernel.org
---
arch/ia64/include/asm/io.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h
index 83a492c8d298..c56ad21ba1e9 100644
--- a/arch/ia64/include/asm/io.h
+++ b/arch/ia64/include/asm/io.h
@@ -74,7 +74,7 @@ extern unsigned int num_io_spaces;
* Change virtual addresses to physical addresses and vv.
*/
static inline unsigned long
-virt_to_phys (volatile void *address)
+virt_to_phys (const volatile void *address)
{
return (unsigned long) address - PAGE_OFFSET;
}
Powered by blists - more mailing lists