Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/kmb: annotate set_test_mode_src_osc_freq_target_{low, hi}_bits() with __maybe_unused

Building with clang and and W=1 leads to warning about unused
set_test_mode_src_osc_freq_target_low_bits() and
set_test_mode_src_osc_freq_target_hi_bits(). Fix by annotating them with
__maybe_unused.

See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static
inline functions for W=1 build").

Acked-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
Tested-by: Nathan Chancellor <nathan@kernel.org> # build
Link: https://patchwork.freedesktop.org/patch/msgid/29a83771edd9b85032095ed3ecc1e91a77229b90.1725962479.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+2 -2
+2 -2
drivers/gpu/drm/kmb/kmb_dsi.c
··· 818 818 } 819 819 } 820 820 821 - static inline void 821 + static inline __maybe_unused void 822 822 set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi, 823 823 u32 dphy_no, 824 824 u32 freq) ··· 830 830 (freq & 0x7f)); 831 831 } 832 832 833 - static inline void 833 + static inline __maybe_unused void 834 834 set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi, 835 835 u32 dphy_no, 836 836 u32 freq)