[tobetter:odroid-5.16.y 36/39] drivers/gpu/drm/tiny/ili9488_pio.c:335:36: sparse: sparse: Using plain integer as NULL pointer

From: kernel test robot
Date: Thu Jan 13 2022 - 11:10:51 EST


Hi Dongjin,

First bad commit (maybe != root cause):

tree: https://github.com/tobetter/linux odroid-5.16.y
head: cb59f7f629212302d4136a919ef9822aa9c84aac
commit: d5c3ea72c0e7fde4122fa642dc8c5169ac68fb01 [36/39] ODROID-COMMON: Revert "drm/dbi: Print errors for mipi_dbi_command()"
config: csky-randconfig-s032-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140003.Wboc0MzQ-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/tobetter/linux/commit/d5c3ea72c0e7fde4122fa642dc8c5169ac68fb01
git remote add tobetter https://github.com/tobetter/linux
git fetch --no-tags tobetter odroid-5.16.y
git checkout d5c3ea72c0e7fde4122fa642dc8c5169ac68fb01
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=csky SHELL=/bin/bash drivers/gpu/drm/tiny/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/tiny/ili9488_pio.c:335:36: sparse: sparse: Using plain integer as NULL pointer
drivers/gpu/drm/tiny/ili9488_pio.c:336:47: sparse: sparse: Using plain integer as NULL pointer
drivers/gpu/drm/tiny/ili9488_pio.c: note: in included file (through arch/csky/include/asm/io.h, include/linux/io.h, include/linux/dma-buf-map.h, ...):
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]

vim +335 drivers/gpu/drm/tiny/ili9488_pio.c

2ce4016e1804ca Dongjin Kim 2021-02-09 333
2ce4016e1804ca Dongjin Kim 2021-02-09 334 static const struct of_device_id ili9488_dt_ids[] = {
2ce4016e1804ca Dongjin Kim 2021-02-09 @335 { .compatible = "ili9488", 0 },
2ce4016e1804ca Dongjin Kim 2021-02-09 336 { .compatible = "hardkernel,ili9488", 0 },
2ce4016e1804ca Dongjin Kim 2021-02-09 337 { },
2ce4016e1804ca Dongjin Kim 2021-02-09 338 };
2ce4016e1804ca Dongjin Kim 2021-02-09 339

:::::: The code at line 335 was first introduced by commit
:::::: 2ce4016e1804ca6fb2285e3164d848d6975bad07 ODROID-COMMON: gpu/drm: Add new Tiny DRM driver with Ili9488

:::::: TO: Dongjin Kim <tobetter@xxxxxxxxx>
:::::: CC: Dongjin Kim <tobetter@xxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx