diff mbox series

net: wireless: zd1211rw: remove redundant decls

Message ID 20230204200902.1709343-1-trix@redhat.com (mailing list archive)
State Accepted
Commit 9d5dbfe0e170cb5d58422b890d4d23c8e70d1f28
Delegated to: Kalle Valo
Headers show
Series net: wireless: zd1211rw: remove redundant decls | expand

Commit Message

Tom Rix Feb. 4, 2023, 8:09 p.m. UTC
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.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/net/wireless/zydas/zd1211rw/zd_rf.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Simon Horman Feb. 5, 2023, 1:30 p.m. UTC | #1
On Sat, Feb 04, 2023 at 12:09:02PM -0800, Tom Rix wrote:
> 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.
> 
> Signed-off-by: Tom Rix <trix@redhat.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Kalle Valo Feb. 13, 2023, 5:25 p.m. UTC | #2
Tom Rix <trix@redhat.com> wrote:

> 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.
> 
> Signed-off-by: Tom Rix <trix@redhat.com>
> Reviewed-by: Simon Horman <simon.horman@corigine.com>

Patch applied to wireless-next.git, thanks.

9d5dbfe0e170 wifi: zd1211rw: remove redundant decls
diff mbox series

Patch

diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_rf.h b/drivers/net/wireless/zydas/zd1211rw/zd_rf.h
index 8bfec9e75125..9ca69df3d288 100644
--- a/drivers/net/wireless/zydas/zd1211rw/zd_rf.h
+++ b/drivers/net/wireless/zydas/zd1211rw/zd_rf.h
@@ -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);