]> www.infradead.org Git - nvme.git/commitdiff
Merge tag 'kbuild-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 30 Nov 2024 21:41:50 +0000 (13:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 30 Nov 2024 21:41:50 +0000 (13:41 -0800)
Pull Kbuild updates from Masahiro Yamada:

 - Add generic support for built-in boot DTB files

 - Enable TAB cycling for dialog buttons in nconfig

 - Fix issues in streamline_config.pl

 - Refactor Kconfig

 - Add support for Clang's AutoFDO (Automatic Feedback-Directed
   Optimization)

 - Add support for Clang's Propeller, a profile-guided optimization.

 - Change the working directory to the external module directory for M=
   builds

 - Support building external modules in a separate output directory

 - Enable objtool for *.mod.o and additional kernel objects

 - Use lz4 instead of deprecated lz4c

 - Work around a performance issue with "git describe"

 - Refactor modpost

* tag 'kbuild-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (85 commits)
  kbuild: rename .tmp_vmlinux.kallsyms0.syms to .tmp_vmlinux0.syms
  gitignore: Don't ignore 'tags' directory
  kbuild: add dependency from vmlinux to resolve_btfids
  modpost: replace tdb_hash() with hash_str()
  kbuild: deb-pkg: add python3:native to build dependency
  genksyms: reduce indentation in export_symbol()
  modpost: improve error messages in device_id_check()
  modpost: rename alias symbol for MODULE_DEVICE_TABLE()
  modpost: rename variables in handle_moddevtable()
  modpost: move strstarts() to modpost.h
  modpost: convert do_usb_table() to a generic handler
  modpost: convert do_of_table() to a generic handler
  modpost: convert do_pnp_device_entry() to a generic handler
  modpost: convert do_pnp_card_entries() to a generic handler
  modpost: call module_alias_printf() from all do_*_entry() functions
  modpost: pass (struct module *) to do_*_entry() functions
  modpost: remove DEF_FIELD_ADDR_VAR() macro
  modpost: deduplicate MODULE_ALIAS() for all drivers
  modpost: introduce module_alias_printf() helper
  modpost: remove unnecessary check in do_acpi_entry()
  ...

17 files changed:
1  2 
.gitignore
MAINTAINERS
Makefile
arch/Kconfig
arch/powerpc/Makefile
arch/riscv/Makefile
arch/x86/Kconfig
arch/x86/kernel/vmlinux.lds.S
drivers/of/Kconfig
include/linux/module.h
include/net/net_debug.h
mm/internal.h
rust/Makefile
scripts/Makefile.build
scripts/Makefile.vmlinux
scripts/link-vmlinux.sh
tools/objtool/check.c

diff --cc .gitignore
Simple merge
diff --cc MAINTAINERS
Simple merge
diff --cc Makefile
Simple merge
diff --cc arch/Kconfig
Simple merge
index 41489483a602f698d16e73f5568fa560feb8958a,321b596d25501c72290aaeb93cb2759705f7f675..f3804103c56ccfdb16289468397ccaea71bf721e
@@@ -402,11 -402,9 +402,13 @@@ prepare: stack_protector_prepar
  PHONY += stack_protector_prepare
  stack_protector_prepare: prepare0
  ifdef CONFIG_PPC64
 -      $(eval KBUILD_CFLAGS += -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "PACA_CANARY") print $$3;}' $(objtree)/include/generated/asm-offsets.h))
 +      $(eval KBUILD_CFLAGS += -mstack-protector-guard=tls -mstack-protector-guard-reg=r13 \
-                               -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "PACA_CANARY") print $$3;}' include/generated/asm-offsets.h))
++                              -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "PACA_CANARY") print $$3;}' \
++                              $(objtree)/include/generated/asm-offsets.h))
  else
 -      $(eval KBUILD_CFLAGS += -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "TASK_CANARY") print $$3;}' $(objtree)/include/generated/asm-offsets.h))
 +      $(eval KBUILD_CFLAGS += -mstack-protector-guard=tls -mstack-protector-guard-reg=r2 \
-                               -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "TASK_CANARY") print $$3;}' include/generated/asm-offsets.h))
++                              -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "TASK_CANARY") print $$3;}' \
++                              $(objtree)/include/generated/asm-offsets.h))
  endif
  endif
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc mm/internal.h
Simple merge
diff --cc rust/Makefile
index 01cf8e6ba3b3bdf711ac7c8e1c4dc24e44de059a,742740816c4b32147b4ac5d39e940f0d6fdbfdd7..9da9042fd62796ddb852f4bf7cf46d70f0b8ca97
@@@ -370,10 -360,10 +370,10 @@@ quiet_cmd_rustc_library = $(if $(skip_c
  
  rust-analyzer:
        $(Q)$(srctree)/scripts/generate_rust_analyzer.py \
 -              --cfgs='core=$(core-cfgs)' --cfgs='alloc=$(alloc-cfgs)' \
 +              --cfgs='core=$(core-cfgs)' \
                $(realpath $(srctree)) $(realpath $(objtree)) \
-               $(rustc_sysroot) $(RUST_LIB_SRC) $(KBUILD_EXTMOD) > \
-               $(if $(KBUILD_EXTMOD),$(extmod_prefix),$(objtree))/rust-project.json
+               $(rustc_sysroot) $(RUST_LIB_SRC) $(if $(KBUILD_EXTMOD),$(srcroot)) \
+               rust-project.json
  
  redirect-intrinsics = \
        __addsf3 __eqsf2 __extendsfdf2 __gesf2 __lesf2 __ltsf2 __mulsf3 __nesf2 __truncdfsf2 __unordsf2 \
Simple merge
Simple merge
Simple merge
index f7586f82b967ad6db1f607a594f72e459ee915aa,05a0fb4a3d1a010a854772d246378c7cb63f7ef4..4ce176ad411fb12a10101bbedbb6180275941b4b
@@@ -4573,7 -4557,8 +4573,9 @@@ static int validate_ibt(struct objtool_
                    !strcmp(sec->name, "__jump_table")                  ||
                    !strcmp(sec->name, "__mcount_loc")                  ||
                    !strcmp(sec->name, ".kcfi_traps")                   ||
+                   !strcmp(sec->name, ".llvm.call-graph-profile")      ||
+                   !strcmp(sec->name, ".llvm_bb_addr_map")             ||
 +                  !strcmp(sec->name, "__tracepoints")                 ||
                    strstr(sec->name, "__patchable_function_entries"))
                        continue;