hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/alpha/kernel/io.c
....@@ -14,7 +14,7 @@
1414 "generic", which bumps through the machine vector. */
1515
1616 unsigned int
17
-ioread8(void __iomem *addr)
17
+ioread8(const void __iomem *addr)
1818 {
1919 unsigned int ret;
2020 mb();
....@@ -23,7 +23,7 @@
2323 return ret;
2424 }
2525
26
-unsigned int ioread16(void __iomem *addr)
26
+unsigned int ioread16(const void __iomem *addr)
2727 {
2828 unsigned int ret;
2929 mb();
....@@ -32,7 +32,7 @@
3232 return ret;
3333 }
3434
35
-unsigned int ioread32(void __iomem *addr)
35
+unsigned int ioread32(const void __iomem *addr)
3636 {
3737 unsigned int ret;
3838 mb();
....@@ -257,7 +257,7 @@
257257 /*
258258 * Read COUNT 8-bit bytes from port PORT into memory starting at SRC.
259259 */
260
-void ioread8_rep(void __iomem *port, void *dst, unsigned long count)
260
+void ioread8_rep(const void __iomem *port, void *dst, unsigned long count)
261261 {
262262 while ((unsigned long)dst & 0x3) {
263263 if (!count)
....@@ -300,7 +300,7 @@
300300 * the interfaces seems to be slow: just using the inlined version
301301 * of the inw() breaks things.
302302 */
303
-void ioread16_rep(void __iomem *port, void *dst, unsigned long count)
303
+void ioread16_rep(const void __iomem *port, void *dst, unsigned long count)
304304 {
305305 if (unlikely((unsigned long)dst & 0x3)) {
306306 if (!count)
....@@ -340,7 +340,7 @@
340340 * but the interfaces seems to be slow: just using the inlined version
341341 * of the inl() breaks things.
342342 */
343
-void ioread32_rep(void __iomem *port, void *dst, unsigned long count)
343
+void ioread32_rep(const void __iomem *port, void *dst, unsigned long count)
344344 {
345345 if (unlikely((unsigned long)dst & 0x3)) {
346346 while (count--) {