]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tiny: fix sparse warning: incorrect type in assignment (different base types)
authorKamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
Sun, 8 Mar 2020 16:14:44 +0000 (21:44 +0530)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 14 Mar 2020 07:31:30 +0000 (08:31 +0100)
commitc289c460e59158844c02bfb5b1ec21ed23725d0b
treeead539641757c100646c69dfc2e2efef3602f6cb
parent6942e493654ea805b7d5ce2b0b2e00072410d14e
drm/tiny: fix sparse warning: incorrect type in assignment (different base types)

This fixes the following sparse warning:

drivers/gpu/drm/tiny/ili9486.c:61:16: sparse: sparse: incorrect type in assignment (different base types)
drivers/gpu/drm/tiny/ili9486.c:61:16: sparse:    expected unsigned short [usertype]
drivers/gpu/drm/tiny/ili9486.c:61:16: sparse:    got restricted __be16 [usertype]
drivers/gpu/drm/tiny/ili9486.c:71:32: sparse: sparse: incorrect type in assignment (different base types)
drivers/gpu/drm/tiny/ili9486.c:71:32: sparse:    expected unsigned short [usertype]
drivers/gpu/drm/tiny/ili9486.c:71:32: sparse:    got restricted __be16 [usertype]

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1583684084-4694-1-git-send-email-kamlesh.gurudasani@gmail.com
drivers/gpu/drm/tiny/ili9486.c