lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201181202.Fx7O6xnh-lkp@intel.com>
Date:   Tue, 18 Jan 2022 12:24:03 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [rmk-arm:zii 76/167] drivers/net/dsa/qca8k.c:1479:1: warning:
 conflicting types for 'qca8k_mac_config_setup_internal_delay'; have
 'void(struct qca8k_priv *, int,  u32)' {aka 'void(struct qca8k_priv *, int,
  unsigned int)'}

tree:   git://git.armlinux.org.uk/~rmk/linux-arm zii
head:   2c17c82cf0078ead3d8a315b2b103f9e5a5cdb1d
commit: c1b605b3b2edac51ad6b687c68f087fe166790ce [76/167] net: dsa: qca8k: convert to use phylink_pcs
config: arc-randconfig-r043-20220118 (https://download.01.org/0day-ci/archive/20220118/202201181202.Fx7O6xnh-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
        git fetch --no-tags rmk-arm zii
        git checkout c1b605b3b2edac51ad6b687c68f087fe166790ce
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/net/dsa/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   drivers/net/dsa/qca8k.c: In function 'qca8k_pcs_config':
   drivers/net/dsa/qca8k.c:1185:17: error: implicit declaration of function 'qca8k_mac_config_setup_internal_delay' [-Werror=implicit-function-declaration]
    1185 |                 qca8k_mac_config_setup_internal_delay(priv, cpu_port_index, reg);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/qca8k.c: At top level:
>> drivers/net/dsa/qca8k.c:1479:1: warning: conflicting types for 'qca8k_mac_config_setup_internal_delay'; have 'void(struct qca8k_priv *, int,  u32)' {aka 'void(struct qca8k_priv *, int,  unsigned int)'}
    1479 | qca8k_mac_config_setup_internal_delay(struct qca8k_priv *priv, int cpu_port_index,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/qca8k.c:1479:1: error: static declaration of 'qca8k_mac_config_setup_internal_delay' follows non-static declaration
   drivers/net/dsa/qca8k.c:1185:17: note: previous implicit declaration of 'qca8k_mac_config_setup_internal_delay' with type 'void(struct qca8k_priv *, int,  u32)' {aka 'void(struct qca8k_priv *, int,  unsigned int)'}
    1185 |                 qca8k_mac_config_setup_internal_delay(priv, cpu_port_index, reg);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +1479 drivers/net/dsa/qca8k.c

c1b605b3b2edac Russell King (Oracle  2021-11-23  1477) 
cef08115846e58 Ansuel Smith          2021-10-14  1478  static void
cef08115846e58 Ansuel Smith          2021-10-14 @1479  qca8k_mac_config_setup_internal_delay(struct qca8k_priv *priv, int cpu_port_index,
cef08115846e58 Ansuel Smith          2021-10-14  1480  				      u32 reg)
cef08115846e58 Ansuel Smith          2021-10-14  1481  {
cef08115846e58 Ansuel Smith          2021-10-14  1482  	u32 delay, val = 0;
cef08115846e58 Ansuel Smith          2021-10-14  1483  	int ret;
cef08115846e58 Ansuel Smith          2021-10-14  1484  
cef08115846e58 Ansuel Smith          2021-10-14  1485  	/* Delay can be declared in 3 different way.
cef08115846e58 Ansuel Smith          2021-10-14  1486  	 * Mode to rgmii and internal-delay standard binding defined
cef08115846e58 Ansuel Smith          2021-10-14  1487  	 * rgmii-id or rgmii-tx/rx phy mode set.
cef08115846e58 Ansuel Smith          2021-10-14  1488  	 * The parse logic set a delay different than 0 only when one
cef08115846e58 Ansuel Smith          2021-10-14  1489  	 * of the 3 different way is used. In all other case delay is
cef08115846e58 Ansuel Smith          2021-10-14  1490  	 * not enabled. With ID or TX/RXID delay is enabled and set
cef08115846e58 Ansuel Smith          2021-10-14  1491  	 * to the default and recommended value.
cef08115846e58 Ansuel Smith          2021-10-14  1492  	 */
fd0bb28c547f7c Ansuel Smith          2021-10-14  1493  	if (priv->ports_config.rgmii_tx_delay[cpu_port_index]) {
fd0bb28c547f7c Ansuel Smith          2021-10-14  1494  		delay = priv->ports_config.rgmii_tx_delay[cpu_port_index];
cef08115846e58 Ansuel Smith          2021-10-14  1495  
cef08115846e58 Ansuel Smith          2021-10-14  1496  		val |= QCA8K_PORT_PAD_RGMII_TX_DELAY(delay) |
cef08115846e58 Ansuel Smith          2021-10-14  1497  			QCA8K_PORT_PAD_RGMII_TX_DELAY_EN;
cef08115846e58 Ansuel Smith          2021-10-14  1498  	}
cef08115846e58 Ansuel Smith          2021-10-14  1499  
fd0bb28c547f7c Ansuel Smith          2021-10-14  1500  	if (priv->ports_config.rgmii_rx_delay[cpu_port_index]) {
fd0bb28c547f7c Ansuel Smith          2021-10-14  1501  		delay = priv->ports_config.rgmii_rx_delay[cpu_port_index];
cef08115846e58 Ansuel Smith          2021-10-14  1502  
cef08115846e58 Ansuel Smith          2021-10-14  1503  		val |= QCA8K_PORT_PAD_RGMII_RX_DELAY(delay) |
cef08115846e58 Ansuel Smith          2021-10-14  1504  			QCA8K_PORT_PAD_RGMII_RX_DELAY_EN;
cef08115846e58 Ansuel Smith          2021-10-14  1505  	}
cef08115846e58 Ansuel Smith          2021-10-14  1506  
cef08115846e58 Ansuel Smith          2021-10-14  1507  	/* Set RGMII delay based on the selected values */
cef08115846e58 Ansuel Smith          2021-10-14  1508  	ret = qca8k_rmw(priv, reg,
cef08115846e58 Ansuel Smith          2021-10-14  1509  			QCA8K_PORT_PAD_RGMII_TX_DELAY_MASK |
cef08115846e58 Ansuel Smith          2021-10-14  1510  			QCA8K_PORT_PAD_RGMII_RX_DELAY_MASK |
cef08115846e58 Ansuel Smith          2021-10-14  1511  			QCA8K_PORT_PAD_RGMII_TX_DELAY_EN |
cef08115846e58 Ansuel Smith          2021-10-14  1512  			QCA8K_PORT_PAD_RGMII_RX_DELAY_EN,
cef08115846e58 Ansuel Smith          2021-10-14  1513  			val);
cef08115846e58 Ansuel Smith          2021-10-14  1514  	if (ret)
cef08115846e58 Ansuel Smith          2021-10-14  1515  		dev_err(priv->dev, "Failed to set internal delay for CPU port%d",
cef08115846e58 Ansuel Smith          2021-10-14  1516  			cpu_port_index == QCA8K_CPU_PORT0 ? 0 : 6);
cef08115846e58 Ansuel Smith          2021-10-14  1517  }
cef08115846e58 Ansuel Smith          2021-10-14  1518  

:::::: The code at line 1479 was first introduced by commit
:::::: cef08115846e581f80ff99abf7bf218da1840616 net: dsa: qca8k: set internal delay also for sgmii

:::::: TO: Ansuel Smith <ansuelsmth@...il.com>
:::::: CC: David S. Miller <davem@...emloft.net>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ