mbox series

[0/8] drm: fix and enable warnings on unused static inlines

Message ID cover.1725962479.git.jani.nikula@intel.com (mailing list archive)
Headers show
Series drm: fix and enable warnings on unused static inlines | expand

Message

Jani Nikula Sept. 10, 2024, 10:03 a.m. UTC
Follow-up to [1].

Annotate unused static inlines with __maybe_unused. In some cases it
might be better to remove them, but it's really up to the maintainers
what to do. Then enable the warning on default across subsystem.

BR,
Jani.

[1] https://lore.kernel.org/r/20240904123819.3784906-1-jani.nikula@intel.com


Jani Nikula (8):
  drm/bridge: dw-hdmi-i2s: annotate hdmi_read() with __maybe_unused
  drm: renesas: rcar-du: annotate rcar_cmm_read() with __maybe_unused
  drm/kmb: annotate set_test_mode_src_osc_freq_target_{low,hi}_bits()
    with __maybe_unused
  drm/bridge: ti-sn65dsi86: annotate ti_sn_pwm_pin_{request,release}
    with __maybe_unused
  drm/imagination: annotate pvr_fw_version_packed() with __maybe_unused
  drm/meson: dw-hdmi: annotate dw_hdmi_dwc_write_bits() with
    __maybe_unused
  drm/msmi: annotate pll_cmp_to_fdata() with __maybe_unused
  drm: enable warnings on unused static inlines

 drivers/gpu/drm/Makefile                            | 3 +++
 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 2 +-
 drivers/gpu/drm/bridge/ti-sn65dsi86.c               | 4 ++--
 drivers/gpu/drm/imagination/pvr_drv.c               | 2 +-
 drivers/gpu/drm/kmb/kmb_dsi.c                       | 4 ++--
 drivers/gpu/drm/meson/meson_dw_hdmi.c               | 8 ++++----
 drivers/gpu/drm/msm/hdmi/hdmi_phy_8998.c            | 2 +-
 drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c          | 2 +-
 8 files changed, 15 insertions(+), 12 deletions(-)

Comments

Nathan Chancellor Sept. 11, 2024, 5:46 p.m. UTC | #1
On Tue, Sep 10, 2024 at 01:03:36PM +0300, Jani Nikula wrote:
> Follow-up to [1].
> 
> Annotate unused static inlines with __maybe_unused. In some cases it
> might be better to remove them, but it's really up to the maintainers
> what to do. Then enable the warning on default across subsystem.

I merged drm-misc-next into next-20240910 and applied this series on top
of the result and it looks like all of the instances are fixed.

Tested-by: Nathan Chancellor <nathan@kernel.org> # build

Cheers,
Nathan