From: Jani Nikula <jani.nikula@intel.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
linux-renesas-soc@vger.kernel.org,
Nathan Chancellor <nathan@kernel.org>
Subject: Re: [PATCH v2 2/3] drm: renesas: rcar-du: annotate rcar_cmm_read() with __maybe_unused
Date: Thu, 09 Jan 2025 14:42:41 +0200 [thread overview]
Message-ID: <87plkwjgzi.fsf@intel.com> (raw)
In-Reply-To: <20241205160234.GN10736@pendragon.ideasonboard.com>
On Thu, 05 Dec 2024, Laurent Pinchart <laurent.pinchart@ideasonboard.com> wrote:
> On Thu, Dec 05, 2024 at 05:03:00PM +0200, Jani Nikula wrote:
>> Building with clang and and W=1 leads to warning about unused
>> rcar_cmm_read(). Fix by annotating it with __maybe_unused.
>>
>> See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static
>> inline functions for W=1 build").
>>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> https://lore.kernel.org/r/20240911095113.GB4470@pendragon.ideasonboard.com
>
> I wonder if Dave and Sima are starting to ignore my pull request in the
> hope I'll switch to using drm-misc :-S I'll send another one.
Have you sent the pull request again? I haven't seen one.
BR,
Jani.
>
>> ---
>>
>> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>> Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>> Cc: linux-renesas-soc@vger.kernel.org
>> Cc: Nathan Chancellor <nathan@kernel.org>
>> ---
>> drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c b/drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c
>> index 26a2f5ad8ee5..ea52b0af9226 100644
>> --- a/drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c
>> +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c
>> @@ -32,7 +32,7 @@ struct rcar_cmm {
>> } lut;
>> };
>>
>> -static inline int rcar_cmm_read(struct rcar_cmm *rcmm, u32 reg)
>> +static inline __maybe_unused int rcar_cmm_read(struct rcar_cmm *rcmm, u32 reg)
>> {
>> return ioread32(rcmm->base + reg);
>> }
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-01-09 12:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 15:02 [PATCH v2 0/3] drm: fix and enable warnings on unused static inlines Jani Nikula
2024-12-05 15:02 ` [PATCH v2 1/3] drm/bridge: dw-hdmi-i2s: annotate hdmi_read() with __maybe_unused Jani Nikula
2024-12-05 15:03 ` [PATCH v2 2/3] drm: renesas: rcar-du: annotate rcar_cmm_read() " Jani Nikula
2024-12-05 16:02 ` Laurent Pinchart
2025-01-09 12:42 ` Jani Nikula [this message]
2024-12-05 15:03 ` [PATCH v2 3/3] drm: enable warnings on unused static inlines Jani Nikula
2024-12-05 21:18 ` ✗ Fi.CI.CHECKPATCH: warning for drm: fix and enable warnings on unused static inlines (rev2) Patchwork
2024-12-05 21:18 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-12-05 21:35 ` ✓ i915.CI.BAT: success " Patchwork
2024-12-05 22:45 ` ✓ i915.CI.Full: " Patchwork
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=87plkwjgzi.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=nathan@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.