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 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 :::::: CC: Samuel Ortiz --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org