CC: [email protected]
CC: [email protected]
TO: Andrew Lunn <[email protected]>

Hi Andrew,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f9893351acaecf0a414baf9942b48d5bb5c688c6
commit: a9770eac511ad82390b9f4a3c1728e078c387ac7 net: mdio: Move MDIO drivers 
into a new subdirectory
date:   8 weeks ago
:::::: branch date: 14 hours ago
:::::: commit date: 8 weeks ago
config: parisc-randconfig-s032-20201023 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.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-17-g2d3af347-dirty
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9770eac511ad82390b9f4a3c1728e078c387ac7
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a9770eac511ad82390b9f4a3c1728e078c387ac7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc 

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/net/mdio/mdio-octeon.c:54:23: sparse: sparse: invalid access past 
>> the end of 'smi_en' (4 8)
--
>> drivers/net/mdio/mdio-cavium.c:23:30: sparse: sparse: invalid access past 
>> the end of 'smi_clk' (4 8)
   drivers/net/mdio/mdio-cavium.c:22:32: sparse: sparse: invalid access past 
the end of 'smi_clk' (4 8)
>> drivers/net/mdio/mdio-cavium.c:55:26: sparse: sparse: invalid access past 
>> the end of 'smi_wr' (4 8)
>> drivers/net/mdio/mdio-cavium.c:46:29: sparse: sparse: invalid access past 
>> the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:45:29: sparse: sparse: invalid access past 
the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:44:28: sparse: sparse: invalid access past 
the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:38:33: sparse: sparse: invalid access past 
the end of 'smi_wr' (4 8)
>> drivers/net/mdio/mdio-cavium.c:97:32: sparse: sparse: invalid access past 
>> the end of 'smi_rd' (4 8)
   drivers/net/mdio/mdio-cavium.c:96:21: sparse: sparse: invalid access past 
the end of 'smi_rd' (4 8)
   drivers/net/mdio/mdio-cavium.c:94:26: sparse: sparse: invalid access past 
the end of 'smi_rd' (4 8)
   drivers/net/mdio/mdio-cavium.c:85:29: sparse: sparse: invalid access past 
the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:84:29: sparse: sparse: invalid access past 
the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:83:28: sparse: sparse: invalid access past 
the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:139:26: sparse: sparse: invalid access past 
the end of 'smi_wr' (4 8)
   drivers/net/mdio/mdio-cavium.c:130:29: sparse: sparse: invalid access past 
the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:129:29: sparse: sparse: invalid access past 
the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:128:28: sparse: sparse: invalid access past 
the end of 'smi_cmd' (4 8)
   drivers/net/mdio/mdio-cavium.c:124:24: sparse: sparse: invalid access past 
the end of 'smi_wr' (4 8)

vim +/smi_en +54 drivers/net/mdio/mdio-octeon.c

25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  15  
633d1594974b33a drivers/net/phy/mdio-octeon.c Bill Pemberton           
2012-12-03  16  static int octeon_mdiobus_probe(struct platform_device *pdev)
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  17  {
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  18   struct cavium_mdiobus *bus;
35d2aeac9810ca7 drivers/net/phy/mdio-octeon.c Andrew Lunn              
2016-01-06  19   struct mii_bus *mii_bus;
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  20   struct resource *res_mem;
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  21   resource_size_t mdio_phys;
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  22   resource_size_t regsize;
6c17812d622a749 drivers/net/phy/mdio-octeon.c David Daney              
2010-04-01  23   union cvmx_smix_en smi_en;
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  24   int err = -ENOENT;
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  25  
35d2aeac9810ca7 drivers/net/phy/mdio-octeon.c Andrew Lunn              
2016-01-06  26   mii_bus = devm_mdiobus_alloc_size(&pdev->dev, sizeof(*bus));
35d2aeac9810ca7 drivers/net/phy/mdio-octeon.c Andrew Lunn              
2016-01-06  27   if (!mii_bus)
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  28           return -ENOMEM;
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  29  
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  30   res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  31   if (res_mem == NULL) {
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  32           dev_err(&pdev->dev, "found no memory resource\n");
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  33           return -ENXIO;
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  34   }
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  35  
35d2aeac9810ca7 drivers/net/phy/mdio-octeon.c Andrew Lunn              
2016-01-06  36   bus = mii_bus->priv;
35d2aeac9810ca7 drivers/net/phy/mdio-octeon.c Andrew Lunn              
2016-01-06  37   bus->mii_bus = mii_bus;
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  38   mdio_phys = res_mem->start;
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  39   regsize = resource_size(res_mem);
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  40  
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  41   if (!devm_request_mem_region(&pdev->dev, mdio_phys, regsize,
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  42                                res_mem->name)) {
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  43           dev_err(&pdev->dev, "request_mem_region failed\n");
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  44           return -ENXIO;
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  45   }
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  46  
c7b04d1030f505f drivers/net/phy/mdio-octeon.c Andrew Lunn              
2020-07-07  47   bus->register_base = devm_ioremap(&pdev->dev, mdio_phys, 
regsize);
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  48   if (!bus->register_base) {
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  49           dev_err(&pdev->dev, "dev_ioremap failed\n");
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  50           return -ENOMEM;
de9e397e40f56b9 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  51   }
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  52  
6c17812d622a749 drivers/net/phy/mdio-octeon.c David Daney              
2010-04-01  53   smi_en.u64 = 0;
6c17812d622a749 drivers/net/phy/mdio-octeon.c David Daney              
2010-04-01 @54   smi_en.s.en = 1;
a6d678645210f18 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  55   oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN);
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  56  
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  57   bus->mii_bus->name = KBUILD_MODNAME;
c7b04d1030f505f drivers/net/phy/mdio-octeon.c Andrew Lunn              
2020-07-07  58   snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%px", 
bus->register_base);
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  59   bus->mii_bus->parent = &pdev->dev;
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  60  
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  61   bus->mii_bus->read = cavium_mdiobus_read;
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  62   bus->mii_bus->write = cavium_mdiobus_write;
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  63  
f8825669b3165bb drivers/net/phy/mdio-octeon.c Libo Chen                
2013-08-21  64   platform_set_drvdata(pdev, bus);
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  65  
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  66   err = of_mdiobus_register(bus->mii_bus, pdev->dev.of_node);
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  67   if (err)
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  68           goto fail_register;
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  69  
1eefee901fca020 drivers/net/phy/mdio-octeon.c David Daney              
2016-03-11  70   dev_info(&pdev->dev, "Probed\n");
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  71  
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  72   return 0;
2fd46f47be0f96b drivers/net/phy/mdio-octeon.c David Daney              
2012-07-05  73  fail_register:
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  74   mdiobus_free(bus->mii_bus);
6c17812d622a749 drivers/net/phy/mdio-octeon.c David Daney              
2010-04-01  75   smi_en.u64 = 0;
a6d678645210f18 drivers/net/phy/mdio-octeon.c Radha Mohan Chintakuntla 
2015-07-28  76   oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN);
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  77   return err;
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  78  }
25d967b72a92d72 drivers/net/phy/mdio-octeon.c David Daney              
2009-10-14  79  

:::::: The code at line 54 was first introduced by commit
:::::: 6c17812d622a74950e2cd65f368f0518491cca61 NET: mdio-octeon: Enable the 
hardware before using it.

:::::: TO: David Daney <[email protected]>
:::::: CC: Ralf Baechle <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to