[arm:zii 40/102] drivers/net/dsa/b53/b53_common.c:1484:34: error: initialization of 'struct ethtool_keee *' from incompatible pointer type 'struct ethtool_eee *'
kernel test robot
lkp at intel.com
Thu May 9 10:13:09 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: arm64-defconfig (https://download.01.org/0day-ci/archive/20240510/202405100102.n1YFCS8g-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240510/202405100102.n1YFCS8g-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/202405100102.n1YFCS8g-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/net/dsa/b53/b53_common.c: In function 'b53_phylink_mac_link_up':
>> drivers/net/dsa/b53/b53_common.c:1484:34: error: initialization of 'struct ethtool_keee *' from incompatible pointer type 'struct ethtool_eee *' [-Werror=incompatible-pointer-types]
1484 | struct ethtool_keee *p = &dev->ports[port].eee;
| ^
>> drivers/net/dsa/b53/b53_common.c:1488:18: error: invalid use of undefined type 'struct ethtool_keee'
1488 | p->eee_enabled = b53_eee_init(ds, port, phydev);
| ^~
cc1: some warnings being treated as errors
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