All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtw88: fix GENMASK_ULL for u64
@ 2019-10-24  9:19 yhchuang
  2019-10-24 10:07 ` Kalle Valo
  2019-10-25  7:39 ` Kalle Valo
  0 siblings, 2 replies; 5+ messages in thread
From: yhchuang @ 2019-10-24  9:19 UTC (permalink / raw)
  To: kvalo; +Cc: linux-wireless

From: Yan-Hsuan Chuang <yhchuang@realtek.com>

This fixes compile warning:

    In file included from include/linux/bitops.h:5:0,
                     from include/linux/kernel.h:12,
                     from include/asm-generic/bug.h:19,
                     from arch/mips/include/asm/bug.h:42,
                     from include/linux/bug.h:5,
                     from include/net/mac80211.h:16,
                     from drivers/net/wireless/realtek/rtw88/main.h:8,
                     from drivers/net/wireless/realtek/rtw88/main.c:5:
    drivers/net/wireless/realtek/rtw88/main.c: In function 'rtw_update_rate_mask':
      include/linux/bits.h:23:11: warning: right shift count is negative
      [-Wshift-count-negative]
       (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
               ^
    drivers/net/wireless/realtek/rtw88/main.c:622:17: note: in expansion of macro 'GENMASK'
      u64 cfg_mask = GENMASK(63, 0);
                     ^~~~~~~

Fixes: f39e9bd49a3d ("rtw88: add set_bitrate_mask support")
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
---
 drivers/net/wireless/realtek/rtw88/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c
index 32e7328ce126..7c1b89c4fb6c 100644
--- a/drivers/net/wireless/realtek/rtw88/main.c
+++ b/drivers/net/wireless/realtek/rtw88/main.c
@@ -627,7 +627,7 @@ static u64 rtw_update_rate_mask(struct rtw_dev *rtwdev,
 {
 	struct rtw_hal *hal = &rtwdev->hal;
 	const struct cfg80211_bitrate_mask *mask = si->mask;
-	u64 cfg_mask = GENMASK(63, 0);
+	u64 cfg_mask = GENMASK_ULL(63, 0);
 	u8 rssi_level, band;
 
 	if (wireless_set != WIRELESS_CCK) {
-- 
2.17.1


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

* Re: [PATCH] rtw88: fix GENMASK_ULL for u64
  2019-10-24  9:19 [PATCH] rtw88: fix GENMASK_ULL for u64 yhchuang
@ 2019-10-24 10:07 ` Kalle Valo
  2019-10-24 10:13   ` Tony Chuang
  2019-10-25  7:41   ` Kalle Valo
  2019-10-25  7:39 ` Kalle Valo
  1 sibling, 2 replies; 5+ messages in thread
From: Kalle Valo @ 2019-10-24 10:07 UTC (permalink / raw)
  To: yhchuang; +Cc: kvalo, linux-wireless

<yhchuang@realtek.com> writes:

> From: Yan-Hsuan Chuang <yhchuang@realtek.com>
>
> This fixes compile warning:
>
>     In file included from include/linux/bitops.h:5:0,
>                      from include/linux/kernel.h:12,
>                      from include/asm-generic/bug.h:19,
>                      from arch/mips/include/asm/bug.h:42,
>                      from include/linux/bug.h:5,
>                      from include/net/mac80211.h:16,
>                      from drivers/net/wireless/realtek/rtw88/main.h:8,
>                      from drivers/net/wireless/realtek/rtw88/main.c:5:
>     drivers/net/wireless/realtek/rtw88/main.c: In function 'rtw_update_rate_mask':
>       include/linux/bits.h:23:11: warning: right shift count is negative
>       [-Wshift-count-negative]
>        (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
>                ^
>     drivers/net/wireless/realtek/rtw88/main.c:622:17: note: in expansion of macro 'GENMASK'
>       u64 cfg_mask = GENMASK(63, 0);
>                      ^~~~~~~
>
> Fixes: f39e9bd49a3d ("rtw88: add set_bitrate_mask support")
> Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>

I'll add:

Reported-by: kbuild test robot <lkp@intel.com>

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

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

* RE: [PATCH] rtw88: fix GENMASK_ULL for u64
  2019-10-24 10:07 ` Kalle Valo
@ 2019-10-24 10:13   ` Tony Chuang
  2019-10-25  7:41   ` Kalle Valo
  1 sibling, 0 replies; 5+ messages in thread
From: Tony Chuang @ 2019-10-24 10:13 UTC (permalink / raw)
  To: Kalle Valo; +Cc: linux-wireless@vger.kernel.org

> Subject: Re: [PATCH] rtw88: fix GENMASK_ULL for u64
> 
> <yhchuang@realtek.com> writes:
> 
> > From: Yan-Hsuan Chuang <yhchuang@realtek.com>
> >
> > This fixes compile warning:
> >
> >     In file included from include/linux/bitops.h:5:0,
> >                      from include/linux/kernel.h:12,
> >                      from include/asm-generic/bug.h:19,
> >                      from arch/mips/include/asm/bug.h:42,
> >                      from include/linux/bug.h:5,
> >                      from include/net/mac80211.h:16,
> >                      from
> drivers/net/wireless/realtek/rtw88/main.h:8,
> >                      from
> drivers/net/wireless/realtek/rtw88/main.c:5:
> >     drivers/net/wireless/realtek/rtw88/main.c: In function
> 'rtw_update_rate_mask':
> >       include/linux/bits.h:23:11: warning: right shift count is negative
> >       [-Wshift-count-negative]
> >        (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
> >                ^
> >     drivers/net/wireless/realtek/rtw88/main.c:622:17: note: in expansion
> of macro 'GENMASK'
> >       u64 cfg_mask = GENMASK(63, 0);
> >                      ^~~~~~~
> >
> > Fixes: f39e9bd49a3d ("rtw88: add set_bitrate_mask support")
> > Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
> 
> I'll add:
> 
> Reported-by: kbuild test robot <lkp@intel.com>
> 

Yes, please add it, I forgot about it.
Thanks

Yan-Hsuan

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

* Re: [PATCH] rtw88: fix GENMASK_ULL for u64
  2019-10-24  9:19 [PATCH] rtw88: fix GENMASK_ULL for u64 yhchuang
  2019-10-24 10:07 ` Kalle Valo
@ 2019-10-25  7:39 ` Kalle Valo
  1 sibling, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-10-25  7:39 UTC (permalink / raw)
  To: yhchuang; +Cc: linux-wireless

<yhchuang@realtek.com> wrote:

> From: Yan-Hsuan Chuang <yhchuang@realtek.com>
> 
> This fixes compile warning:
> 
>     In file included from include/linux/bitops.h:5:0,
>                      from include/linux/kernel.h:12,
>                      from include/asm-generic/bug.h:19,
>                      from arch/mips/include/asm/bug.h:42,
>                      from include/linux/bug.h:5,
>                      from include/net/mac80211.h:16,
>                      from drivers/net/wireless/realtek/rtw88/main.h:8,
>                      from drivers/net/wireless/realtek/rtw88/main.c:5:
>     drivers/net/wireless/realtek/rtw88/main.c: In function 'rtw_update_rate_mask':
>       include/linux/bits.h:23:11: warning: right shift count is negative
>       [-Wshift-count-negative]
>        (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
>                ^
>     drivers/net/wireless/realtek/rtw88/main.c:622:17: note: in expansion of macro 'GENMASK'
>       u64 cfg_mask = GENMASK(63, 0);
>                      ^~~~~~~
> 
> Reported-by: kbuild test robot <lkp@intel.com>
> Fixes: f39e9bd49a3d ("rtw88: add set_bitrate_mask support")
> Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
> Reported-by: kbuild test robot <lkp@intel.com>

Patch applied to wireless-drivers-next.git, thanks.

5c70e9714254 rtw88: fix GENMASK_ULL for u64

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

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


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

* Re: [PATCH] rtw88: fix GENMASK_ULL for u64
  2019-10-24 10:07 ` Kalle Valo
  2019-10-24 10:13   ` Tony Chuang
@ 2019-10-25  7:41   ` Kalle Valo
  1 sibling, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-10-25  7:41 UTC (permalink / raw)
  To: Kalle Valo; +Cc: yhchuang, linux-wireless

Kalle Valo <kvalo@codeaurora.org> writes:

> <yhchuang@realtek.com> writes:
>
>> From: Yan-Hsuan Chuang <yhchuang@realtek.com>
>>
>> This fixes compile warning:
>>
>>     In file included from include/linux/bitops.h:5:0,
>>                      from include/linux/kernel.h:12,
>>                      from include/asm-generic/bug.h:19,
>>                      from arch/mips/include/asm/bug.h:42,
>>                      from include/linux/bug.h:5,
>>                      from include/net/mac80211.h:16,
>>                      from drivers/net/wireless/realtek/rtw88/main.h:8,
>>                      from drivers/net/wireless/realtek/rtw88/main.c:5:
>>     drivers/net/wireless/realtek/rtw88/main.c: In function 'rtw_update_rate_mask':
>>       include/linux/bits.h:23:11: warning: right shift count is negative
>>       [-Wshift-count-negative]
>>        (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
>>                ^
>>     drivers/net/wireless/realtek/rtw88/main.c:622:17: note: in expansion of macro 'GENMASK'
>>       u64 cfg_mask = GENMASK(63, 0);
>>                      ^~~~~~~
>>
>> Fixes: f39e9bd49a3d ("rtw88: add set_bitrate_mask support")
>> Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
>
> I'll add:
>
> Reported-by: kbuild test robot <lkp@intel.com>

Oh nice, patchwork automatically added the tag from my email above and I
didn't have to do anything :)

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

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

end of thread, other threads:[~2019-10-25  7:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-24  9:19 [PATCH] rtw88: fix GENMASK_ULL for u64 yhchuang
2019-10-24 10:07 ` Kalle Valo
2019-10-24 10:13   ` Tony Chuang
2019-10-25  7:41   ` Kalle Valo
2019-10-25  7:39 ` 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.