lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251219195657.GA1404453@ax162>
Date: Fri, 19 Dec 2025 12:56:57 -0700
From: Nathan Chancellor <nathan@...nel.org>
To: Graham Roff <grahamr@....qualcomm.com>
Cc: Nicolas Schier <nsc@...nel.org>, Jonathan Corbet <corbet@....net>,
	linux-kbuild@...r.kernel.org, linux-doc@...r.kernel.org,
	linux-kernel@...r.kernel.org, Nicolas Pitre <nico@...xnic.net>,
	Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH v3] kconfig: Support conditional deps using "depends on X
 if Y"

Hi Graham,

On Mon, Dec 15, 2025 at 03:06:54PM -0800, Graham Roff wrote:
> From: Nicolas Pitre <nico@...xnic.net>
> 
> Extend the "depends on" syntax to support conditional dependencies
> using "depends on X if Y". While functionally equivalent to "depends
> on X || (Y == n)", "depends on X if Y" is much more readable and
> makes the kconfig language uniform in supporting the "if <expr>"
> suffix.
> This also improves readability for "optional" dependencies, which
> are the subset of conditional dependencies where X is Y.
> Previously such optional dependencies had to be expressed as
> the counterintuitive "depends on X || !X", now this can be
> represented as "depends on X if X".
> 
> The change is implemented by converting the "X if Y" syntax into the
> "X || (Y == n)" syntax during "depends on" token processing.
> 
> Signed-off-by: Nicolas Pitre <nico@...xnic.net>
> 
> [Graham Roff: Rewrote commit message, updated patch, added tests]
> 
> Signed-off-by: Graham Roff <grahamr@....qualcomm.com>

Thanks, I think this is a reasonable extension and the updates to v3
clear up all of my concerns.

I plan to apply this to kbuild-next in a week or so to give adequate
time for people to comment and review it.

Cheers,
Nathan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ