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

* [PATCH 2/2] ath11k: include vmalloc.h to fix a compilation error on sparc64
  2019-06-18 12:03 [PATCH 1/2] ath11k: fix typo with swap16() and swap32() Kalle Valo
@ 2019-06-18 12:03 ` Kalle Valo
  2019-06-20 13:38 ` [PATCH 1/2] ath11k: fix typo with swap16() and swap32() Kalle Valo
  1 sibling, 0 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/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]

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

diff --git a/drivers/net/wireless/ath/ath11k/debugfs_sta.c b/drivers/net/wireless/ath/ath11k/debugfs_sta.c
index cff6a3f048ea..470cb97a160b 100644
--- a/drivers/net/wireless/ath/ath11k/debugfs_sta.c
+++ b/drivers/net/wireless/ath/ath11k/debugfs_sta.c
@@ -3,6 +3,8 @@
  * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
  */
 
+#include <linux/vmalloc.h>
+
 #include "core.h"
 #include "debug.h"
 
-- 
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

* Re: [PATCH 1/2] ath11k: fix typo with swap16() and swap32()
  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 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2019-06-20 13:38 UTC (permalink / raw)
  To: Kalle Valo; +Cc: ath11k

Kalle Valo <kvalo@codeaurora.org> wrote:

> 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>

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

-- 
https://patchwork.kernel.org/patch/11001473/

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


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

^ permalink raw reply	[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.