summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/devlink/leftover.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/devlink/leftover.c b/net/devlink/leftover.c
index 649a9701eb6a..1f00f874471f 100644
--- a/net/devlink/leftover.c
+++ b/net/devlink/leftover.c
@@ -6737,7 +6737,10 @@ void devlink_notify_unregister(struct devlink *devlink)
static void devlink_port_type_warn(struct work_struct *work)
{
- WARN(true, "Type was not set for devlink port.");
+ struct devlink_port *port = container_of(to_delayed_work(work),
+ struct devlink_port,
+ type_warn_dw);
+ dev_warn(port->devlink->dev, "Type was not set for devlink port.");
}
static bool devlink_port_type_should_warn(struct devlink_port *devlink_port)