]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: sn65dsi86: ti_sn65dsi86_read_u16() __maybe_unused
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 28 Oct 2021 16:35:48 +0000 (09:35 -0700)
committerRobert Foss <robert.foss@linaro.org>
Thu, 28 Oct 2021 17:11:17 +0000 (19:11 +0200)
commiteca49f2a67a4168d1316e877029d2d579bdf0990
tree57ca9dbff1f0da5afb9a0ff07a697940fefe4511
parent8a60b89ea5c6e5e908b77e2668bca5ccd565d507
drm/bridge: sn65dsi86: ti_sn65dsi86_read_u16() __maybe_unused

When built without CONFIG_PWM there are no references to
ti_sn65dsi86_read_u16(), avoid the W=1 build warning by marking the
function as __maybe_unused.

__maybe_unused is used insted of a #ifdef guard as it looks slighly
cleaner and it avoids issues if in the future other permutations of the
config options would use the function.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 524e54a9f780 ("drm/bridge: ti-sn65dsi86: Implement the pwm_chip")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211028163548.273736-1-bjorn.andersson@linaro.org
Signed-off-by: Robert Foss <robert.foss@linaro.org>
drivers/gpu/drm/bridge/ti-sn65dsi86.c