Merge tag 'v6.18-rc5' into objtool/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@@ -167,7 +167,7 @@ else ifeq ($(KBUILD_CHECKSRC),2)
|
||||
endif
|
||||
|
||||
ifneq ($(KBUILD_EXTRA_WARN),)
|
||||
cmd_checkdoc = PYTHONDONTWRITEBYTECODE=1 $(KERNELDOC) -none $(KDOCFLAGS) \
|
||||
cmd_checkdoc = PYTHONDONTWRITEBYTECODE=1 $(PYTHON3) $(KERNELDOC) -none $(KDOCFLAGS) \
|
||||
$(if $(findstring 2, $(KBUILD_EXTRA_WARN)), -Wall) \
|
||||
$<
|
||||
endif
|
||||
|
||||
@@ -102,11 +102,24 @@ vmlinux: vmlinux.unstripped FORCE
|
||||
# modules.builtin.modinfo
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# .modinfo in vmlinux.unstripped is aligned to 8 bytes for compatibility with
|
||||
# tools that expect vmlinux to have sufficiently aligned sections but the
|
||||
# additional bytes used for padding .modinfo to satisfy this requirement break
|
||||
# certain versions of kmod with
|
||||
#
|
||||
# depmod: ERROR: kmod_builtin_iter_next: unexpected string without modname prefix
|
||||
#
|
||||
# Strip the trailing padding bytes after extracting .modinfo to comply with
|
||||
# what kmod expects to parse.
|
||||
quiet_cmd_modules_builtin_modinfo = GEN $@
|
||||
cmd_modules_builtin_modinfo = $(cmd_objcopy); \
|
||||
sed -i 's/\x00\+$$/\x00/g' $@
|
||||
|
||||
OBJCOPYFLAGS_modules.builtin.modinfo := -j .modinfo -O binary
|
||||
|
||||
targets += modules.builtin.modinfo
|
||||
modules.builtin.modinfo: vmlinux.unstripped FORCE
|
||||
$(call if_changed,objcopy)
|
||||
$(call if_changed,modules_builtin_modinfo)
|
||||
|
||||
# modules.builtin
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <locale.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -931,6 +932,8 @@ int main(int ac, char **av)
|
||||
|
||||
signal(SIGINT, sig_handler);
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
if (ac > 1 && strcmp(av[1], "-s") == 0) {
|
||||
silent = 1;
|
||||
/* Silence conf_read() until the real callback is set up */
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include <locale.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <stdlib.h>
|
||||
@@ -1478,6 +1479,8 @@ int main(int ac, char **av)
|
||||
int lines, columns;
|
||||
char *mode;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
if (ac > 1 && strcmp(av[1], "-s") == 0) {
|
||||
/* Silence conf_read() until the real callback is set up */
|
||||
conf_set_message_callback(NULL);
|
||||
|
||||
@@ -63,7 +63,7 @@ if [ "${CC}" != "${HOSTCC}" ]; then
|
||||
# Clear VPATH and srcroot because the source files reside in the output
|
||||
# directory.
|
||||
# shellcheck disable=SC2016 # $(MAKE) and $(build) will be expanded by Make
|
||||
"${MAKE}" run-command KBUILD_RUN_COMMAND='+$(MAKE) HOSTCC='"${CC}"' VPATH= srcroot=. $(build)='"$(realpath --relative-base=. "${destdir}")"/scripts
|
||||
"${MAKE}" run-command KBUILD_RUN_COMMAND='+$(MAKE) HOSTCC='"${CC}"' VPATH= srcroot=. $(build)='"$(realpath --relative-to=. "${destdir}")"/scripts
|
||||
|
||||
rm -f "${destdir}/scripts/Kbuild"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user