Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1471762
| From | Kalle Valo <kvalo@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] fix:gpio: mark symbols static where possible |
| Date | 2016-08-29 14:20 +0200 |
| Message-ID | <sbtHH-7bR-11@gated-at.bofh.it> (permalink) |
| References | <saOEy-6Oq-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Baoyou Xie <baoyou.xie@linaro.org> writes: > We get 1 warning about global functions without a declaration > in the ath9k gpio driver when building with W=1: > drivers/net/wireless/ath/ath9k/gpio.c:25:6: warning: no previous prototype for 'ath_fill_led_pin' [-Wmissing-prototypes] > > In fact, this function is only used in the file in which it is declared > and don't need a declaration, but can be made static. > so this patch marks it 'static'. > > Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> > --- > drivers/net/wireless/ath/ath9k/gpio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) The commit title should be: ath9k: mark ath_fill_led_pin() static Check the wiki how to create titles: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#subject_name -- Kalle Valo
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] fix:gpio: mark symbols static where possible Baoyou Xie <baoyou.xie@linaro.org> - 2016-08-27 18:30 +0200 Re: [PATCH] fix:gpio: mark symbols static where possible Kalle Valo <kvalo@codeaurora.org> - 2016-08-29 14:20 +0200
csiph-web