All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ath11k: fix typo with swap16() and swap32()
@ 2019-06-18 12:03 Kalle Valo
  2019-06-18 12:03 ` [PATCH 2/2] ath11k: include vmalloc.h to fix a compilation error on sparc64 Kalle Valo
  2019-06-20 13:38 ` [PATCH 1/2] ath11k: fix typo with swap16() and swap32() Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Kalle Valo @ 2019-06-18 12:03 UTC (permalink / raw)
  To: ath11k

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]

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/dp.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath11k/dp.h b/drivers/net/wireless/ath/ath11k/dp.h
index 037fcbd7604d..6eeeff99dbd8 100644
--- a/drivers/net/wireless/ath/ath11k/dp.h
+++ b/drivers/net/wireless/ath/ath11k/dp.h
@@ -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);
-- 
2.7.4


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-20 13:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-18 12:03 [PATCH 1/2] ath11k: fix typo with swap16() and swap32() Kalle Valo
2019-06-18 12:03 ` [PATCH 2/2] ath11k: include vmalloc.h to fix a compilation error on sparc64 Kalle Valo
2019-06-20 13:38 ` [PATCH 1/2] ath11k: fix typo with swap16() and swap32() Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.