Skip to content

Commit 76c7d43

Browse files
mpemaddy-kerneldev
authored andcommitted
powerpc/io: Rename _insw_ns() etc.
The "_ns" suffix was "historical" in 2006, finally remove it. Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 0305292 commit 76c7d43

File tree

2 files changed

+13
-26
lines changed

2 files changed

+13
-26
lines changed

arch/powerpc/include/asm/io.h

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,12 @@ extern bool isa_io_special;
8080
*
8181
* in_8, in_le16, in_be16, in_le32, in_be32, in_le64, in_be64
8282
* out_8, out_le16, out_be16, out_le32, out_be32, out_le64, out_be64
83-
* _insb, _insw_ns, _insl_ns, _outsb, _outsw_ns, _outsl_ns
83+
* _insb, _insw, _insl, _outsb, _outsw, _outsl
8484
*
8585
* Those operate directly on a kernel virtual address. Note that the prototype
8686
* for the out_* accessors has the arguments in opposite order from the usual
8787
* linux PCI accessors. Unlike those, they take the address first and the value
8888
* next.
89-
*
90-
* Note: I might drop the _ns suffix on the stream operations soon as it is
91-
* simply normal for stream operations to not swap in the first place.
92-
*
9389
*/
9490

9591
/* -mprefixed can generate offsets beyond range, fall back hack */
@@ -228,19 +224,10 @@ static inline void out_be64(volatile u64 __iomem *addr, u64 val)
228224
*/
229225
extern void _insb(const volatile u8 __iomem *addr, void *buf, long count);
230226
extern void _outsb(volatile u8 __iomem *addr,const void *buf,long count);
231-
extern void _insw_ns(const volatile u16 __iomem *addr, void *buf, long count);
232-
extern void _outsw_ns(volatile u16 __iomem *addr, const void *buf, long count);
233-
extern void _insl_ns(const volatile u32 __iomem *addr, void *buf, long count);
234-
extern void _outsl_ns(volatile u32 __iomem *addr, const void *buf, long count);
235-
236-
/* The _ns naming is historical and will be removed. For now, just #define
237-
* the non _ns equivalent names
238-
*/
239-
#define _insw _insw_ns
240-
#define _insl _insl_ns
241-
#define _outsw _outsw_ns
242-
#define _outsl _outsl_ns
243-
227+
extern void _insw(const volatile u16 __iomem *addr, void *buf, long count);
228+
extern void _outsw(volatile u16 __iomem *addr, const void *buf, long count);
229+
extern void _insl(const volatile u32 __iomem *addr, void *buf, long count);
230+
extern void _outsl(volatile u32 __iomem *addr, const void *buf, long count);
244231

245232
/*
246233
* memset_io, memcpy_toio, memcpy_fromio base implementations are out of line

arch/powerpc/kernel/io.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void _outsb(volatile u8 __iomem *port, const void *buf, long count)
5555
}
5656
EXPORT_SYMBOL(_outsb);
5757

58-
void _insw_ns(const volatile u16 __iomem *port, void *buf, long count)
58+
void _insw(const volatile u16 __iomem *port, void *buf, long count)
5959
{
6060
u16 *tbuf = buf;
6161
u16 tmp;
@@ -70,9 +70,9 @@ void _insw_ns(const volatile u16 __iomem *port, void *buf, long count)
7070
} while (--count != 0);
7171
asm volatile("twi 0,%0,0; isync" : : "r" (tmp));
7272
}
73-
EXPORT_SYMBOL(_insw_ns);
73+
EXPORT_SYMBOL(_insw);
7474

75-
void _outsw_ns(volatile u16 __iomem *port, const void *buf, long count)
75+
void _outsw(volatile u16 __iomem *port, const void *buf, long count)
7676
{
7777
const u16 *tbuf = buf;
7878

@@ -84,9 +84,9 @@ void _outsw_ns(volatile u16 __iomem *port, const void *buf, long count)
8484
} while (--count != 0);
8585
asm volatile("sync");
8686
}
87-
EXPORT_SYMBOL(_outsw_ns);
87+
EXPORT_SYMBOL(_outsw);
8888

89-
void _insl_ns(const volatile u32 __iomem *port, void *buf, long count)
89+
void _insl(const volatile u32 __iomem *port, void *buf, long count)
9090
{
9191
u32 *tbuf = buf;
9292
u32 tmp;
@@ -101,9 +101,9 @@ void _insl_ns(const volatile u32 __iomem *port, void *buf, long count)
101101
} while (--count != 0);
102102
asm volatile("twi 0,%0,0; isync" : : "r" (tmp));
103103
}
104-
EXPORT_SYMBOL(_insl_ns);
104+
EXPORT_SYMBOL(_insl);
105105

106-
void _outsl_ns(volatile u32 __iomem *port, const void *buf, long count)
106+
void _outsl(volatile u32 __iomem *port, const void *buf, long count)
107107
{
108108
const u32 *tbuf = buf;
109109

@@ -115,7 +115,7 @@ void _outsl_ns(volatile u32 __iomem *port, const void *buf, long count)
115115
} while (--count != 0);
116116
asm volatile("sync");
117117
}
118-
EXPORT_SYMBOL(_outsl_ns);
118+
EXPORT_SYMBOL(_outsl);
119119

120120
#define IO_CHECK_ALIGN(v,a) ((((unsigned long)(v)) & ((a) - 1)) == 0)
121121

0 commit comments

Comments
 (0)