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-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- Fix module versioning broken on some architectures

- Make dummy-tools enable CONFIG_PPC_LONG_DOUBLE_128

- Remove -Wformat-zero-length, which has no warning instance

- Fix the order between drivers and libs in modules.order

- Fix false-positive warnings in clang-analyzer

* tag 'kbuild-fixes-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
scripts/clang-tools: Remove DeprecatedOrUnsafeBufferHandling check
kbuild: fix the modules order between drivers and libs
scripts/Makefile.extrawarn: Do not disable clang's -Wformat-zero-length
kbuild: dummy-tools: pretend we understand __LONG_DOUBLE_128__
modpost: fix module versioning when a symbol lacks valid CRC

+5 -9
+2 -4
Makefile
··· 1113 1113 $(patsubst %/,%,$(filter %/, $(core-) \ 1114 1114 $(drivers-) $(libs-)))) 1115 1115 1116 - subdir-modorder := $(addsuffix modules.order,$(filter %/, \ 1117 - $(core-y) $(core-m) $(libs-y) $(libs-m) \ 1118 - $(drivers-y) $(drivers-m))) 1119 - 1120 1116 build-dirs := $(vmlinux-dirs) 1121 1117 clean-dirs := $(vmlinux-alldirs) 1118 + 1119 + subdir-modorder := $(addsuffix /modules.order, $(build-dirs)) 1122 1120 1123 1121 # Externally visible symbols (used by link-vmlinux.sh) 1124 1122 KBUILD_VMLINUX_OBJS := $(head-y) $(patsubst %/,%/built-in.a, $(core-y))
-1
scripts/Makefile.extrawarn
··· 49 49 KBUILD_CFLAGS += -Wno-initializer-overrides 50 50 KBUILD_CFLAGS += -Wno-format 51 51 KBUILD_CFLAGS += -Wno-sign-compare 52 - KBUILD_CFLAGS += -Wno-format-zero-length 53 52 KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) 54 53 KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare 55 54 KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access)
+1
scripts/clang-tools/run-clang-tools.py
··· 51 51 checks += "linuxkernel-*" 52 52 else: 53 53 checks += "clang-analyzer-*" 54 + checks += ",-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling" 54 55 p = subprocess.run(["clang-tidy", "-p", args.path, checks, entry["file"]], 55 56 stdout=subprocess.PIPE, 56 57 stderr=subprocess.STDOUT,
+1 -1
scripts/dummy-tools/gcc
··· 59 59 if arg_contain -E "$@"; then 60 60 # For scripts/cc-version.sh; This emulates GCC 20.0.0 61 61 if arg_contain - "$@"; then 62 - sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}' 62 + sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}; s/__LONG_DOUBLE_128__/1/ p' 63 63 exit 0 64 64 else 65 65 echo "no input files" >&2
+1 -3
scripts/mod/modpost.c
··· 2021 2021 /* record CRCs for exported symbols */ 2022 2022 buf_printf(buf, "\n"); 2023 2023 list_for_each_entry(sym, &mod->exported_symbols, list) { 2024 - if (!sym->crc_valid) { 2024 + if (!sym->crc_valid) 2025 2025 warn("EXPORT symbol \"%s\" [%s%s] version generation failed, symbol will not be versioned.\n" 2026 2026 "Is \"%s\" prototyped in <asm/asm-prototypes.h>?\n", 2027 2027 sym->name, mod->name, mod->is_vmlinux ? "" : ".ko", 2028 2028 sym->name); 2029 - continue; 2030 - } 2031 2029 2032 2030 buf_printf(buf, "SYMBOL_CRC(%s, 0x%08x, \"%s\");\n", 2033 2031 sym->name, sym->crc, sym->is_gpl_only ? "_gpl" : "");