Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'kbuild-fixes-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- Fix empty $(PYTHON) expansion.

- Fix UML, which got broken by the attempt to suppress Clang warnings.

- Fix warning message in modpost.

* tag 'kbuild-fixes-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
modpost: restore the warning message for missing symbol versions
Revert "um: clang: Strip out -mno-global-merge from USER_CFLAGS"
kbuild: Remove '-mno-global-merge'
kbuild: fix empty ${PYTHON} in scripts/link-vmlinux.sh
kconfig: remove stale comment about removed kconfig_print_symbol()

+2 -17
-4
Makefile
··· 793 793 KBUILD_CPPFLAGS += -Qunused-arguments 794 794 # The kernel builds with '-std=gnu11' so use of GNU extensions is acceptable. 795 795 KBUILD_CFLAGS += -Wno-gnu 796 - # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the 797 - # source of a reference will be _MergedGlobals and not on of the whitelisted names. 798 - # See modpost pattern 2 799 - KBUILD_CFLAGS += -mno-global-merge 800 796 else 801 797 802 798 # gcc inanely warns about local variables called 'main'
-4
arch/um/Makefile
··· 75 75 -D_FILE_OFFSET_BITS=64 -idirafter $(srctree)/include \ 76 76 -idirafter $(objtree)/include -D__KERNEL__ -D__UM_HOST__ 77 77 78 - ifdef CONFIG_CC_IS_CLANG 79 - USER_CFLAGS := $(patsubst -mno-global-merge,,$(USER_CFLAGS)) 80 - endif 81 - 82 78 #This will adjust *FLAGS accordingly to the platform. 83 79 include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) 84 80
-7
scripts/kconfig/confdata.c
··· 658 658 return out; 659 659 } 660 660 661 - /* 662 - * Kconfig configuration printer 663 - * 664 - * This printer is used when generating the resulting configuration after 665 - * kconfig invocation and `defconfig' files. Unset symbol might be omitted by 666 - * passing a non-NULL argument to the printer. 667 - */ 668 661 enum output_n { OUTPUT_N, OUTPUT_N_AS_UNSET, OUTPUT_N_NONE }; 669 662 670 663 static void __print_symbol(FILE *fp, struct symbol *sym, enum output_n output_n,
+1 -1
scripts/mod/modpost.c
··· 674 674 unsigned int crc; 675 675 676 676 if (sym->st_shndx == SHN_UNDEF) { 677 - warn("EXPORT symbol \"%s\" [%s%s] version ...\n" 677 + warn("EXPORT symbol \"%s\" [%s%s] version generation failed, symbol will not be versioned.\n" 678 678 "Is \"%s\" prototyped in <asm/asm-prototypes.h>?\n", 679 679 symname, mod->name, mod->is_vmlinux ? "" : ".ko", 680 680 symname);