* [PATCH] m68knommu: Fix warnings in io_no.h: Delete one of repeated word 'readw readl writew writel' in comment. WARNING: Possible repeated word: 'readw' WARNING: Possible repeated word: 'readl' WARNING: Possible repeated word: 'writew' WARNING: Possible repeated word: 'writel'
[not found] <tencent_816D5035481D1083943D8E965A59860D5E06@qq.com>
@ 2023-07-24 0:40 ` huzhi001
2023-07-24 5:34 ` Michael Schmitz
0 siblings, 1 reply; 2+ messages in thread
From: huzhi001 @ 2023-07-24 0:40 UTC (permalink / raw)
To: gerg, geert; +Cc: linux-m68k, linux-kernel
Signed-off-by: ZhiHu <huzhi001@208suo.com>
---
arch/m68k/include/asm/io_no.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/m68k/include/asm/io_no.h
b/arch/m68k/include/asm/io_no.h
index 2c96e8480173..b24eb741e666 100644
--- a/arch/m68k/include/asm/io_no.h
+++ b/arch/m68k/include/asm/io_no.h
@@ -62,7 +62,7 @@ static int cf_internalio(const volatile void __iomem
*addr)
* endian on m68k/ColdFire. Bus based address ranges, like the PCI bus,
* are accessed little endian - so we need to byte swap those.
*/
-#define readw readw
+#define readw
static inline u16 readw(const volatile void __iomem *addr)
{
if (cf_internalio(addr))
@@ -70,7 +70,7 @@ static inline u16 readw(const volatile void __iomem
*addr)
return swab16(__raw_readw(addr));
}
-#define readl readl
+#define readl
static inline u32 readl(const volatile void __iomem *addr)
{
if (cf_internalio(addr))
@@ -78,7 +78,7 @@ static inline u32 readl(const volatile void __iomem
*addr)
return swab32(__raw_readl(addr));
}
-#define writew writew
+#define writew
static inline void writew(u16 value, volatile void __iomem *addr)
{
if (cf_internalio(addr))
@@ -87,7 +87,7 @@ static inline void writew(u16 value, volatile void
__iomem *addr)
__raw_writew(swab16(value), addr);
}
-#define writel writel
+#define writel
static inline void writel(u32 value, volatile void __iomem *addr)
{
if (cf_internalio(addr))
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] m68knommu: Fix warnings in io_no.h: Delete one of repeated word 'readw readl writew writel' in comment. WARNING: Possible repeated word: 'readw' WARNING: Possible repeated word: 'readl' WARNING: Possible repeated word: 'writew' WARNING: Possible repeated word: 'writel'
2023-07-24 0:40 ` [PATCH] m68knommu: Fix warnings in io_no.h: Delete one of repeated word 'readw readl writew writel' in comment. WARNING: Possible repeated word: 'readw' WARNING: Possible repeated word: 'readl' WARNING: Possible repeated word: 'writew' WARNING: Possible repeated word: 'writel' huzhi001
@ 2023-07-24 5:34 ` Michael Schmitz
0 siblings, 0 replies; 2+ messages in thread
From: Michael Schmitz @ 2023-07-24 5:34 UTC (permalink / raw)
To: huzhi001, gerg, geert; +Cc: linux-m68k, linux-kernel
Hi,
please reconsider - "#define something something" is legitimate use, and
quite intentional.
Pattern matching can only get you so far, sorry ...
Cheers,
Michael
Am 24.07.23 um 12:40 schrieb huzhi001@208suo.com:
> Signed-off-by: ZhiHu <huzhi001@208suo.com>
> ---
> arch/m68k/include/asm/io_no.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/m68k/include/asm/io_no.h
> b/arch/m68k/include/asm/io_no.h
> index 2c96e8480173..b24eb741e666 100644
> --- a/arch/m68k/include/asm/io_no.h
> +++ b/arch/m68k/include/asm/io_no.h
> @@ -62,7 +62,7 @@ static int cf_internalio(const volatile void __iomem
> *addr)
> * endian on m68k/ColdFire. Bus based address ranges, like the PCI bus,
> * are accessed little endian - so we need to byte swap those.
> */
> -#define readw readw
> +#define readw
> static inline u16 readw(const volatile void __iomem *addr)
> {
> if (cf_internalio(addr))
> @@ -70,7 +70,7 @@ static inline u16 readw(const volatile void __iomem
> *addr)
> return swab16(__raw_readw(addr));
> }
>
> -#define readl readl
> +#define readl
> static inline u32 readl(const volatile void __iomem *addr)
> {
> if (cf_internalio(addr))
> @@ -78,7 +78,7 @@ static inline u32 readl(const volatile void __iomem
> *addr)
> return swab32(__raw_readl(addr));
> }
>
> -#define writew writew
> +#define writew
> static inline void writew(u16 value, volatile void __iomem *addr)
> {
> if (cf_internalio(addr))
> @@ -87,7 +87,7 @@ static inline void writew(u16 value, volatile void
> __iomem *addr)
> __raw_writew(swab16(value), addr);
> }
>
> -#define writel writel
> +#define writel
> static inline void writel(u32 value, volatile void __iomem *addr)
> {
> if (cf_internalio(addr))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-24 5:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <tencent_816D5035481D1083943D8E965A59860D5E06@qq.com>
2023-07-24 0:40 ` [PATCH] m68knommu: Fix warnings in io_no.h: Delete one of repeated word 'readw readl writew writel' in comment. WARNING: Possible repeated word: 'readw' WARNING: Possible repeated word: 'readl' WARNING: Possible repeated word: 'writew' WARNING: Possible repeated word: 'writel' huzhi001
2023-07-24 5:34 ` Michael Schmitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox