]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: pse-pd: Fix ethnl_pse_send_ntf() stub parameter type
authorKory Maincent <kory.maincent@bootlin.com>
Fri, 20 Jun 2025 09:16:41 +0000 (11:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Jun 2025 15:10:25 +0000 (08:10 -0700)
The ethnl_pse_send_ntf() stub function has incorrect parameter type when
CONFIG_ETHTOOL_NETLINK is disabled. The function should take a net_device
pointer instead of phy_device pointer to match the actual implementation.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506200355.TqFiYUbN-lkp@intel.com/
Fixes: fc0e6db30941 ("net: pse-pd: Add support for reporting events")
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250620091641.2098028-1-kory.maincent@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool_netlink.h

index 1dcc4059b5abf07e98e3ea2d4a8360432940df16..39254b2726c08c55aa9e522c04bb213a124676b8 100644 (file)
@@ -122,7 +122,7 @@ static inline bool ethtool_dev_mm_supported(struct net_device *dev)
        return false;
 }
 
-static inline void ethnl_pse_send_ntf(struct phy_device *phydev,
+static inline void ethnl_pse_send_ntf(struct net_device *netdev,
                                      unsigned long notif)
 {
 }