From: kernel test robot <lkp@intel.com>
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 [thread overview]
Message-ID: <202201222346.ttrLsdym-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4018 bytes --]
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-ehl-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=1 build):
# https://github.com/intel/linux-intel-lts/commit/e3b73159b8cfd2c940dd6e55702754c16f1f3923
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
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=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/mfd/ drivers/ptp/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/mfd/intel-ehl-gpio.c: In function 'intel_ehl_pse_gpio_mfd_suspend':
drivers/mfd/intel-ehl-gpio.c:135:6: warning: unused variable 'i' [-Wunused-variable]
135 | int i = 0;
| ^
drivers/mfd/intel-ehl-gpio.c: In function 'intel_ehl_pse_gpio_mfd_runtime_suspend':
drivers/mfd/intel-ehl-gpio.c:184:6: warning: unused variable 'i' [-Wunused-variable]
184 | int i = 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 int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
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_pse_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 int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
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_pse_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 <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
reply other threads:[~2022-01-22 15:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202201222346.ttrLsdym-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.