mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julian Braha <julianbraha@gmail.com>
To: Kees Cook <kees@kernel.org>, Nathan Chancellor <nathan@kernel.org>
Cc: "Nicolas Schier" <nsc@kernel.org>,
	"Matthew Maurer" <mmaurer@google.com>,
	"Miguel Ojeda" <ojeda@kernel.org>,
	"Masahiro Yamada" <masahiroy@kernel.org>,
	"Borislav Petkov (AMD)" <bp@alien8.de>,
	"Gary Guo" <gary@garyguo.net>,
	"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>,
	linux-kbuild@vger.kernel.org,
	"Lorenzo Stoakes (ARM)" <ljs@kernel.org>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Vegard Nossum" <vegard.nossum@oracle.com>,
	"Nauman Sabir" <officialnaumansabir@gmail.com>,
	"Tejun Heo" <tj@kernel.org>, "Nicolas Pitre" <nico@fluxnic.net>,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"Andrew Jones" <andrew.jones@linux.dev>,
	"Graham Roff" <grahamr@qti.qualcomm.com>,
	"Arnd Bergmann" <arnd@arndb.de>,
	"Krzysztof Kozlowski" <krzk@kernel.org>,
	linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-hardening@vger.kernel.org
Subject: Re: [PATCH 2/3] kconfig: Replace "cc-option-bit" with "cc-option-str"
Date: Mon, 21 Sep 2026 13:09:05 +0100	[thread overview]
Message-ID: <350cc022-2769-4052-93f4-029ef93fa41c@gmail.com> (raw)
In-Reply-To: <20260919005929.4077729-2-kees@kernel.org>

On 9/19/26 01:59, Kees Cook wrote:
> $(cc-option-bit) returns the flag it was given when the compiler accepts
> it, and an empty string otherwise. It was originally only used
> internally for machine bit flags, but it is generally useful[1].
> 
> Rename it to $(cc-option-str), which says what it returns rather than
> what it was first used for, and extract the probe logic from the existing
> $(cc-option) macro to reuse it. Additionally add support for an optional
> fallback, much like the Kbuild cc-option macro. This can be used as:
> 
> 	config CC_OPT_FOO
> 		def_string "$(cc-option-str,-fnew-option,-fold-option)"
> 
> If the fallback is omitted, it is just an empty string.
> 
> Build tested ARCH=x86_64 defconfig with GCC 16.2.0.
> 
> Assisted-by: LLM
> Signed-off-by: Kees Cook <kees@kernel.org>

Tested-by: Julian Braha <julianbraha@gmail.com>
Reviewed-by: Julian Braha <julianbraha@gmail.com>

  reply	other threads:[~2026-09-21 12:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19  0:59 [PATCH 0/3] kconfig: Introduce cc-option-str Kees Cook
2026-09-19  0:59 ` [PATCH 1/3] kconfig: Add "def_string", "def_int" and "def_hex" Kees Cook
2026-09-19 15:34   ` Julian Braha
2026-09-20  3:40     ` Kees Cook
2026-09-21 10:25       ` Julian Braha
2026-09-19  0:59 ` [PATCH 2/3] kconfig: Replace "cc-option-bit" with "cc-option-str" Kees Cook
2026-09-21 12:09   ` Julian Braha [this message]
2026-09-19  0:59 ` [PATCH 3/3] kconfig: Add "ld-option-str" Kees Cook
2026-09-21 12:27   ` Julian Braha
2026-09-19  1:25 ` [PATCH 0/3] kconfig: Introduce cc-option-str Nathan Chancellor
2026-09-19 13:31   ` Lorenzo Stoakes (ARM)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=350cc022-2769-4052-93f4-029ef93fa41c@gmail.com \
    --to=julianbraha@gmail.com \
    --cc=andrew.jones@linux.dev \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=bp@alien8.de \
    --cc=corbet@lwn.net \
    --cc=gary@garyguo.net \
    --cc=grahamr@qti.qualcomm.com \
    --cc=kees@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ljs@kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=mmaurer@google.com \
    --cc=nathan@kernel.org \
    --cc=nico@fluxnic.net \
    --cc=nsc@kernel.org \
    --cc=officialnaumansabir@gmail.com \
    --cc=ojeda@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    --cc=thomas.weissschuh@linutronix.de \
    --cc=tj@kernel.org \
    --cc=vegard.nossum@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®