Skip to contentSkip to conversation

net: wireless: zd1211rw: remove redundant decls

PATCH In review Tom Rix 3 participants 3 messages Feb 4, 2023 – Feb 13, 2023

Subsystems (3)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 net: wireless: zd1211rw: remove redundant decls

building with W=2 has these errors
redundant redeclaration of ‘zd_rf_generic_patch_6m’ [-Werror=redundant-decls] redundant redeclaration of ‘zd_rf_patch_6m_band_edge’ [-Werror=redundant-decls]

Remove the second decls.

---
 drivers/net/wireless/zydas/zd1211rw/zd_rf.h | 3 ---
 1 file changed, 3 deletions(-)
drivers/net/wireless/zydas/zd1211rw/zd_rf.h +0 -3
index 8bfec9e75125..9ca69df3d288 100644
@@ -85,9 +85,6 @@ static inline int zd_rf_should_patch_cck_gain(struct zd_rf *rf)
 	return rf->patch_cck_gain;
 }
 
-int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel);
-int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel);
-
 /* Functions for individual RF chips */
 
 int zd_rf_init_rf2959(struct zd_rf *rf);
Signature · 1 line
2.26.3
#2 lore raw

Re: wifi: zd1211rw: remove redundant decls

In reply to Tom Rix
Quoted 8 lines · Tom Rix

building with W=2 has these errors
redundant redeclaration of ‘zd_rf_generic_patch_6m’ [-Werror=redundant-decls] redundant redeclaration of ‘zd_rf_patch_6m_band_edge’ [-Werror=redundant-decls]

Remove the second decls.

Patch applied to wireless-next.git, thanks.

9d5dbfe0e170 wifi: zd1211rw: remove redundant decls

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches