Kbuild fixes for v6.8-rc3
Hello Linus,
Please pull Kbuild fixes for v6.8-rc3.
Thanks.
The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d:
Linux 6.8-rc1 (2024-01-21 14:11:32 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
tags/kbuild-fixes-v6.8
for you to fetch changes up to bfef491df67022c56aab3b831044f8d259f9441f:
kconfig: initialize sym->curr.tri to 'no' for all symbol types again
(2024-01-31 23:59:42 +0900)
----------------------------------------------------------------Kbuild fixes for v6.8
- Fix UML build with clang-18 and newer
- Avoid using the alias attribute in host programs
- Replace tabs with spaces when followed by conditionals for future GNU Make versions
- Fix rpm-pkg for the systemd-provided kernel-install tool
- Fix the undefined behavior in Kconfig for a 'int' symbol used in a conditional
----------------------------------------------------------------
Dmitry Goncharov (1):
kbuild: Replace tabs with spaces when followed by conditionals
Jose Ignacio Tornos Martinez (1):
kbuild: rpm-pkg: simplify installkernel %post
Masahiro Yamada (3):
kbuild: fix W= flags in the help message
modpost: avoid using the alias attribute
kconfig: initialize sym->curr.tri to 'no' for all symbol types again
Nathan Chancellor (2):
um: Fix adding '-no-pie' for clang
modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS
Zhang Bingwu (1):
kbuild: defconf: use SRCARCH to find merged configs
Makefile | 14 +++++++------- arch/m68k/Makefile | 4 ++-- arch/parisc/Makefile | 4 ++-- arch/um/Makefile | 4 +++- arch/x86/Makefile | 10 +++++----- scripts/Makefile.defconf | 8 ++++---- scripts/kconfig/symbol.c | 4 +++- scripts/mod/modpost.c | 15 +++------------ scripts/mod/modpost.h | 6 +----- scripts/package/kernel.spec | 22 +++++++++++----------- 10 files changed, 41 insertions(+), 50 deletions(-)
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 3 lines · Masahiro Yamada
- Replace tabs with spaces when followed by conditionals for future GNU Make versions
This is horrid.
Now, the whole "whitespace type matters" is broken in Make anyway, so clearly this is a fundamental make problem, but this commit makes things worse by making the tab replacement use eight spaces, so it really visually is entirely indistinguishable.
Don't make a 'make' problem worse by not visually distinguishing tabs from spaces.
IOW, those "that can't be a tab" cases should have used pretty much _anything_ but 8 spaces. Yes on indentation of nested 'if' statements, but no on then using something that visually makes no sense.
IOW, those nested if-statements should use perhaps just 2-4 spaces instead. That tends to match what we sometimes see in C files too, and it is visually very clearly not a tab with the kernel coding rules (yes, yes, some people set tabstops to smaller values, that's _their_ problem).
I've pulled this, but please fix it, and don't make an insane Makefile whitespace situation worse.
Linus
Hi Linus,
Quoted 26 lines · Linus Torvalds
Quoted 3 lines · Masahiro Yamada
- Replace tabs with spaces when followed by conditionals for future GNU Make versions
This is horrid.
Now, the whole "whitespace type matters" is broken in Make anyway, so clearly this is a fundamental make problem, but this commit makes things worse by making the tab replacement use eight spaces, so it really visually is entirely indistinguishable.
Don't make a 'make' problem worse by not visually distinguishing tabs from spaces.
IOW, those "that can't be a tab" cases should have used pretty much _anything_ but 8 spaces. Yes on indentation of nested 'if' statements, but no on then using something that visually makes no sense.
IOW, those nested if-statements should use perhaps just 2-4 spaces instead. That tends to match what we sometimes see in C files too, and it is visually very clearly not a tab with the kernel coding rules (yes, yes, some people set tabstops to smaller values, that's _their_ problem).
Quoted 4 lines
I've pulled this, but please fix it, and don't make an insane
Makefilewhitespace situation worse.Linus
Personally, I find 4 spaces more comfortable than 2, as the increased indentation enhances readability.
When we have a build rule inside an if-block, we cannot indent the code. In such cases, we can add a comment after the closing 'endif' if it helps improve the readability, just like we often do for preprocessor conditionals in C files.
So, the best consistency we can achieve is a combination of "4-space indentation" and "no indentation at all".
I attached a patch to replace tab/8-space indentation.
Probably, there are still unconverted conditionals, but I fixed all the code blocks touched by commit 82175d1f9430.
Is this your expectation?
Signature · 2 lines
Best Regards Masahiro Yamada
From 4bd029eff6e0a88d72e05cc0a962af23b735fef8 Mon Sep 17 00:00:00 2001
From: Masahiro Yamada <[email protected]>
Date: Fri, 2 Feb 2024 06:23:44 +0900
Subject: [PATCH] Makefile: replace tab/8-space indentation with 4-space
indentation
We cannot use tab-indentation in nested if-blocks for the reason described in commit 82175d1f9430 ("kbuild: Replace tabs with spaces when followed by conditionals").
Technically, only tabs followed by conditionals matter, but it is not a good idea to mix tab indentation and 8-space indentation within the same if-block.
Linus suggested 2 or 4 spaces for nested if-blocks. [1]
This commit replaces a tab with 4 spaces in if-blocks including unnested ones. Otherwise, someone may accidentally append a conditional after a tab. Also, 8 spaces, which cannot be visually distinguished, should be replaced with 4 spaces.
[1]: https://lore.kernel.org/all/CAHk-=whJKZNZWsa-VNDKafS_VfY4a5dAjG-r8BZgWk_a-xSepw@mail.gmail.com/
--- Makefile | 84 ++++++++++---------- arch/m68k/Makefile | 8 +- arch/mips/Makefile | 4 +- arch/openrisc/Makefile | 16 ++-- arch/parisc/Makefile | 20 ++--- arch/powerpc/Makefile | 8 +- arch/riscv/Makefile | 56 +++++++------- arch/sparc/Makefile | 4 +- arch/um/Makefile | 4 +- arch/x86/Makefile | 136 ++++++++++++++++----------------- tools/scripts/Makefile.arch | 12 +-- tools/scripts/Makefile.include | 64 ++++++++-------- 12 files changed, 208 insertions(+), 208 deletions(-)
Makefile +42 -42
@@ -245,17 +245,17 @@ else # need-sub-make # We process the rest of the Makefile if this is the final invocation of make ifeq ($(abs_srctree),$(abs_objtree)) - # building in the source tree - srctree := . - building_out_of_srctree := + # building in the source tree + srctree := . + building_out_of_srctree := else - ifeq ($(abs_srctree)/,$(dir $(abs_objtree))) - # building in a subdirectory of the source tree - srctree := .. - else - srctree := $(abs_srctree) - endif - building_out_of_srctree := 1 + ifeq ($(abs_srctree)/,$(dir $(abs_objtree))) + # building in a subdirectory of the source tree + srctree := .. + else + srctree := $(abs_srctree) + endif + building_out_of_srctree := 1 endif ifneq ($(KBUILD_ABS_SRCTREE),)
@@ -294,52 +294,52 @@ may-sync-config := 1 single-build := ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) - ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) - need-config := - endif + ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) + need-config := + endif endif ifneq ($(filter $(no-sync-config-targets), $(MAKECMDGOALS)),) - ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),) - may-sync-config := - endif + ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),) + may-sync-config := + endif endif need-compiler := $(may-sync-config) ifneq ($(KBUILD_EXTMOD),) - may-sync-config := + may-sync-config := endif ifeq ($(KBUILD_EXTMOD),) - ifneq ($(filter %config,$(MAKECMDGOALS)),) - config-build := 1 - ifneq ($(words $(MAKECMDGOALS)),1) - mixed-build := 1 - endif + ifneq ($(filter %config,$(MAKECMDGOALS)),) + config-build := 1 + ifneq ($(words $(MAKECMDGOALS)),1) + mixed-build := 1 endif + endif endif # We cannot build single targets and the others at the same time ifneq ($(filter $(single-targets), $(MAKECMDGOALS)),) - single-build := 1 - ifneq ($(filter-out $(single-targets), $(MAKECMDGOALS)),) - mixed-build := 1 - endif + single-build := 1 + ifneq ($(filter-out $(single-targets), $(MAKECMDGOALS)),) + mixed-build := 1 + endif endif # For "make -j clean all", "make -j mrproper defconfig all", etc. ifneq ($(filter $(clean-targets),$(MAKECMDGOALS)),) - ifneq ($(filter-out $(clean-targets),$(MAKECMDGOALS)),) - mixed-build := 1 - endif + ifneq ($(filter-out $(clean-targets),$(MAKECMDGOALS)),) + mixed-build := 1 + endif endif # install and modules_install need also be processed one by one ifneq ($(filter install,$(MAKECMDGOALS)),) - ifneq ($(filter modules_install,$(MAKECMDGOALS)),) - mixed-build := 1 - endif + ifneq ($(filter modules_install,$(MAKECMDGOALS)),) + mixed-build := 1 + endif endif ifdef mixed-build
@@ -395,23 +395,23 @@ SRCARCH := $(ARCH) # Additional ARCH settings for x86 ifeq ($(ARCH),i386) - SRCARCH := x86 + SRCARCH := x86 endif ifeq ($(ARCH),x86_64) - SRCARCH := x86 + SRCARCH := x86 endif # Additional ARCH settings for sparc ifeq ($(ARCH),sparc32) - SRCARCH := sparc + SRCARCH := sparc endif ifeq ($(ARCH),sparc64) - SRCARCH := sparc + SRCARCH := sparc endif # Additional ARCH settings for parisc ifeq ($(ARCH),parisc64) - SRCARCH := parisc + SRCARCH := parisc endif export cross_compiling :=
@@ -580,15 +580,15 @@ KBUILD_LDFLAGS := CLANG_FLAGS := ifeq ($(KBUILD_CLIPPY),1) - RUSTC_OR_CLIPPY_QUIET := CLIPPY - RUSTC_OR_CLIPPY = $(CLIPPY_DRIVER) + RUSTC_OR_CLIPPY_QUIET := CLIPPY + RUSTC_OR_CLIPPY = $(CLIPPY_DRIVER) else - RUSTC_OR_CLIPPY_QUIET := RUSTC - RUSTC_OR_CLIPPY = $(RUSTC) + RUSTC_OR_CLIPPY_QUIET := RUSTC + RUSTC_OR_CLIPPY = $(RUSTC) endif ifdef RUST_LIB_SRC - export RUST_LIB_SRC + export RUST_LIB_SRC endif # Allows the usage of unstable features in stable compilers.
arch/m68k/Makefile +4 -4
@@ -15,10 +15,10 @@ KBUILD_DEFCONFIG := multi_defconfig ifdef cross_compiling - ifeq ($(CROSS_COMPILE),) - CROSS_COMPILE := $(call cc-cross-prefix, \ - m68k-linux-gnu- m68k-linux- m68k-unknown-linux-gnu-) - endif + ifeq ($(CROSS_COMPILE),) + CROSS_COMPILE := $(call cc-cross-prefix, \ + m68k-linux-gnu- m68k-linux- m68k-unknown-linux-gnu-) + endif endif #
arch/mips/Makefile +2 -2
@@ -317,9 +317,9 @@ endif # remove the upper 32 bits then, as it is safe to do so with other # linkers. ifdef CONFIG_64BIT - load-ld = $(load-y) + load-ld = $(load-y) else - load-ld = $(subst 0xffffffff,0x,$(load-y)) + load-ld = $(subst 0xffffffff,0x,$(load-y)) endif KBUILD_AFLAGS += $(cflags-y)
arch/openrisc/Makefile +8 -8
@@ -28,31 +28,31 @@ all: vmlinux.bin boot := arch/$(ARCH)/boot ifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y) - KBUILD_CFLAGS += $(call cc-option,-mhard-mul) + KBUILD_CFLAGS += $(call cc-option,-mhard-mul) else - KBUILD_CFLAGS += $(call cc-option,-msoft-mul) + KBUILD_CFLAGS += $(call cc-option,-msoft-mul) endif ifeq ($(CONFIG_OPENRISC_HAVE_INST_DIV),y) - KBUILD_CFLAGS += $(call cc-option,-mhard-div) + KBUILD_CFLAGS += $(call cc-option,-mhard-div) else - KBUILD_CFLAGS += $(call cc-option,-msoft-div) + KBUILD_CFLAGS += $(call cc-option,-msoft-div) endif ifeq ($(CONFIG_OPENRISC_HAVE_INST_CMOV),y) - KBUILD_CFLAGS += $(call cc-option,-mcmov) + KBUILD_CFLAGS += $(call cc-option,-mcmov) endif ifeq ($(CONFIG_OPENRISC_HAVE_INST_ROR),y) - KBUILD_CFLAGS += $(call cc-option,-mror) + KBUILD_CFLAGS += $(call cc-option,-mror) endif ifeq ($(CONFIG_OPENRISC_HAVE_INST_RORI),y) - KBUILD_CFLAGS += $(call cc-option,-mrori) + KBUILD_CFLAGS += $(call cc-option,-mrori) endif ifeq ($(CONFIG_OPENRISC_HAVE_INST_SEXT),y) - KBUILD_CFLAGS += $(call cc-option,-msext) + KBUILD_CFLAGS += $(call cc-option,-msext) endif libs-y += $(LIBGCC)
arch/parisc/Makefile +10 -10
@@ -30,11 +30,11 @@ endif # select defconfig based on actual architecture ifeq ($(ARCH),parisc64) - KBUILD_DEFCONFIG := generic-64bit_defconfig - CC_ARCHES := hppa64 + KBUILD_DEFCONFIG := generic-64bit_defconfig + CC_ARCHES := hppa64 else - KBUILD_DEFCONFIG := generic-32bit_defconfig - CC_ARCHES := hppa hppa2.0 hppa1.1 + KBUILD_DEFCONFIG := generic-32bit_defconfig + CC_ARCHES := hppa hppa2.0 hppa1.1 endif export LD_BFD
@@ -50,12 +50,12 @@ export CROSS32CC # Set default cross compiler for kernel build ifdef cross_compiling - ifeq ($(CROSS_COMPILE),) - CC_SUFFIXES = linux linux-gnu unknown-linux-gnu suse-linux - CROSS_COMPILE := $(call cc-cross-prefix, \ - $(foreach a,$(CC_ARCHES), \ - $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) - endif + ifeq ($(CROSS_COMPILE),) + CC_SUFFIXES = linux linux-gnu unknown-linux-gnu suse-linux + CROSS_COMPILE := $(call cc-cross-prefix, \ + $(foreach a,$(CC_ARCHES), \ + $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) + endif endif ifdef CONFIG_DYNAMIC_FTRACE
arch/powerpc/Makefile +4 -4
@@ -43,9 +43,9 @@ endif export BITS ifdef CONFIG_PPC64 - BITS := 64 + BITS := 64 else - BITS := 32 + BITS := 32 endif machine-y = ppc
@@ -186,8 +186,8 @@ CHECKFLAGS += -D__LITTLE_ENDIAN__ endif ifdef CONFIG_476FPE_ERR46 - KBUILD_LDFLAGS_MODULE += --ppc476-workaround \ - -T $(srctree)/arch/powerpc/platforms/44x/ppc476_modules.lds + KBUILD_LDFLAGS_MODULE += --ppc476-workaround \ + -T $(srctree)/arch/powerpc/platforms/44x/ppc476_modules.lds endif # No prefix or pcrel
arch/riscv/Makefile +28 -28
88 lines not on this page · raw message
arch/sparc/Makefile +2 -2
@@ -10,9 +10,9 @@ # We are not yet configured - so test on arch ifeq ($(ARCH),sparc64) - KBUILD_DEFCONFIG := sparc64_defconfig + KBUILD_DEFCONFIG := sparc64_defconfig else - KBUILD_DEFCONFIG := sparc32_defconfig + KBUILD_DEFCONFIG := sparc32_defconfig endif ifeq ($(CONFIG_SPARC32),y)
arch/um/Makefile +2 -2
@@ -27,11 +27,11 @@ MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas HEADER_ARCH := $(SUBARCH) ifneq ($(filter $(SUBARCH),x86 x86_64 i386),) - HEADER_ARCH := x86 + HEADER_ARCH := x86 endif ifdef CONFIG_64BIT - KBUILD_CFLAGS += -mcmodel=large + KBUILD_CFLAGS += -mcmodel=large endif HOST_DIR := arch/$(HEADER_ARCH)
arch/x86/Makefile +68 -68
169 lines not on this page · raw message
tools/scripts/Makefile.arch +6 -6
@@ -15,27 +15,27 @@ SRCARCH := $(ARCH) # Additional ARCH settings for x86 ifeq ($(ARCH),i386) - SRCARCH := x86 + SRCARCH := x86 endif ifeq ($(ARCH),x86_64) - SRCARCH := x86 + SRCARCH := x86 endif # Additional ARCH settings for sparc ifeq ($(ARCH),sparc32) - SRCARCH := sparc + SRCARCH := sparc endif ifeq ($(ARCH),sparc64) - SRCARCH := sparc + SRCARCH := sparc endif # Additional ARCH settings for loongarch ifeq ($(ARCH),loongarch32) - SRCARCH := loongarch + SRCARCH := loongarch endif ifeq ($(ARCH),loongarch64) - SRCARCH := loongarch + SRCARCH := loongarch endif LP64 := $(shell echo __LP64__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
tools/scripts/Makefile.include +32 -32
77 lines not on this page · raw message
Signature · 1 line
2.40.1
Quoted 2 lines · Masahiro Yamada
Is this your expectation?
Commit 82175d1f9430 touched *only* the nested 'if' indentations.
Your attached changed other indentations too, which I am not sure makes any sense.
But honestly, that whole make rule wrt whitespace makes no sense to begin with, and I don't know why the conditional statement is so special to begin with, and why GNU make would then suddenly start messing with an insane rule with bad historical reasons.
End result: all of this just reinforces how bad the Make rules for whitespace is, but I would suggest doing the *minimal* changes to make it work.
Which commit 82175d1f9430 did, but your attached patch then does not.
IOW, if the whole crazy makefile whitespace change was only about conditionals, let's keep all the stupid whitespace fixups as purely about conditionals too.
Linus
Hello Linus,
Quoted 7 lines · Linus Torvalds
Quoted 2 lines · Masahiro Yamada
Is this your expectation?
Commit
82175d1f9430touched *only* the nested 'if' indentations.
Quoted 7 lines
Your attached changed other indentations too, which I am not sure makes any sense.
But honestly, that whole make rule wrt whitespace makes no sense to begin with, and I don't know why the conditional statement is so special to begin with, and why GNU make would then suddenly start messing with an insane rule with bad historical reasons.
In my understanding, the GNU Make parser is confused with shell's 'else' keyword.
So, GNU Make determined that 'else' indented with a tab is not the Make's conditional directive.
Quoted 5 lines
End result: all of this just reinforces how bad the Make rules for whitespace is, but I would suggest doing the *minimal* changes to make it work.
Quoted 8 lines
Which commit
82175d1f9430did, but your attached patch then does not.IOW, if the whole crazy makefile whitespace change was only about conditionals, let's keep all the stupid whitespace fixups as purely about conditionals too.
Linus
I attached a new patch.
I only changed the lines touch by 82175d1f9430
Signature · 2 lines
Best Regards Masahiro Yamada
From 4de9490472b3cd6fb5c783ea5fd130e32695da2e Mon Sep 17 00:00:00 2001
From: Masahiro Yamada <[email protected]>
Date: Fri, 2 Feb 2024 10:31:42 +0900
Subject: [PATCH] kbuild: use 4-space indentation when followed by conditionals
GNU Make manual [1] clearly forbids a tab at the beginning of the conditional directive line:
"Extra spaces are allowed and ignored at the beginning of the
conditional directive line, but a tab is not allowed."
This will not work for the next release of GNU Make, hence commit 82175d1f9430 ("kbuild: Replace tabs with spaces when followed by conditionals") replaced the inappropriate tabs with 8 spaces.
However, the 8-space indentation cannot be visually distinguished. Linus suggested 2-4 spaces for those nested if-statements. [2]
This commit redoes the replacement with 4 spaces.
[1]: https://www.gnu.org/software/make/manual/make.html#Conditional-Syntax
[2]: https://lore.kernel.org/all/CAHk-=whJKZNZWsa-VNDKafS_VfY4a5dAjG-r8BZgWk_a-xSepw@mail.gmail.com/
--- Makefile | 12 ++++++------ arch/m68k/Makefile | 4 ++-- arch/parisc/Makefile | 4 ++-- arch/x86/Makefile | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-)
Makefile +6 -6
@@ -294,15 +294,15 @@ may-sync-config := 1 single-build := ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) - ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) + ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) need-config := - endif + endif endif ifneq ($(filter $(no-sync-config-targets), $(MAKECMDGOALS)),) - ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),) + ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),) may-sync-config := - endif + endif endif need-compiler := $(may-sync-config)
@@ -323,9 +323,9 @@ endif # We cannot build single targets and the others at the same time ifneq ($(filter $(single-targets), $(MAKECMDGOALS)),) single-build := 1 - ifneq ($(filter-out $(single-targets), $(MAKECMDGOALS)),) + ifneq ($(filter-out $(single-targets), $(MAKECMDGOALS)),) mixed-build := 1 - endif + endif endif # For "make -j clean all", "make -j mrproper defconfig all", etc.
arch/m68k/Makefile +2 -2
@@ -15,10 +15,10 @@ KBUILD_DEFCONFIG := multi_defconfig ifdef cross_compiling - ifeq ($(CROSS_COMPILE),) + ifeq ($(CROSS_COMPILE),) CROSS_COMPILE := $(call cc-cross-prefix, \ m68k-linux-gnu- m68k-linux- m68k-unknown-linux-gnu-) - endif + endif endif #
arch/parisc/Makefile +2 -2
@@ -50,12 +50,12 @@ export CROSS32CC # Set default cross compiler for kernel build ifdef cross_compiling - ifeq ($(CROSS_COMPILE),) + ifeq ($(CROSS_COMPILE),) CC_SUFFIXES = linux linux-gnu unknown-linux-gnu suse-linux CROSS_COMPILE := $(call cc-cross-prefix, \ $(foreach a,$(CC_ARCHES), \ $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) - endif + endif endif ifdef CONFIG_DYNAMIC_FTRACE
arch/x86/Makefile +4 -4
@@ -112,13 +112,13 @@ ifeq ($(CONFIG_X86_32),y) # temporary until string.h is fixed KBUILD_CFLAGS += -ffreestanding - ifeq ($(CONFIG_STACKPROTECTOR),y) - ifeq ($(CONFIG_SMP),y) + ifeq ($(CONFIG_STACKPROTECTOR),y) + ifeq ($(CONFIG_SMP),y) KBUILD_CFLAGS += -mstack-protector-guard-reg=fs -mstack-protector-guard-symbol=__stack_chk_guard - else + else KBUILD_CFLAGS += -mstack-protector-guard=global - endif endif + endif else BITS := 64 UTS_MACHINE := x86_64
Signature · 1 line
2.40.1
Hello Linus,
Quoted 40 lines · Masahiro Yamada
Hello Linus,
Quoted 7 lines · Linus Torvalds
Quoted 2 lines · Masahiro Yamada
Is this your expectation?
Commit
82175d1f9430touched *only* the nested 'if' indentations.Quoted 7 lines
Your attached changed other indentations too, which I am not sure makes any sense.
But honestly, that whole make rule wrt whitespace makes no sense to begin with, and I don't know why the conditional statement is so special to begin with, and why GNU make would then suddenly start messing with an insane rule with bad historical reasons.
In my understanding, the GNU Make parser is confused with shell's 'else' keyword.
So, GNU Make determined that 'else' indented with a tab is not the Make's conditional directive.
Quoted 11 lines
End result: all of this just reinforces how bad the Make rules for whitespace is, but I would suggest doing the *minimal* changes to make it work.
Which commit
82175d1f9430did, but your attached patch then does not.IOW, if the whole crazy makefile whitespace change was only about conditionals, let's keep all the stupid whitespace fixups as purely about conditionals too.
Quoted 6 lines
Quoted 2 lines
Linus
I attached a new patch.
I only changed the lines touch by82175d1f9430
Is the second patch fine with you?
If so, will you pick it up, or do you want me
to include it in the next pull request?
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 2 lines · Masahiro Yamada
Is the second patch fine with you?
Yes.
Quoted 2 lines
If so, will you pick it up, or do you want me
to include it in the next pull request?
This is not critical enough to bypass the regular pull chain, so just put it in your queue, and I'll get it with the next pull.
Linus
The pull request you sent on Thu, 1 Feb 2024 22:39:45 +0900:
The pull request you sent on Thu, 1 Feb 2024 22:39:45 +0900:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.gittags/kbuild-fixes-v6.8
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/a412682659b3832ac6f1a301e1c147027926f605
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html