mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86: Remove the unused bw parameter from the BUILDIO macro
@ 2023-11-23  3:49 Yuntao Wang
  2023-11-23 10:06 ` [tip: x86/cleanups] x86/io: Remove the unused 'bw' parameter from the BUILDIO() macro tip-bot2 for Yuntao Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Yuntao Wang @ 2023-11-23  3:49 UTC (permalink / raw)
  To: x86, linux-kernel
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	H. Peter Anvin, Baoquan He, Mike Rapoport (IBM),
	Geert Uytterhoeven, Andrew Morton, Yuntao Wang

The commit 1e8f93e18379 ("x86: Consolidate port I/O helpers") moved some
port I/O helpers to <asm/shared/io.h>, which caused the bw parameter in the
BUILDIO macro to be unused. Remove it.

Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
---
 arch/x86/include/asm/io.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h
index 76238842406a..3814a9263d64 100644
--- a/arch/x86/include/asm/io.h
+++ b/arch/x86/include/asm/io.h
@@ -242,7 +242,7 @@ static inline void slow_down_io(void)
 
 #endif
 
-#define BUILDIO(bwl, bw, type)						\
+#define BUILDIO(bwl, type)						\
 static inline void out##bwl##_p(type value, u16 port)			\
 {									\
 	out##bwl(value, port);						\
@@ -288,9 +288,9 @@ static inline void ins##bwl(u16 port, void *addr, unsigned long count)	\
 	}								\
 }
 
-BUILDIO(b, b, u8)
-BUILDIO(w, w, u16)
-BUILDIO(l,  , u32)
+BUILDIO(b, u8)
+BUILDIO(w, u16)
+BUILDIO(l, u32)
 #undef BUILDIO
 
 #define inb_p inb_p
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-23 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-23  3:49 [PATCH] x86: Remove the unused bw parameter from the BUILDIO macro Yuntao Wang
2023-11-23 10:06 ` [tip: x86/cleanups] x86/io: Remove the unused 'bw' parameter from the BUILDIO() macro tip-bot2 for Yuntao Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®