pwm: make pwm_apply_state_debug static
PATCH 1/1 pwm: make pwm_apply_state_debug static
Fix the following gcc warning:
drivers/pwm/core.c:467:6: warning: symbol 'pwm_apply_state_debug' was not declared. Should it be static?
Reported-by Hulk Robot <[email protected]>
Signed-off-by Jason Yan <[email protected]>
--- drivers/pwm/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pwm/core.c +2 -2
@@ -464,8 +464,8 @@ void pwm_free(struct pwm_device *pwm) }EXPORT_SYMBOL_GPL (pwm_free); -void pwm_apply_state_debug (struct pwm_device *pwm, -const struct pwm_state *state) +static void pwm_apply_state_debug (struct pwm_device *pwm, +const struct pwm_state *state) {struct pwm_state *last = &pwm->last;struct pwm_chip *chip = pwm->chip;
Signature · 1 line
2.17.2
Quoted 7 lines · Jason Yan
Fix the following gcc warning:
drivers/pwm/core.c:467:6: warning: symbol 'pwm_apply_state_debug' was not declared. Should it be static?Reported-by Hulk Robot <[email protected]>Signed-off-by Jason Yan <[email protected]>
Looks sensible:
Acked-by Uwe Kleine-König <[email protected]>
Fixes 3ad1f3a33286 ("pwm: Implement some checks for lowlevel drivers")
Thanks
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Thierry Reding
AppliedQuoted 10 lines · Jason Yan
Fix the following gcc warning:
drivers/pwm/core.c:467:6: warning: symbol 'pwm_apply_state_debug' was not declared. Should it be static?Reported-by Hulk Robot <[email protected]>Signed-off-by Jason Yan <[email protected]>--- drivers/pwm/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry