Skip to contentSkip to conversation

ath11k: fix typo with swap16() and swap32()

PATCH In review Kalle Valo 1 participant 3 messages Jun 18, 2019 – Jun 20, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore

Kalle Valo

author
#0 lore raw

PATCH 1/2 ath11k: fix typo with swap16() and swap32()

Fix GCC errors on sparc64:

drivers/net/wireless/ath/ath11k/dp.h:1490:13: error: implicit declaration of function 'swap32' [-Werror=implicit-function-declaration] drivers/net/wireless/ath/ath11k/dp.h:1491:13: error: implicit declaration of function 'swap16' [-Werror=implicit-function-declaration]

---
 drivers/net/wireless/ath/ath11k/dp.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath11k/dp.h +2 -2
index 037fcbd7604d..6eeeff99dbd8 100644
@@ -1487,8 +1487,8 @@ static inline void dp_peer_map_get_mac_addr(u32 addr_l32, u16 addr_h16,
 					    u8 *addr)
 {
 #ifdef __BIG_ENDIAN
-	addr_l32 = swap32(addr_l32);
-	addr_h16 = swap16(addr_h16);
+	addr_l32 = swab32(addr_l32);
+	addr_h16 = swab16(addr_h16);
 #endif
 	memcpy(addr, &addr_l32, 4);
 	memcpy(addr + 4, &addr_h16, ETH_ALEN - 4);
Signature · 7 lines
2.7.4


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
author
#1 lore raw

PATCH 2/2 ath11k: include vmalloc.h to fix a compilation error on sparc64

Fix GCC errors on sparc64:

drivers/net/wireless/ath/ath11k/debugfs_sta.c:414:14: error: implicit declaration of function 'vzalloc'; did you mean 'kvzalloc'? [-Werror=implicit-function-declaration] drivers/net/wireless/ath/ath11k/debugfs_sta.c:427:2: error: implicit declaration of function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]

---
 drivers/net/wireless/ath/ath11k/debugfs_sta.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/ath/ath11k/debugfs_sta.c +2 -0
index cff6a3f048ea..470cb97a160b 100644
@@ -3,6 +3,8 @@
  * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
  */
 
+#include <linux/vmalloc.h>
+
 #include "core.h"
 #include "debug.h"
 
Signature · 7 lines
2.7.4


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
author
#2 lore raw
In reply to Kalle Valo
Quoted 7 lines · Kalle Valo

Fix GCC errors on sparc64:

drivers/net/wireless/ath/ath11k/dp.h:1490:13: error: implicit declaration of function 'swap32' [-Werror=implicit-function-declaration] drivers/net/wireless/ath/ath11k/dp.h:1491:13: error: implicit declaration of function 'swap16' [-Werror=implicit-function-declaration]

2 patches applied to ath11k-bringup branch of ath.git, thanks.

3378cd644bcc ath11k: fix typo with swap16() and swap32() e0e87d74740a ath11k: include vmalloc.h to fix a compilation error on sparc64

Signature · 9 lines
https://patchwork.kernel.org/patch/11001473/

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


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k