linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long
@ 2013-02-05 20:45 Malcolm Priestley
  2013-02-05 21:07 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Malcolm Priestley @ 2013-02-05 20:45 UTC (permalink / raw)
  To: gregkh; +Cc: linux-wireless


long long is needed for u64.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
 drivers/staging/vt6656/card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c
index 7d725bb..4e8fcc9 100644
--- a/drivers/staging/vt6656/card.c
+++ b/drivers/staging/vt6656/card.c
@@ -790,7 +790,7 @@ u64 CARDqGetNextTBTT(u64 qwTSF, WORD wBeaconInterval)
 	if ((~uLowNextTBTT) < uLowRemain)
 		qwTSF = ((qwTSF >> 32) + 1) << 32;
 
-	qwTSF = (qwTSF & 0xffffffff00000000U) |
+	qwTSF = (qwTSF & 0xffffffff00000000ULL) |
 		(u64)(uLowNextTBTT + uLowRemain);
 
     return (qwTSF);
-- 
1.8.0



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

* Re: [PATCH] staging: vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long
  2013-02-05 20:45 [PATCH] staging: vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long Malcolm Priestley
@ 2013-02-05 21:07 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2013-02-05 21:07 UTC (permalink / raw)
  To: Malcolm Priestley; +Cc: linux-wireless

On Tue, Feb 05, 2013 at 08:45:07PM +0000, Malcolm Priestley wrote:
> 
> long long is needed for u64.
> 
> Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
> ---
>  drivers/staging/vt6656/card.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

You forgot to add a "Reported-by:" line to this patch, please do so and
resend.

thanks,

greg k-h

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

end of thread, other threads:[~2013-02-05 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 20:45 [PATCH] staging: vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long Malcolm Priestley
2013-02-05 21:07 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).