[PATCH 6/8] drm/meson: dw-hdmi: annotate dw_hdmi_dwc_write_bits() with __maybe_unused
Jani Nikula
jani.nikula at intel.com
Mon Sep 16 07:43:41 UTC 2024
On Sun, 15 Sep 2024, Martin Blumenstingl <martin.blumenstingl at googlemail.com> wrote:
> Hi Jani,
>
> On Tue, Sep 10, 2024 at 12:08 PM Jani Nikula <jani.nikula at intel.com> wrote:
>>
>> Building with clang and and W=1 leads to warning about unused
>> dw_hdmi_dwc_write_bits(). 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 at intel.com>
> I prefer dropping this function for which there's a patch already: [0]
Even better, thanks!
BR,
Jani.
>
>
> [0] https://lore.kernel.org/linux-amlogic/20240908-regmap-config-const-v1-1-28f349004811@linaro.org/
--
Jani Nikula, Intel
More information about the dri-devel
mailing list