History

Merge tag 'kbuild-fixes-6.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux

Pull Kbuild fixes from Nathan Chancellor: - Fix UAPI types check in headers_check.pl - Only enable -Werror for hostprogs with CONFIG_WERROR / W=e - Ignore fsync() error when output of gen_init_cpio is a pipe - Several little build fixes for recent modules.builtin.modinfo series * tag 'kbuild-fixes-6.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux: kbuild: Use '--strip-unneeded-symbol' for removing module device table symbols s390/vmlinux.lds.S: Move .vmlinux.info to end of allocatable sections kbuild: Add '.rel.*' strip pattern for vmlinux kbuild: Restore pattern to avoid stripping .rela.dyn from vmlinux gen_init_cpio: Ignore fsync() returning EINVAL on pipes scripts/Makefile.extrawarn: Respect CONFIG_WERROR / W=e for hostprogs kbuild: uapi: Strip comments before size type check

Linus Torvalds committed 1 year ago

Commit c04022d2 parents 98906f9 b0f29425 files · +38 −28Browse files

Showing the changes to scripts (2 of 5 files). Show all

Unified · Split

2 files
  1. scripts/Makefile.extrawarn +5 −3
  2. scripts/Makefile.vmlinux +5 −2
scripts/Makefile.extrawarn+5−3
@@ -223,9 +223,11 @@ KBUILD_USERCFLAGS += -Werror · 222 unmodified lines
223KBUILD_USERLDFLAGS += -Wl,--fatal-warnings223KBUILD_USERLDFLAGS += -Wl,--fatal-warnings
224KBUILD_RUSTFLAGS += -Dwarnings224KBUILD_RUSTFLAGS += -Dwarnings
225 225
226endif226# While hostprog flags are used during build bootstrapping (thus should not
227 227# depend on CONFIG_ symbols), -Werror is disruptive and should be opted into.
228# Hostprog flags are used during build bootstrapping and can not rely on CONFIG_ symbols.228# Only apply -Werror to hostprogs built after the initial Kconfig stage.
229KBUILD_HOSTCFLAGS += -Werror229KBUILD_HOSTCFLAGS += -Werror
230KBUILD_HOSTLDFLAGS += -Wl,--fatal-warnings230KBUILD_HOSTLDFLAGS += -Wl,--fatal-warnings
231KBUILD_HOSTRUSTFLAGS += -Dwarnings231KBUILD_HOSTRUSTFLAGS += -Dwarnings
232
233endif
scripts/Makefile.vmlinux+5−2
@@ -82,9 +82,12 @@ endif · 81 unmodified lines
82# ---------------------------------------------------------------------------82# ---------------------------------------------------------------------------
83 83
84remove-section-y := .modinfo84remove-section-y := .modinfo
85remove-section-$(CONFIG_ARCH_VMLINUX_NEEDS_RELOCS) += '.rel*'85remove-section-$(CONFIG_ARCH_VMLINUX_NEEDS_RELOCS) += '.rel*' '!.rel*.dyn'
86# for compatibility with binutils < 2.32
87# https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c12d9fa2afe7abcbe407a00e15719e1a1350c2a7
88remove-section-$(CONFIG_ARCH_VMLINUX_NEEDS_RELOCS) += '.rel.*'
86 89
87remove-symbols := -w --strip-symbol='__mod_device_table__*'90remove-symbols := -w --strip-unneeded-symbol='__mod_device_table__*'
88 91
89# To avoid warnings: "empty loadable segment detected at ..." from GNU objcopy,92# To avoid warnings: "empty loadable segment detected at ..." from GNU objcopy,
90# it is necessary to remove the PT_LOAD flag from the segment.93# it is necessary to remove the PT_LOAD flag from the segment.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t