* [linux-next:master 4056/4668] drivers/nfc/nfcmrvl/spi.c:114:32: sparse: sparse: incorrect type in argument 1 (different modifiers)
@ 2021-07-31 21:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-31 21:05 UTC (permalink / raw)
To: Krzysztof Kozlowski; +Cc: kbuild-all, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 3880 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8d4b477da1a807199ca60e0829357ce7aa6758d5
commit: fe53159fe3e0639a75ffbe320b9909e0055c743f [4056/4668] nfc: mrvl: constify several pointers
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.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.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fe53159fe3e0639a75ffbe320b9909e0055c743f
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout fe53159fe3e0639a75ffbe320b9909e0055c743f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/nfc/nfcmrvl/spi.c:114:32: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct device_node *node @@ got struct device_node const *node @@
drivers/nfc/nfcmrvl/spi.c:114:32: sparse: expected struct device_node *node
drivers/nfc/nfcmrvl/spi.c:114:32: sparse: got struct device_node const *node
drivers/nfc/nfcmrvl/spi.c:120:36: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct device_node *node @@ got struct device_node const *node @@
drivers/nfc/nfcmrvl/spi.c:120:36: sparse: expected struct device_node *node
drivers/nfc/nfcmrvl/spi.c:120:36: sparse: got struct device_node const *node
vim +114 drivers/nfc/nfcmrvl/spi.c
caf6e49bf6d02e Vincent Cuissard 2015-10-26 108
fe53159fe3e063 Krzysztof Kozlowski 2021-07-29 109 static int nfcmrvl_spi_parse_dt(const struct device_node *node,
caf6e49bf6d02e Vincent Cuissard 2015-10-26 110 struct nfcmrvl_platform_data *pdata)
caf6e49bf6d02e Vincent Cuissard 2015-10-26 111 {
caf6e49bf6d02e Vincent Cuissard 2015-10-26 112 int ret;
caf6e49bf6d02e Vincent Cuissard 2015-10-26 113
caf6e49bf6d02e Vincent Cuissard 2015-10-26 @114 ret = nfcmrvl_parse_dt(node, pdata);
caf6e49bf6d02e Vincent Cuissard 2015-10-26 115 if (ret < 0) {
caf6e49bf6d02e Vincent Cuissard 2015-10-26 116 pr_err("Failed to get generic entries\n");
caf6e49bf6d02e Vincent Cuissard 2015-10-26 117 return ret;
caf6e49bf6d02e Vincent Cuissard 2015-10-26 118 }
caf6e49bf6d02e Vincent Cuissard 2015-10-26 119
caf6e49bf6d02e Vincent Cuissard 2015-10-26 120 ret = irq_of_parse_and_map(node, 0);
caf6e49bf6d02e Vincent Cuissard 2015-10-26 121 if (ret < 0) {
caf6e49bf6d02e Vincent Cuissard 2015-10-26 122 pr_err("Unable to get irq, error: %d\n", ret);
caf6e49bf6d02e Vincent Cuissard 2015-10-26 123 return ret;
caf6e49bf6d02e Vincent Cuissard 2015-10-26 124 }
caf6e49bf6d02e Vincent Cuissard 2015-10-26 125 pdata->irq = ret;
caf6e49bf6d02e Vincent Cuissard 2015-10-26 126
caf6e49bf6d02e Vincent Cuissard 2015-10-26 127 return 0;
caf6e49bf6d02e Vincent Cuissard 2015-10-26 128 }
caf6e49bf6d02e Vincent Cuissard 2015-10-26 129
:::::: The code at line 114 was first introduced by commit
:::::: caf6e49bf6d02e6bb94df680bbe3beaf680fdefa NFC: nfcmrvl: add spi driver
:::::: TO: Vincent Cuissard <cuissard@marvell.com>
:::::: CC: Samuel Ortiz <sameo@linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 73352 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-31 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-31 21:05 [linux-next:master 4056/4668] drivers/nfc/nfcmrvl/spi.c:114:32: sparse: sparse: incorrect type in argument 1 (different modifiers) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).