Message ID | CAK7LNASGqfMkTuzP28qydpYCC0ct3cAgMpbPpmgHuQHZbtLhbA@mail.gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-48249-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp166452dyb; Thu, 1 Feb 2024 05:57:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDU9PB792gyZ03EoPNzONeBZeztqfUHzRcQXL4xzSXtipoUmejFIzQ35zk925fSmHcK0fd X-Received: by 2002:a05:6a20:3f9f:b0:19c:b3f9:2999 with SMTP id ay31-20020a056a203f9f00b0019cb3f92999mr4769434pzb.27.1706795853486; Thu, 01 Feb 2024 05:57:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706795853; cv=pass; d=google.com; s=arc-20160816; b=HajTNvN5+Wu+h3COw/tZJmhSmPng9uMpItVvyEt3XOvoaWQg/ULvZlJ+n3hI3C0HKb tAGVBTvOI5Hvm5+on+CRROFF3Du8mVX01x+yU8MyQ8lnLUGLCvcpearkVGlqPENcMl9e B018lbpkd3RHs431NkwSo+80gurAqLAxvBfuCIFSzG/uN6aV+6jahhaVApd/uqLH5Aci R2bzXv+zvbkWD7CRJ/Qgq04HXET6YYXsp/jNPenIYDN4i+X0RC9NAxPz0LCHtgMLFic/ tONlolHgJMA9+OGoqybfAGJ3op2Rakb64lsyt8E29mci01Dar/SKREhuzhGhAkSXzW9d ptng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=ZpA191tS6ONJ8CYP0JvbiM3tZMsuEZccZiYl0BMuMuM=; fh=mEueQJZckXfZWEooeHr4YE/2/2x5qeBp5p+Cm57rPn0=; b=erddNZSOLP6uNnjHvuxWAHG+ATxG0I0YvLfnyamdOj7fDLbridRlf6ur0d23KMvlP6 lp2gJRf4osJlC6KMGOtGCOsOrYLOrEpHm2T//+Ij1KjPFbolHFnzY4nrCeWaDTleSaUg Q2DylBF/bCBbUQp/dIaKGdZLwDIUuQymvXwktEmjbUx8H8gvnQ99ClrHxlRb3kqZ7eSY ke+P1BZY2GIQIIDsW2uqgnuWQBVRgQ2WbXpb5hh/8p42IfFWDKdvUhpMz5s4J0QXA3HU PWCZ1hIHV2BAljRptSaVNPpidQ9nOZxiYzUANefFOKC07hvoKZtCmMYpV72ym5bJciaD TO9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hp/sY+LZ"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48249-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48249-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWvC40F/GdyBQKWnibFh2eQGi7RPVDRAvTPteHkN+0dIkXzkXaOeh4YfnYieTzjJk5OJ1YJt4zgrGu7JkWDBbx2GmRVRA== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r12-20020a170902c60c00b001d944e92be8si2151936plr.146.2024.02.01.05.57.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 05:57:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48249-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hp/sY+LZ"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-48249-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48249-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E83EEB27BF4 for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 13:40:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F123F5CDFE; Thu, 1 Feb 2024 13:40:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hp/sY+LZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B16D5336C; Thu, 1 Feb 2024 13:40:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706794824; cv=none; b=TKKF4tn4NACmghW7sjIdVwNKGkHGiGCIGldv9Bmz1+BH0/vyqC/yxM6SmFVJvqQ330Mx9syNI6hUWQmngrSaQxKgEADrK2kdJb8okiCJuelw9ysu88tDW6tbG/+ZEYceL5IsDPkaWeTKxlfZ/1hJkTPKHqk/vZgcXf9g1tKpHVU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706794824; c=relaxed/simple; bh=oAxNGUG5YGYpd4b7bdL9kU50O/b9yXAgFrSQl/Gwvm0=; h=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=X8J0SuPR9Hc9FkIgEG8VGYgTrMXVDSgJQ67AoTMYs5qFpCgJT+Widftm1iZUP2sZhKlfg5aPoQv2ET48F99SfXro4ioiiXlLH2JjXV39mkiAsH1tbZy1tCR+DgIR1M76/COal4HeNo7hmSgtkQLWUdt1MF7d6MFMI7QxugHUDGQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hp/sY+LZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C35B6C43390; Thu, 1 Feb 2024 13:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706794823; bh=oAxNGUG5YGYpd4b7bdL9kU50O/b9yXAgFrSQl/Gwvm0=; h=From:Date:Subject:To:Cc:From; b=hp/sY+LZdEB4EEqoIvqBGwBjRZEE+p7I5yA7vsb7EMv2IU9Qprzs+KyvJ0LwCQc2X 1EtrGfrA46KUGcrTzRYJy7eJaaWgQM1nqb/TrY8KLVyaz9kBx3VbHfi5K8FRRL5+ZD 0Xqr8+DNOGRnmGTvb9Vc5iFuShgypPHwvFnmp+6VQcyHi6pMIID5U5kXnkW56/W0J6 2N6sGuPFXQPfHgwdVRxDJuiYPmSyffPdyHunEwIqKbdcmkPraVS2GwiXnc07zNoGoA v8o7+T4qXFU6CuYTRohCMYFw5zMs2H+CGqPJorGjZuG63ktmaXlI2MB5PeThTesinc xFctkTNYlXAeQ== Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-5112a04c7acso1413846e87.3; Thu, 01 Feb 2024 05:40:23 -0800 (PST) X-Gm-Message-State: AOJu0YydDAMQ8QIHTqXVm9+e1Z0rEm+Iqk/QN6qvHh7bJ2FFtGsDbzu+ jBr3iO8wDjldSXwVNE7hYApVWWeEdwce7svZ4pwxyBkAxnmTvfSSzA4IEVzzP5VH0L4PV68E4j2 DFiLfUn5RJA25FhYQZ+zDYwPvNQU= X-Received: by 2002:a05:6512:32b8:b0:50e:378b:5187 with SMTP id q24-20020a05651232b800b0050e378b5187mr1803005lfe.41.1706794822293; Thu, 01 Feb 2024 05:40:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 From: Masahiro Yamada <masahiroy@kernel.org> Date: Thu, 1 Feb 2024 22:39:45 +0900 X-Gmail-Original-Message-ID: <CAK7LNASGqfMkTuzP28qydpYCC0ct3cAgMpbPpmgHuQHZbtLhbA@mail.gmail.com> Message-ID: <CAK7LNASGqfMkTuzP28qydpYCC0ct3cAgMpbPpmgHuQHZbtLhbA@mail.gmail.com> Subject: [GIT PULL] Kbuild fixes for v6.8-rc3 To: Linus Torvalds <torvalds@linux-foundation.org> Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Linux Kbuild mailing list <linux-kbuild@vger.kernel.org> Content-Type: text/plain; charset="UTF-8" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789705168912243210 X-GMAIL-MSGID: 1789705168912243210 |
Series |
[GIT,PULL] Kbuild fixes for v6.8-rc3
|
|
Pull-request
git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git tags/kbuild-fixes-v6.8Message
Masahiro Yamada
Feb. 1, 2024, 1:39 p.m. UTC
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(-)
Comments
On Thu, 1 Feb 2024 at 05:40, Masahiro Yamada <masahiroy@kernel.org> wrote: > > - 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
The pull request you sent on Thu, 1 Feb 2024 22:39:45 +0900:
> git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git tags/kbuild-fixes-v6.8
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/a412682659b3832ac6f1a301e1c147027926f605
Thank you!
Hi Linus, On Fri, Feb 2, 2024 at 5:06 AM Linus Torvalds <torvalds@linux-foundation.org> wrote: > > On Thu, 1 Feb 2024 at 05:40, Masahiro Yamada <masahiroy@kernel.org> wrote: > > > > - 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 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?
On Thu, 1 Feb 2024 at 15:57, Masahiro Yamada <masahiroy@kernel.org> wrote: > > 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, On Fri, Feb 2, 2024 at 9:43 AM Linus Torvalds <torvalds@linux-foundation.org> wrote: > > On Thu, 1 Feb 2024 at 15:57, Masahiro Yamada <masahiroy@kernel.org> wrote: > > > > 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. 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. > > 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 > I attached a new patch. I only changed the lines touch by 82175d1f9430
Hello Linus, On Fri, Feb 2, 2024 at 11:15 AM Masahiro Yamada <masahiroy@kernel.org> wrote: > > Hello Linus, > > > On Fri, Feb 2, 2024 at 9:43 AM Linus Torvalds > <torvalds@linux-foundation.org> wrote: > > > > On Thu, 1 Feb 2024 at 15:57, Masahiro Yamada <masahiroy@kernel.org> wrote: > > > > > > 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. > > > 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. > > > > > > 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 > > > > > I attached a new patch. > I only changed the lines touch by 82175d1f9430 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?
On Sun, 4 Feb 2024 at 00:00, Masahiro Yamada <masahiroy@kernel.org> wrote: > > Is the second patch fine with you? Yes. > 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