[PATCH 1/1] Staging: FBTFT: Fix wrong type casting warnings generated by sparse
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Fri Feb 24 16:28:39 UTC 2017
On Mon, Feb 20, 2017 at 10:26:00PM +0900, Mandel Benjamin wrote:
>
> Fixed the following warnings reported by sparse:
>
> drivers/staging/fbtft/fb_watterott.c:83:16: warning: incorrect type in assignment (different base types)
> drivers/staging/fbtft/fb_watterott.c:83:16: expected unsigned short [unsigned] [short] [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:83:16: got restricted __be16 [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:84:16: warning: incorrect type in assignment (different base types)
> drivers/staging/fbtft/fb_watterott.c:84:16: expected unsigned short [unsigned] [short] [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:84:16: got restricted __be16 [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:88:24: warning: incorrect type in assignment (different base types)
> drivers/staging/fbtft/fb_watterott.c:88:24: expected unsigned short [unsigned] [short] [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:88:24: got restricted __be16 [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:90:34: warning: incorrect type in assignment (different base types)
> drivers/staging/fbtft/fb_watterott.c:90:34: expected unsigned short [unsigned] [short] [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:90:34: got restricted __be16 [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:120:16: warning: incorrect type in assignment (different base types)
> drivers/staging/fbtft/fb_watterott.c:120:16: expected unsigned short [unsigned] [short] [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:120:16: got restricted __be16 [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:121:16: warning: incorrect type in assignment (different base types)
> drivers/staging/fbtft/fb_watterott.c:121:16: expected unsigned short [unsigned] [short] [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:121:16: got restricted __be16 [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:125:24: warning: incorrect type in assignment (different base types)
> drivers/staging/fbtft/fb_watterott.c:125:24: expected unsigned short [unsigned] [short] [usertype] <noident>
> drivers/staging/fbtft/fb_watterott.c:125:24: got restricted __be16 [usertype] <noident>
>
> Signed-off-by: Mandel Benjamin <benyx.mandel at gmail.com>
> ---
> drivers/staging/fbtft/fb_watterott.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Someone before you sent in this same type of patch, sorry.
greg k-h
More information about the devel
mailing list