]> git.baikalelectronics.ru Git - kernel.git/commitdiff
uapi: Fix undefined __always_inline on non-glibc systems
authorIsmael Luceno <ismael@iodev.co.uk>
Mon, 15 Nov 2021 13:46:47 +0000 (14:46 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 21 Dec 2021 23:09:46 +0000 (15:09 -0800)
This macro is defined by glibc itself, which makes the issue go unnoticed on
those systems.  On non-glibc systems it causes build failures on several
utilities and libraries, like bpftool and objtool.

Fixes: 79fb0d2bf5b0 ("x86/insn: Support big endian cross-compiles")
Fixes: 00d4f8e81c2e ("tools/virtio: more stubs")
Fixes: cface3daf21f ("selftests/net: ipv6 flowlabel")
Fixes: 8f6ecdaf3d4a ("selftests/bpf: test bpf flow dissection")
Fixes: 91111edc337d ("bpf: Remove extra lock_sock for TCP_ZEROCOPY_RECEIVE")
Fixes: b8a7cb8c2d74 ("tools include uapi: Grab a copy of linux/in.h")
Fixes: a0fbb20d0b00 ("bpf: btf: add btf print functionality")
Fixes: 223dff668a92 ("tools, include: Grab a copy of linux/erspan.h")
Fixes: f946538ba200 ("tools: Add copy of perf_event.h to tools/include/linux/")
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20211115134647.1921-1-ismael@iodev.co.uk
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
include/uapi/linux/byteorder/big_endian.h
include/uapi/linux/byteorder/little_endian.h

index 2199adc6a6c20dfbde35e66da619464ef6b95782..80aa5c41a76364f29746ac2fdf94e81a241e6de5 100644 (file)
@@ -9,6 +9,7 @@
 #define __BIG_ENDIAN_BITFIELD
 #endif
 
+#include <linux/stddef.h>
 #include <linux/types.h>
 #include <linux/swab.h>
 
index 601c904fd5cd92c860d91c01dcd4b21db963d072..cd98982e7523e11c1f92ac6d2b4ab24417967b7f 100644 (file)
@@ -9,6 +9,7 @@
 #define __LITTLE_ENDIAN_BITFIELD
 #endif
 
+#include <linux/stddef.h>
 #include <linux/types.h>
 #include <linux/swab.h>