* [PATCH] staging: rtl8821ae: fix sparse warning for static declarations in rtl8821ae/stats.c
@ 2014-08-20 8:48 Hoang Tran
0 siblings, 0 replies; 4+ messages in thread
From: Hoang Tran @ 2014-08-20 8:48 UTC (permalink / raw)
To: Greg Kroah-Hartman, John W. Linville, Larry Finger, Sachin Kamat
Cc: Hoang Tran, devel, linux-kernel
This patch fixes the following sparse warnings in rtl8821ae/stats.c
drivers/staging/rtl8821ae/stats.c:62:6: warning: symbol 'rtl_translate_todbm' was not declared. Should it be static?
drivers/staging/rtl8821ae/stats.c:101:6: warning: symbol 'rtl_process_ui_rssi' was not declared. Should it be static?
Signed-off-by: Hoang Tran <hoangtran.gwr@gmail.com>
---
drivers/staging/rtl8821ae/stats.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8821ae/stats.c b/drivers/staging/rtl8821ae/stats.c
index 4d383d1..556d1ac 100644
--- a/drivers/staging/rtl8821ae/stats.c
+++ b/drivers/staging/rtl8821ae/stats.c
@@ -59,7 +59,7 @@ u8 rtl_evm_db_to_percentage(char value)
}
//EXPORT_SYMBOL(rtl_evm_db_to_percentage);
-long rtl_translate_todbm(struct ieee80211_hw *hw,
+static long rtl_translate_todbm(struct ieee80211_hw *hw,
u8 signal_strength_index)
{
long signal_power;
@@ -98,7 +98,7 @@ long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig)
}
//EXPORT_SYMBOL(rtl_signal_scale_mapping);
-void rtl_process_ui_rssi(struct ieee80211_hw *hw, struct rtl_stats *pstatus)
+static void rtl_process_ui_rssi(struct ieee80211_hw *hw, struct rtl_stats *pstatus)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_phy *rtlphy = &(rtlpriv->phy);
--
2.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] staging: rtl8821ae: fix sparse warning for static declarations in rtl8821ae/stats.c
@ 2014-08-20 8:53 Hoang Tran
2014-08-20 11:19 ` Greg Kroah-Hartman
0 siblings, 1 reply; 4+ messages in thread
From: Hoang Tran @ 2014-08-20 8:53 UTC (permalink / raw)
To: Greg Kroah-Hartman, John W. Linville, Larry Finger, Sachin Kamat
Cc: Hoang Tran, devel, linux-kernel
This patch fixes the following sparse warnings in rtl8821ae/stats.c
drivers/staging/rtl8821ae/stats.c:62:6: warning: symbol 'rtl_translate_todbm' was not declared. Should it be static?
drivers/staging/rtl8821ae/stats.c:101:6: warning: symbol 'rtl_process_ui_rssi' was not declared. Should it be static?
Signed-off-by: Hoang Tran <hoangtran.gwr@gmail.com>
---
drivers/staging/rtl8821ae/stats.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8821ae/stats.c b/drivers/staging/rtl8821ae/stats.c
index 4d383d1..fdbde43 100644
--- a/drivers/staging/rtl8821ae/stats.c
+++ b/drivers/staging/rtl8821ae/stats.c
@@ -59,7 +59,7 @@ u8 rtl_evm_db_to_percentage(char value)
}
//EXPORT_SYMBOL(rtl_evm_db_to_percentage);
-long rtl_translate_todbm(struct ieee80211_hw *hw,
+static long rtl_translate_todbm(struct ieee80211_hw *hw,
u8 signal_strength_index)
{
long signal_power;
@@ -98,7 +98,8 @@ long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig)
}
//EXPORT_SYMBOL(rtl_signal_scale_mapping);
-void rtl_process_ui_rssi(struct ieee80211_hw *hw, struct rtl_stats *pstatus)
+static void rtl_process_ui_rssi(struct ieee80211_hw *hw,
+ struct rtl_stats *pstatus)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_phy *rtlphy = &(rtlpriv->phy);
--
2.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: rtl8821ae: fix sparse warning for static declarations in rtl8821ae/stats.c
2014-08-20 8:53 [PATCH] staging: rtl8821ae: fix sparse warning for static declarations in rtl8821ae/stats.c Hoang Tran
@ 2014-08-20 11:19 ` Greg Kroah-Hartman
2014-08-20 11:43 ` Hoang Tran
0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2014-08-20 11:19 UTC (permalink / raw)
To: Hoang Tran
Cc: John W. Linville, Larry Finger, Sachin Kamat, devel, linux-kernel
On Wed, Aug 20, 2014 at 04:53:22PM +0800, Hoang Tran wrote:
> This patch fixes the following sparse warnings in rtl8821ae/stats.c
>
> drivers/staging/rtl8821ae/stats.c:62:6: warning: symbol 'rtl_translate_todbm' was not declared. Should it be static?
> drivers/staging/rtl8821ae/stats.c:101:6: warning: symbol 'rtl_process_ui_rssi' was not declared. Should it be static?
>
> Signed-off-by: Hoang Tran <hoangtran.gwr@gmail.com>
> ---
> drivers/staging/rtl8821ae/stats.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
You sent 2 patches that look to do the same thing, but are different, so
I have no idea which to apply. Always properly "version" your patches
so as to not confuse easily-confused maintainers.
I've dropped both of these, please resend the one you really want to be
considered.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: rtl8821ae: fix sparse warning for static declarations in rtl8821ae/stats.c
2014-08-20 11:19 ` Greg Kroah-Hartman
@ 2014-08-20 11:43 ` Hoang Tran
0 siblings, 0 replies; 4+ messages in thread
From: Hoang Tran @ 2014-08-20 11:43 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: John W. Linville, Larry Finger, Sachin Kamat, devel, linux-kernel
On Aug 20, 2014 at 06:19am, Greg Kroah-Hartman wrote:
> On Wed, Aug 20, 2014 at 04:53:22PM +0800, Hoang Tran wrote:
> > This patch fixes the following sparse warnings in rtl8821ae/stats.c
> >
> > drivers/staging/rtl8821ae/stats.c:62:6: warning: symbol 'rtl_translate_todbm' was not declared. Should it be static?
> > drivers/staging/rtl8821ae/stats.c:101:6: warning: symbol 'rtl_process_ui_rssi' was not declared. Should it be static?
> >
> > Signed-off-by: Hoang Tran <hoangtran.gwr@gmail.com>
> > ---
> > drivers/staging/rtl8821ae/stats.c | 5 +++--
> > 1 file changed, 3 insertions(+), 2 deletions(-)
>
> You sent 2 patches that look to do the same thing, but are different, so
> I have no idea which to apply. Always properly "version" your patches
> so as to not confuse easily-confused maintainers.
>
Thanks, I resent the patch here https://lkml.org/lkml/2014/8/20/246
> I've dropped both of these, please resend the one you really want to
> be
> considered.
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-20 11:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-20 8:53 [PATCH] staging: rtl8821ae: fix sparse warning for static declarations in rtl8821ae/stats.c Hoang Tran
2014-08-20 11:19 ` Greg Kroah-Hartman
2014-08-20 11:43 ` Hoang Tran
-- strict thread matches above, loose matches on Subject: below --
2014-08-20 8:48 Hoang Tran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox