From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0664991313719851539==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [intel-lts:5.4/yocto 13550/20394] include/linux/stddef.h:8:14: warning: initialization of 'long unsigned int' from 'void *' makes integer from pointer without a cast Date: Sat, 22 Jan 2022 23:56:40 +0800 Message-ID: <202201222346.ttrLsdym-lkp@intel.com> List-Id: --===============0664991313719851539== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Raymond, FYI, the error/warning still remains. tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto head: 36f93ff941f127f4137ab369aecbdd995fb58c66 commit: e3b73159b8cfd2c940dd6e55702754c16f1f3923 [13550/20394] mfd: intel-e= hl-gpio: Introduce MFD framework to PSE GPIO/TGPIO config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220122= /202201222346.ttrLsdym-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/intel/linux-intel-lts/commit/e3b73159b8cfd2c94= 0dd6e55702754c16f1f3923 git remote add intel-lts https://github.com/intel/linux-intel-lts.g= it git fetch --no-tags intel-lts 5.4/yocto git checkout e3b73159b8cfd2c940dd6e55702754c16f1f3923 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash drivers/mfd/= drivers/ptp/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/mfd/intel-ehl-gpio.c: In function 'intel_ehl_pse_gpio_mfd_suspen= d': drivers/mfd/intel-ehl-gpio.c:135:6: warning: unused variable 'i' [-Wunus= ed-variable] 135 | int i =3D 0; | ^ drivers/mfd/intel-ehl-gpio.c: In function 'intel_ehl_pse_gpio_mfd_runtim= e_suspend': drivers/mfd/intel-ehl-gpio.c:184:6: warning: unused variable 'i' [-Wunus= ed-variable] 184 | int i =3D 0; | ^ In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/limits.h:6, from include/linux/kernel.h:7, from drivers/mfd/intel-ehl-gpio.c:14: drivers/mfd/intel-ehl-gpio.c: At top level: >> include/linux/stddef.h:8:14: warning: initialization of 'long unsigned i= nt' from 'void *' makes integer from pointer without a cast [-Wint-conversi= on] 8 | #define NULL ((void *)0) | ^ drivers/mfd/intel-ehl-gpio.c:236:32: note: in expansion of macro 'NULL' 236 | { PCI_VDEVICE(INTEL, 0x4b88), NULL}, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'intel_ehl_p= se_gpio_mfd_ids[0].driver_data') 8 | #define NULL ((void *)0) | ^ drivers/mfd/intel-ehl-gpio.c:236:32: note: in expansion of macro 'NULL' 236 | { PCI_VDEVICE(INTEL, 0x4b88), NULL}, | ^~~~ >> include/linux/stddef.h:8:14: warning: initialization of 'long unsigned i= nt' from 'void *' makes integer from pointer without a cast [-Wint-conversi= on] 8 | #define NULL ((void *)0) | ^ drivers/mfd/intel-ehl-gpio.c:237:32: note: in expansion of macro 'NULL' 237 | { PCI_VDEVICE(INTEL, 0x4b89), NULL}, | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'intel_ehl_p= se_gpio_mfd_ids[1].driver_data') 8 | #define NULL ((void *)0) | ^ drivers/mfd/intel-ehl-gpio.c:237:32: note: in expansion of macro 'NULL' 237 | { PCI_VDEVICE(INTEL, 0x4b89), NULL}, | ^~~~ vim +8 include/linux/stddef.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 6 = ^1da177e4c3f41 Linus Torvalds 2005-04-16 7 #undef NULL ^1da177e4c3f41 Linus Torvalds 2005-04-16 @8 #define NULL ((void *)0) 6e218287432472 Richard Knutsson 2006-09-30 9 = :::::: The code at line 8 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0664991313719851539==--