staging: rtl8192u: ieee80211: renamed duplicate variable
PATCH v2 1/1 staging: rtl8192u: ieee80211: renamed duplicate variable
This patch renames a duplicate variable found in both rtl8192e and rtl8192u causing the preprocesser/compiler to compile without error when in fact it should throw an error/break the build.
Prototype in files:rtl8192e/rtllib.h remaining as ht_update_default_settingrtl8192u/ieee80211/ieee80211.h changed to __ht_update_default_setting
Function in files:rtl8192e/rtl819x_HTProc.c remaining as ht_update_default_setting rtl8192u/ieee80211/rtl819x_HTProc.c changed to __ht_update_default_setting
Referenced in files:staging/rtl8192e/rtllib_module.c remaining as ht_update_default_setting staging/rtl8192u/ieee80211_module.c changed to __ht_update_default_setting
Linux Kernel Coding Style "cleanup", no change in runtime, staging/rtl8192e and rtl8192u compile/build before and after.
--- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 2 +- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211.h +1 -1
@@ -2293,7 +2293,7 @@ void HTDebugHTInfo(u8 *InfoIE, u8 *TitleString);void HTSetConnectBwMode (struct ieee80211_device *ieee,enum ht_channel_width Bandwidth,enum ht_extension_chan_offset Offset); -void ht_update_default_setting (struct ieee80211_device *ieee); +void __ht_update_default_setting (struct ieee80211_device *ieee);void HTConstructCapabilityElement (struct ieee80211_device *ieee,u8 *posHTCap,u8 *len,u8 isEncrypt); void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo,
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +1 -1
@@ -146,7 +146,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv)ieee80211_networks_free (ieee); goto failed; } -ht_update_default_setting (ieee); +__ht_update_default_setting (ieee);HTInitializeHTInfo (ieee);/* may move to other place. */ TSInitialize (ieee);
drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c +1 -1
@@ -56,7 +56,7 @@ static u8 CISCO_BROADCOM[3] = {0x00, 0x17, 0x94};* return: none * notice: These value need be modified if any changes. */ -void ht_update_default_setting (struct ieee80211_device *ieee) +void __ht_update_default_setting (struct ieee80211_device *ieee) {PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;//const typeof( ((struct ieee80211_device *)0)->pHTInfo ) *__mptr = &pHTInfo;
Signature · 1 line
2.41.0
Quoted 16 lines · Gary Rookard
This patch renames a duplicate variable found in both rtl8192e and rtl8192u causing the preprocesser/compiler to compile without error when in fact it should throw an error/break the build.
Prototype in files:
rtl8192e/rtllib.hremaining asht_update_default_settingrtl8192u/ieee80211/ieee80211.hchanged to__ht_update_default_settingFunction in files:
rtl8192e/rtl819x_HTProc.cremaining asht_update_default_settingrtl8192u/ieee80211/rtl819x_HTProc.cchanged to__ht_update_default_settingReferenced in files:
staging/rtl8192e/rtllib_module.cremaining asht_update_default_settingstaging/rtl8192u/ieee80211_module.cchanged to__ht_update_default_setting
Quoted 5 lines
Linux Kernel Coding Style "cleanup", no change in runtime, staging/rtl8192e and rtl8192u compile/build before and after.
Signed-off-by Gary Rookard <[email protected]>---
Hi Gary,
this patch cannot be applied. I cannot find the variable ht_update_default_setting in this driver.
Bye Philipp
Quoted 44 lines
drivers/staging/rtl8192u/ieee80211/ieee80211.h | 2 +- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/staging/rtl8192u/ieee80211/ieee80211.h +1
-1@@ -2293,7 +2293,7 @@ void HTDebugHTInfo(u8 *InfoIE, u8 *TitleString);void HTSetConnectBwMode (struct ieee80211_device *ieee,enum ht_channel_width Bandwidth,enum ht_extension_chan_offset Offset); -void ht_update_default_setting (struct ieee80211_device *ieee); +void __ht_update_default_setting (struct ieee80211_device *ieee);void HTConstructCapabilityElement (struct ieee80211_device *ieee,u8 *posHTCap,u8 *len,u8 isEncrypt); void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo,drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +1
-1@@ -146,7 +146,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv)ieee80211_networks_free (ieee); goto failed; } -ht_update_default_setting (ieee); +__ht_update_default_setting (ieee);HTInitializeHTInfo (ieee);/* may move to other place. */ TSInitialize (ieee);drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c +1
-1@@ -56,7 +56,7 @@ static u8 CISCO_BROADCOM[3] = {0x00, 0x17, 0x94};* return: none * notice: These value need be modified if any changes. */ -void ht_update_default_setting (struct ieee80211_device *ieee) +void __ht_update_default_setting (struct ieee80211_device *ieee) {PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;//const typeof( ((struct ieee80211_device *)0)->pHTInfo ) *__mptr = &pHTInfo;
Quoted 16 lines · Gary Rookard
This patch renames a duplicate variable found in both rtl8192e and rtl8192u causing the preprocesser/compiler to compile without error when in fact it should throw an error/break the build.
Prototype in files:
rtl8192e/rtllib.hremaining asht_update_default_settingrtl8192u/ieee80211/ieee80211.hchanged to__ht_update_default_settingFunction in files:
rtl8192e/rtl819x_HTProc.cremaining asht_update_default_settingrtl8192u/ieee80211/rtl819x_HTProc.cchanged to__ht_update_default_settingReferenced in files:
staging/rtl8192e/rtllib_module.cremaining asht_update_default_settingstaging/rtl8192u/ieee80211_module.cchanged to__ht_update_default_setting
Quoted 5 lines
Linux Kernel Coding Style "cleanup", no change in runtime, staging/rtl8192e and rtl8192u compile/build before and after.
Signed-off-by Gary Rookard <[email protected]>---
This doesn't apply, and there is no Fixes tag to suggest when these bugs were introduced.
regards,
dan carpenter