[arm:zii 40/102] drivers/net/dsa/b53/b53_common.c:1484:23: error: incompatible pointer types initializing 'struct ethtool_keee *' with an expression of type 'struct ethtool_eee *'

kernel test robot lkp at intel.com
Thu May 9 09:41:58 PDT 2024


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   e9436a5c3f1e8dc9d425f51b98e96e185a20704d
commit: 7e189be0111c723d361907eecee7f5f96000b518 [40/102] net: dsa: b53: Call b53_eee_init() from b53_mac_link_up()
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240510/202405100019.okFNkK95-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240510/202405100019.okFNkK95-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405100019.okFNkK95-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/dsa/b53/b53_common.c:1484:23: error: incompatible pointer types initializing 'struct ethtool_keee *' with an expression of type 'struct ethtool_eee *' [-Werror,-Wincompatible-pointer-types]
           struct ethtool_keee *p = &dev->ports[port].eee;
                                ^   ~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/b53/b53_common.c:1488:4: error: incomplete definition of type 'struct ethtool_keee'
                   p->eee_enabled = b53_eee_init(ds, port, phydev);
                   ~^
   drivers/net/dsa/b53/b53_common.c:1484:9: note: forward declaration of 'struct ethtool_keee'
           struct ethtool_keee *p = &dev->ports[port].eee;
                  ^
   2 errors generated.


vim +1484 drivers/net/dsa/b53/b53_common.c

  1475	
  1476	static void b53_phylink_mac_link_up(struct dsa_switch *ds, int port,
  1477					    unsigned int mode,
  1478					    phy_interface_t interface,
  1479					    struct phy_device *phydev,
  1480					    int speed, int duplex,
  1481					    bool tx_pause, bool rx_pause)
  1482	{
  1483		struct b53_device *dev = ds->priv;
> 1484		struct ethtool_keee *p = &dev->ports[port].eee;
  1485	
  1486		if (mode == MLO_AN_PHY) {
  1487			/* Re-negotiate EEE if it was enabled already */
> 1488			p->eee_enabled = b53_eee_init(ds, port, phydev);
  1489			return;
  1490		}
  1491	
  1492		if (mode == MLO_AN_FIXED) {
  1493			/* Force flow control on BCM5301x's CPU port */
  1494			if (is5301x(dev) && dsa_is_cpu_port(ds, port))
  1495				tx_pause = rx_pause = true;
  1496	
  1497			b53_force_port_config(dev, port, speed, duplex,
  1498					      tx_pause, rx_pause);
  1499			b53_force_link(dev, port, true);
  1500			return;
  1501		}
  1502	
  1503		if (phy_interface_mode_is_8023z(interface) &&
  1504		    dev->ops->serdes_link_set)
  1505			dev->ops->serdes_link_set(dev, port, mode, interface, true);
  1506	}
  1507	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-arm-kernel mailing list