CC: [email protected]
CC: Alison Schofield <[email protected]>
CC: Vishal Verma <[email protected]>
CC: Ira Weiny <[email protected]>
CC: Ben Widawsky <[email protected]>
CC: Dan Williams <[email protected]>
CC: [email protected]
TO: Dan Williams <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head:   e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 47810cb0a1d64b0b7d06e7856981a0afcbe25a0a [35/53] cxl/core/hdm: Add CXL 
standard decoder enumeration to the core
:::::: branch date: 13 hours ago
:::::: commit date: 16 hours ago
config: powerpc-randconfig-s031-20220119 
(https://download.01.org/0day-ci/archive/20220122/[email protected]/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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.4-dirty
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=47810cb0a1d64b0b7d06e7856981a0afcbe25a0a
        git remote add cxl 
https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
        git fetch --no-tags cxl preview
        git checkout 47810cb0a1d64b0b7d06e7856981a0afcbe25a0a
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc 
SHELL=/bin/bash drivers/cxl/core/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
>> drivers/cxl/core/hdm.c:100:28: sparse: sparse: duplicate [noderef]
>> drivers/cxl/core/hdm.c:100:28: sparse: sparse: multiple address spaces 
>> given: __iomem & __iomem

vim +100 drivers/cxl/core/hdm.c

47810cb0a1d64b Dan Williams 2022-01-19   93  
47810cb0a1d64b Dan Williams 2022-01-19   94  /**
47810cb0a1d64b Dan Williams 2022-01-19   95   * devm_cxl_setup_hdm - map HDM 
decoder component registers
47810cb0a1d64b Dan Williams 2022-01-19   96   * @port: cxl_port to map
47810cb0a1d64b Dan Williams 2022-01-19   97   */
47810cb0a1d64b Dan Williams 2022-01-19   98  struct cxl_hdm 
*devm_cxl_setup_hdm(struct device *host, struct cxl_port *port)
47810cb0a1d64b Dan Williams 2022-01-19   99  {
47810cb0a1d64b Dan Williams 2022-01-19 @100     void __iomem *crb, __iomem *hdm;
47810cb0a1d64b Dan Williams 2022-01-19  101     struct device *dev = &port->dev;
47810cb0a1d64b Dan Williams 2022-01-19  102     struct cxl_hdm *cxlhdm;
47810cb0a1d64b Dan Williams 2022-01-19  103  
47810cb0a1d64b Dan Williams 2022-01-19  104     cxlhdm = devm_kzalloc(host, 
sizeof(*cxlhdm), GFP_KERNEL);
47810cb0a1d64b Dan Williams 2022-01-19  105     if (!cxlhdm)
47810cb0a1d64b Dan Williams 2022-01-19  106             return ERR_PTR(-ENOMEM);
47810cb0a1d64b Dan Williams 2022-01-19  107  
47810cb0a1d64b Dan Williams 2022-01-19  108     cxlhdm->port = port;
47810cb0a1d64b Dan Williams 2022-01-19  109     crb = 
devm_cxl_iomap_block(host, port->component_reg_phys,
47810cb0a1d64b Dan Williams 2022-01-19  110                                
CXL_COMPONENT_REG_BLOCK_SIZE);
47810cb0a1d64b Dan Williams 2022-01-19  111     if (!crb) {
47810cb0a1d64b Dan Williams 2022-01-19  112             dev_err(dev, "No 
component registers mapped\n");
47810cb0a1d64b Dan Williams 2022-01-19  113             return ERR_PTR(-ENXIO);
47810cb0a1d64b Dan Williams 2022-01-19  114     }
47810cb0a1d64b Dan Williams 2022-01-19  115  
47810cb0a1d64b Dan Williams 2022-01-19  116     hdm = 
map_hdm_decoder_regs(port, crb);
47810cb0a1d64b Dan Williams 2022-01-19  117     if (IS_ERR(hdm))
47810cb0a1d64b Dan Williams 2022-01-19  118             return ERR_CAST(hdm);
47810cb0a1d64b Dan Williams 2022-01-19  119     cxlhdm->regs.hdm_decoder = hdm;
47810cb0a1d64b Dan Williams 2022-01-19  120  
47810cb0a1d64b Dan Williams 2022-01-19  121     parse_hdm_decoder_caps(cxlhdm);
47810cb0a1d64b Dan Williams 2022-01-19  122     if (cxlhdm->decoder_count == 0) 
{
47810cb0a1d64b Dan Williams 2022-01-19  123             dev_err(dev, "Spec 
violation. Caps invalid\n");
47810cb0a1d64b Dan Williams 2022-01-19  124             return ERR_PTR(-ENXIO);
47810cb0a1d64b Dan Williams 2022-01-19  125     }
47810cb0a1d64b Dan Williams 2022-01-19  126  
47810cb0a1d64b Dan Williams 2022-01-19  127     return cxlhdm;
47810cb0a1d64b Dan Williams 2022-01-19  128  }
47810cb0a1d64b Dan Williams 2022-01-19  129  
EXPORT_SYMBOL_NS_GPL(devm_cxl_setup_hdm, CXL);
47810cb0a1d64b Dan Williams 2022-01-19  130  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to