[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204190945.vfrBnN8A-lkp@intel.com>
Date: Tue, 19 Apr 2022 09:11:55 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 1541/2356]
drivers/input/touchscreen/imagis.c:358:21: warning: incompatible integer to
pointer conversion initializing 'const struct of_device_id *' with an
expression of type 'int'
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: af93551cf39027d176f30b9beafc60a4c130998a
commit: 63245bf3e0db1d416f39a3ccb1311f94f37697f5 [1541/2356] headers/deps: i2c: Optimize <linux/i2c.h> header dependencies
config: i386-randconfig-a015-20220418 (https://download.01.org/0day-ci/archive/20220419/202204190945.vfrBnN8A-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 429cbac0390654f90bba18a41799464adf31a5ec)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=63245bf3e0db1d416f39a3ccb1311f94f37697f5
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 63245bf3e0db1d416f39a3ccb1311f94f37697f5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/block/ drivers/clk/ drivers/iio/accel/ drivers/infiniband/core/ drivers/infiniband/ulp/ipoib/ drivers/input/touchscreen/ drivers/mmc/host/ drivers/net/dsa/ drivers/nvdimm/ drivers/powercap/ drivers/usb/typec/ init/ mm/damon/ net/dsa/ net/smc/ sound/soc/codecs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
drivers/input/touchscreen/imagis.c:358:21: error: implicit declaration of function 'of_match_ptr' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
.of_match_table = of_match_ptr(imagis_of_match),
^
>> drivers/input/touchscreen/imagis.c:358:21: warning: incompatible integer to pointer conversion initializing 'const struct of_device_id *' with an expression of type 'int' [-Wint-conversion]
.of_match_table = of_match_ptr(imagis_of_match),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/imagis.c:358:21: error: initializer element is not a compile-time constant
.of_match_table = of_match_ptr(imagis_of_match),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
vim +358 drivers/input/touchscreen/imagis.c
a23ba3c043db9a Markuss Broks 2022-03-14 353
a23ba3c043db9a Markuss Broks 2022-03-14 354 static struct i2c_driver imagis_ts_driver = {
a23ba3c043db9a Markuss Broks 2022-03-14 355 .driver = {
a23ba3c043db9a Markuss Broks 2022-03-14 356 .name = "imagis-touchscreen",
a23ba3c043db9a Markuss Broks 2022-03-14 357 .pm = &imagis_pm_ops,
a23ba3c043db9a Markuss Broks 2022-03-14 @358 .of_match_table = of_match_ptr(imagis_of_match),
a23ba3c043db9a Markuss Broks 2022-03-14 359 },
a23ba3c043db9a Markuss Broks 2022-03-14 360 .probe_new = imagis_probe,
a23ba3c043db9a Markuss Broks 2022-03-14 361 };
a23ba3c043db9a Markuss Broks 2022-03-14 362
:::::: The code at line 358 was first introduced by commit
:::::: a23ba3c043db9a2e8c967a3ff66dcedc5725afdf Input: add Imagis touchscreen driver
:::::: TO: Markuss Broks <markuss.broks@...il.com>
:::::: CC: Dmitry Torokhov <dmitry.torokhov@...il.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists