Message ID | 1478011688-26698-1-git-send-email-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Kalle Valo |
Headers | show |
Wei Yongjun <weiyj.lk@gmail.com> wrote: > From: Wei Yongjun <weiyongjun1@huawei.com> > > Fixes the following sparse warning: > > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c:1559:6: warning: > symbol 'rtl8192eu_power_off' was not declared. Should it be static? > > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Jes will take this.
Kalle Valo <kvalo@codeaurora.org> writes: > Wei Yongjun <weiyj.lk@gmail.com> wrote: >> From: Wei Yongjun <weiyongjun1@huawei.com> >> >> Fixes the following sparse warning: >> >> drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c:1559:6: warning: >> symbol 'rtl8192eu_power_off' was not declared. Should it be static? >> >> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> > > Jes will take this. Thanks Kalle - yes it's on my list, Wei your patch has not been forgotten. Cheers, Jes
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c index a793fed..a1178c5 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c @@ -1556,7 +1556,7 @@ static int rtl8192eu_power_on(struct rtl8xxxu_priv *priv) return ret; } -void rtl8192eu_power_off(struct rtl8xxxu_priv *priv) +static void rtl8192eu_power_off(struct rtl8xxxu_priv *priv) { u8 val8; u16 val16;