aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/linux/fix-musl-objtool.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repos/extra/linux/fix-musl-objtool.patch')
-rw-r--r--repos/extra/linux/fix-musl-objtool.patch14
1 files changed, 0 insertions, 14 deletions
diff --git a/repos/extra/linux/fix-musl-objtool.patch b/repos/extra/linux/fix-musl-objtool.patch
deleted file mode 100644
index 851a53da..00000000
--- a/repos/extra/linux/fix-musl-objtool.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-objtool is using the headers provided by kernel-libc-headers, which are kernel version 5.10, so
-they use __always_inline instead of inline, and musl doesn't define __always_inline (glibc does)
-
---- a/tools/objtool/Makefile
-+++ b/tools/objtool/Makefile
-@@ -32,7 +32,7 @@ INCLUDES := -I$(srctree)/tools/include \
- # Note, EXTRA_WARNINGS here was determined for CC and not HOSTCC, it
- # is passed here to match a legacy behavior.
- WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed -Wno-nested-externs
--OBJTOOL_CFLAGS := -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS)
-+OBJTOOL_CFLAGS := -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS) -D__always_inline=inline
- OBJTOOL_LDFLAGS := $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS)
-
- # Allow old libelf to be used: