From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: [PATCH] scripts: include: break dependency of list.h on kernel.h
Date: Mon, 09 Feb 2026 14:50:22 +0100 [thread overview]
Message-ID: <177064502272.664618.16301086778311276242.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20260205143043.2831511-1-a.fatoum@pengutronix.de>
On Thu, 05 Feb 2026 15:30:42 +0100, Ahmad Fatoum wrote:
> We already got rid of this dependency for the normal barebox build, so
> break it up for the scripts/ build as well to avoid this nconf warning
> on some distros:
>
> In file included from scripts/kconfig/nconf.c:15:
> scripts/kconfig/nconf.h:25:9: warning: ‘max’ redefined
> 25 | #define max(a, b) ({\
> | ^~~
> In file included from ./barebox/scripts/include/linux/list.h:5,
> from ./barebox/scripts/include/list.h:5,
> from scripts/kconfig/expr.h:15,
> from scripts/kconfig/lkc.h:13,
> from scripts/kconfig/nconf.c:14:
> ./barebox/scripts/include/linux/kernel.h:39:9: note: this is the location of the previous definition
> 39 | #define max(x, y) ({ \
> | ^~~
> scripts/kconfig/nconf.h:30:9: warning: ‘min’ redefined
>
> [...]
Applied, thanks!
[1/1] scripts: include: break dependency of list.h on kernel.h
https://git.pengutronix.de/cgit/barebox/commit/?id=c917e41c99c6 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2026-02-09 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-05 14:30 Ahmad Fatoum
2026-02-09 13:50 ` Sascha Hauer [this message]
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=177064502272.664618.16301086778311276242.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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