Skip to contentSkip to conversation

pwm: make pwm_apply_state_debug static

PATCH Applied Jason Yan 3 participants 3 messages Apr 2, 2020 – Apr 3, 2020 PWM

lore
Share & tools
lore

Jason Yan

author
#0 lore raw

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?

---
 drivers/pwm/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pwm/core.c +2 -2
index e9b9283cff28..9973c442b455 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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?

Looks sensible:

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/ |