From b139b3b85f130b3f07eae278f3b34dee2a464a1b Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Tue, 3 Nov 2026 00:36:59 +0200 Subject: ipoe: use rtnl_newlink_params signature only from 6.15 struct rtnl_newlink_params was introduced in 6.15, but the newlink callback switched to it at 6.13, so the module failed to build on 6.13 and 6.14 kernels with an incompatible pointer type for .newlink. Signed-off-by: Denys Fedoryshchenko --- drivers/ipoe/ipoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 6a4ab978..47dc6955 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -1135,7 +1135,7 @@ static int ipoe_ctrl_attached(void) /* Sessions are created through IPOE_CMD_CREATE, which also sets up the * private state. A device made by rtnetlink would have none of it, so * refuse 'ip link add ... type ipoe' explicitly. */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,13,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,0) static int ipoe_newlink(struct net_device *dev, struct rtnl_newlink_params *params, struct netlink_ext_ack *extack) -- cgit v1.2.3