linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: fbtft: fix sparse warning
@ 2017-05-16  7:42 Jandy Gou
  2017-05-16  7:42 ` [PATCH] fix the sparse warning: drivers/staging/fbtft/fbtft-io.c:74:29: warning: incorrect type in assignment (different base types) drivers/staging/fbtft/fbtft-io.c:74:29: expected unsigned long long [unsigned] [long] [long long] [usertype] <noident> drivers/staging/fbtft/fbtft-io.c:74:29: got restricted __be64 [usertype] <noident> Jandy Gou
  0 siblings, 1 reply; 4+ messages in thread
From: Jandy Gou @ 2017-05-16  7:42 UTC (permalink / raw)
  To: thomas.petazzoni; +Cc: gregkh, devel, linux-kernel, Jandy Gou

fix the sparse warning:
  drivers/staging/fbtft/fbtft-io.c:74:29:
    warning: incorrect type in     assignment (different base types)    
    drivers/staging/fbtft/fbtft-io.c:74:29:    expected unsigned long
    long     [unsigned] [long] [long long] [usertype] <noident>    
    drivers/staging/fbtft/fbtft-io.c:74:29:    got restricted __be64    
    [usertype] <noident>

 drivers/staging/fbtft/fbtft-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1

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

* [PATCH] fix the sparse warning: drivers/staging/fbtft/fbtft-io.c:74:29: warning: incorrect type in assignment (different base types) drivers/staging/fbtft/fbtft-io.c:74:29:    expected unsigned long long [unsigned] [long] [long long] [usertype] <noident> drivers/staging/fbtft/fbtft-io.c:74:29:    got restricted __be64 [usertype] <noident>
  2017-05-16  7:42 [PATCH] staging: fbtft: fix sparse warning Jandy Gou
@ 2017-05-16  7:42 ` Jandy Gou
  2017-05-16  8:00   ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Jandy Gou @ 2017-05-16  7:42 UTC (permalink / raw)
  To: thomas.petazzoni; +Cc: gregkh, devel, linux-kernel, Jandy Gou

Signed-off-by: Jandy Gou <gouqingsong@goodix.com>
---
 drivers/staging/fbtft/fbtft-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fbtft-io.c b/drivers/staging/fbtft/fbtft-io.c
index d868405..ffb9a3b 100644
--- a/drivers/staging/fbtft/fbtft-io.c
+++ b/drivers/staging/fbtft/fbtft-io.c
@@ -71,7 +71,7 @@ int fbtft_write_spi_emulate_9(struct fbtft_par *par, void *buf, size_t len)
 			src++;
 		}
 		tmp |= ((*src & 0x0100) ? 1 : 0);
-		*(u64 *)dst = cpu_to_be64(tmp);
+		*(__be64 *)dst = cpu_to_be64(tmp);
 		dst += 8;
 		*dst++ = (u8)(*src++ & 0x00FF);
 		added++;
-- 
1.9.1

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

* Re: [PATCH] fix the sparse warning: drivers/staging/fbtft/fbtft-io.c:74:29: warning: incorrect type in assignment (different base types) drivers/staging/fbtft/fbtft-io.c:74:29: expected unsigned long long [unsigned] [long] [long long] [usertype] <noident> drivers/staging/fbtft/fbtft-io.c:74:29: got restricted __be64 [usertype] <noident>
  2017-05-16  7:42 ` [PATCH] fix the sparse warning: drivers/staging/fbtft/fbtft-io.c:74:29: warning: incorrect type in assignment (different base types) drivers/staging/fbtft/fbtft-io.c:74:29: expected unsigned long long [unsigned] [long] [long long] [usertype] <noident> drivers/staging/fbtft/fbtft-io.c:74:29: got restricted __be64 [usertype] <noident> Jandy Gou
@ 2017-05-16  8:00   ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2017-05-16  8:00 UTC (permalink / raw)
  To: Jandy Gou; +Cc: thomas.petazzoni, devel, linux-kernel

On Tue, May 16, 2017 at 03:42:27PM +0800, Jandy Gou wrote:
> Signed-off-by: Jandy Gou <gouqingsong@goodix.com>

Your subject is a bit messed up :(

Please fix and resend.

No need for the 0/1 email for just a single patch.

thanks,

greg k-h

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

* [PATCH] staging: fbtft: fix sparse warning
@ 2017-05-16  8:28 Jandy Gou
  0 siblings, 0 replies; 4+ messages in thread
From: Jandy Gou @ 2017-05-16  8:28 UTC (permalink / raw)
  To: thomas.petazzoni; +Cc: gregkh, devel, linux-kernel, Jandy Gou

fix the following sparse warning:
 drivers/staging/fbtft/fbtft-io.c:74:29: warning: incorrect type in assignment
 (different base types) drivers/staging/fbtft/fbtft-io.c:74:29:    expected
 unsigned long long [unsigned] [long] [long long] [usertype] <noident>
 drivers/staging/fbtft/fbtft-io.c:74:29:    got restricted __be64 [usertype]
 <noident>

Signed-off-by: Jandy Gou <gouqingsong@goodix.com>
---
 drivers/staging/fbtft/fbtft-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fbtft-io.c b/drivers/staging/fbtft/fbtft-io.c
index d868405..ffb9a3b 100644
--- a/drivers/staging/fbtft/fbtft-io.c
+++ b/drivers/staging/fbtft/fbtft-io.c
@@ -71,7 +71,7 @@ int fbtft_write_spi_emulate_9(struct fbtft_par *par, void *buf, size_t len)
 			src++;
 		}
 		tmp |= ((*src & 0x0100) ? 1 : 0);
-		*(u64 *)dst = cpu_to_be64(tmp);
+		*(__be64 *)dst = cpu_to_be64(tmp);
 		dst += 8;
 		*dst++ = (u8)(*src++ & 0x00FF);
 		added++;
-- 
1.9.1

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

end of thread, other threads:[~2017-05-16  8:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-16  7:42 [PATCH] staging: fbtft: fix sparse warning Jandy Gou
2017-05-16  7:42 ` [PATCH] fix the sparse warning: drivers/staging/fbtft/fbtft-io.c:74:29: warning: incorrect type in assignment (different base types) drivers/staging/fbtft/fbtft-io.c:74:29: expected unsigned long long [unsigned] [long] [long long] [usertype] <noident> drivers/staging/fbtft/fbtft-io.c:74:29: got restricted __be64 [usertype] <noident> Jandy Gou
2017-05-16  8:00   ` Greg KH
2017-05-16  8:28 [PATCH] staging: fbtft: fix sparse warning Jandy Gou

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