mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
drm/bridge: ti-sn65dsi86: annotate ti_sn_pwm_pin_{request, release} with __maybe_unused
Building with clang, W=1, CONFIG_PM=n and CONFIG_OF_GPIO=n leads to
warning about unused ti_sn_pwm_pin_request() and
ti_sn_pwm_pin_release(). Fix by annotating them with __maybe_unused.
See also commit 6863f5643d ("kbuild: allow Clang to find unused static
inline functions for W=1 build").
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/136ecd978aedd7df39d1b1c37b70596027ff0a3e.1725962479.git.jani.nikula@intel.com
This commit is contained in:
committed by
Douglas Anderson
parent
32e5666b8a
commit
868cd000c1
@@ -1635,8 +1635,8 @@ static void ti_sn_pwm_unregister(void)
|
||||
}
|
||||
|
||||
#else
|
||||
static inline int ti_sn_pwm_pin_request(struct ti_sn65dsi86 *pdata) { return 0; }
|
||||
static inline void ti_sn_pwm_pin_release(struct ti_sn65dsi86 *pdata) {}
|
||||
static inline int __maybe_unused ti_sn_pwm_pin_request(struct ti_sn65dsi86 *pdata) { return 0; }
|
||||
static inline void __maybe_unused ti_sn_pwm_pin_release(struct ti_sn65dsi86 *pdata) {}
|
||||
|
||||
static inline int ti_sn_pwm_register(void) { return 0; }
|
||||
static inline void ti_sn_pwm_unregister(void) {}
|
||||
|
||||
Reference in New Issue
Block a user