The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=08c2f6cf46d8981bfc7219295882e38ec7dc8ffc
commit 08c2f6cf46d8981bfc7219295882e38ec7dc8ffc Author: Jean-Sébastien Pédron <dumbb...@freebsd.org> AuthorDate: 2024-12-27 00:17:06 +0000 Commit: Jean-Sébastien Pédron <dumbb...@freebsd.org> CommitDate: 2025-01-31 16:00:48 +0000 linuxkpi: Unify definition of `outb()` [Why] It is already defined in <asm-generic/io.h> to use the FreeBSD versions. Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48750 --- sys/compat/linuxkpi/common/include/linux/io.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h index 164347dbc4e7..2d6fef4e7c52 100644 --- a/sys/compat/linuxkpi/common/include/linux/io.h +++ b/sys/compat/linuxkpi/common/include/linux/io.h @@ -36,6 +36,7 @@ #include <linux/compiler.h> #include <linux/err.h> +#include <asm-generic/io.h> #include <linux/types.h> #if !defined(__arm__) #include <asm/set_memory.h> @@ -395,11 +396,7 @@ iowrite32be(uint32_t v, volatile void *addr) #define iowrite32be(v, addr) iowrite32be(v, addr) #if defined(__i386__) || defined(__amd64__) -static inline void -_outb(u_char data, u_int port) -{ - __asm __volatile("outb %0, %w1" : : "a" (data), "Nd" (port)); -} +#define _outb(data, port) outb((data), (port)) #endif #if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__) || defined(__riscv)