From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: [PATCH] kbuild: make implicit int to pointer conversion warning an error
Date: Fri, 03 May 2024 09:04:58 +0200 [thread overview]
Message-ID: <171471989856.16178.14089434739107507662.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20240430131540.3597376-1-a.fatoum@pengutronix.de>
On Tue, 30 Apr 2024 15:15:40 +0200, Ahmad Fatoum wrote:
> We are guilty of using ints as pointers in readl/writel, but the old
> definition of these uses a cast to silence the warning.
>
> Everywhere else there's no reason to allow this, so make this a hard
> error always to weed out any instances we may still have.
>
> Disallowing this has the added benefit of making it easier to change API
> in barebox: We do not guarantee out-of-tree board code API stability,
> but we want changes in API to result in build errors, not in warnings
> that may be eaten up by a build system sitting in-between Kbuild and the
> user.
>
> [...]
Applied, thanks!
[1/1] kbuild: make implicit int to pointer conversion warning an error
https://git.pengutronix.de/cgit/barebox/commit/?id=bcb16b721fb8 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2024-05-03 7:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 13:15 Ahmad Fatoum
2024-05-03 7:04 ` 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=171471989856.16178.14089434739107507662.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