All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [leon-rdma:ethtool 24/30] drivers/net//ethernet/cavium/liquidio/lio_main.c:1421:5: error: 'LIQUIDIO_VERSION' undeclared; did you mean 'LIQUIDIO_BASE_VERSION'?
Date: Fri, 21 Feb 2020 03:08:22 +0800	[thread overview]
Message-ID: <202002210316.14dtALBU%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 7430 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git ethtool
head:   7006debc75a8f4e071cc1ce1b6cdeef54446d00b
commit: b427bead3ee608b0da99b2c69abcb4ae3c4229ff [24/30] net/liquidio: Delete driver version assignment
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b427bead3ee608b0da99b2c69abcb4ae3c4229ff
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/device.h:15:0,
                    from include/linux/pci.h:37,
                    from drivers/net//ethernet/cavium/liquidio/lio_main.c:20:
   drivers/net//ethernet/cavium/liquidio/lio_main.c: In function 'octeon_chip_specific_setup':
>> drivers/net//ethernet/cavium/liquidio/lio_main.c:1421:5: error: 'LIQUIDIO_VERSION' undeclared (first use in this function); did you mean 'LIQUIDIO_BASE_VERSION'?
        LIQUIDIO_VERSION);
        ^
   include/linux/dev_printk.h:110:33: note: in definition of macro 'dev_info'
     _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                    ^~~~~~~~~~~
   drivers/net//ethernet/cavium/liquidio/lio_main.c:1421:5: note: each undeclared identifier is reported only once for each function it appears in
        LIQUIDIO_VERSION);
        ^
   include/linux/dev_printk.h:110:33: note: in definition of macro 'dev_info'
     _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                    ^~~~~~~~~~~
--
   In file included from include/linux/device.h:15:0,
                    from include/linux/pci.h:37,
                    from drivers/net//ethernet/cavium/liquidio/lio_vf_main.c:20:
   drivers/net//ethernet/cavium/liquidio/lio_vf_main.c: In function 'octeon_device_init':
>> drivers/net//ethernet/cavium/liquidio/lio_vf_main.c:2355:4: error: 'LIQUIDIO_VERSION' undeclared (first use in this function); did you mean 'LIQUIDIO_BASE_VERSION'?
       LIQUIDIO_VERSION, oct->sriov_info.rings_per_vf);
       ^
   include/linux/dev_printk.h:110:33: note: in definition of macro 'dev_info'
     _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                    ^~~~~~~~~~~
   drivers/net//ethernet/cavium/liquidio/lio_vf_main.c:2355:4: note: each undeclared identifier is reported only once for each function it appears in
       LIQUIDIO_VERSION, oct->sriov_info.rings_per_vf);
       ^
   include/linux/dev_printk.h:110:33: note: in definition of macro 'dev_info'
     _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                    ^~~~~~~~~~~

vim +1421 drivers/net//ethernet/cavium/liquidio/lio_main.c

f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1369  
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1370  /**
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1371   * \brief Identify the Octeon device and to map the BAR address space
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1372   * @param oct octeon device
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1373   */
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1374  static int octeon_chip_specific_setup(struct octeon_device *oct)
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1375  {
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1376  	u32 dev_id, rev_id;
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1377  	int ret = 1;
d3d7e6c65f75de Raghu Vatsavayi 2016-06-21  1378  	char *s;
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1379  
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1380  	pci_read_config_dword(oct->pci_dev, 0, &dev_id);
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1381  	pci_read_config_dword(oct->pci_dev, 8, &rev_id);
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1382  	oct->rev_id = rev_id & 0xff;
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1383  
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1384  	switch (dev_id) {
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1385  	case OCTEON_CN68XX_PCIID:
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1386  		oct->chip_id = OCTEON_CN68XX;
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1387  		ret = lio_setup_cn68xx_octeon_device(oct);
d3d7e6c65f75de Raghu Vatsavayi 2016-06-21  1388  		s = "CN68XX";
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1389  		break;
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1390  
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1391  	case OCTEON_CN66XX_PCIID:
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1392  		oct->chip_id = OCTEON_CN66XX;
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1393  		ret = lio_setup_cn66xx_octeon_device(oct);
d3d7e6c65f75de Raghu Vatsavayi 2016-06-21  1394  		s = "CN66XX";
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1395  		break;
d3d7e6c65f75de Raghu Vatsavayi 2016-06-21  1396  
72c0091293c008 Raghu Vatsavayi 2016-08-31  1397  	case OCTEON_CN23XX_PCIID_PF:
72c0091293c008 Raghu Vatsavayi 2016-08-31  1398  		oct->chip_id = OCTEON_CN23XX_PF_VID;
72c0091293c008 Raghu Vatsavayi 2016-08-31  1399  		ret = setup_cn23xx_octeon_pf_device(oct);
0c45d7fe12c7e1 Rick Farrington 2017-08-18  1400  		if (ret)
0c45d7fe12c7e1 Rick Farrington 2017-08-18  1401  			break;
cf19a8c3d515d8 Derek Chickles  2017-08-01  1402  #ifdef CONFIG_PCI_IOV
cf19a8c3d515d8 Derek Chickles  2017-08-01  1403  		if (!ret)
cf19a8c3d515d8 Derek Chickles  2017-08-01  1404  			pci_sriov_set_totalvfs(oct->pci_dev,
cf19a8c3d515d8 Derek Chickles  2017-08-01  1405  					       oct->sriov_info.max_vfs);
cf19a8c3d515d8 Derek Chickles  2017-08-01  1406  #endif
72c0091293c008 Raghu Vatsavayi 2016-08-31  1407  		s = "CN23XX";
72c0091293c008 Raghu Vatsavayi 2016-08-31  1408  		break;
72c0091293c008 Raghu Vatsavayi 2016-08-31  1409  
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1410  	default:
d3d7e6c65f75de Raghu Vatsavayi 2016-06-21  1411  		s = "?";
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1412  		dev_err(&oct->pci_dev->dev, "Unknown device found (dev_id: %x)\n",
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1413  			dev_id);
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1414  	}
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1415  
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1416  	if (!ret)
d3d7e6c65f75de Raghu Vatsavayi 2016-06-21  1417  		dev_info(&oct->pci_dev->dev, "%s PASS%d.%d %s Version: %s\n", s,
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1418  			 OCTEON_MAJOR_REV(oct),
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1419  			 OCTEON_MINOR_REV(oct),
d3d7e6c65f75de Raghu Vatsavayi 2016-06-21  1420  			 octeon_get_conf(oct)->card_name,
d3d7e6c65f75de Raghu Vatsavayi 2016-06-21 @1421  			 LIQUIDIO_VERSION);
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1422  
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1423  	return ret;
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1424  }
f21fb3ed364bb8 Raghu Vatsavayi 2015-06-09  1425  

:::::: The code at line 1421 was first introduced by commit
:::::: d3d7e6c65f75de18ced10a98595a847f9f95f0ce liquidio: Firmware image download

:::::: TO: Raghu Vatsavayi <rvatsavayi@caviumnetworks.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 60189 bytes --]

                 reply	other threads:[~2020-02-20 19:08 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=202002210316.14dtALBU%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.