Subject: Re: [PATCH net-next v2 07/10] devlink: allow devlink instance allocation without a backing device

From: Jakub Kicinski <[email-masked]>
Date: Sat, 28 Feb 2026 15:01:38 -0800

On Wed, 25 Feb 2026 14:34:19 +0100 Jiri Pirko wrote:
> -	dev_warn(port->devlink->dev, "Type was not set for devlink port.");
> +	if (port->devlink->dev)
> +		dev_warn(port->devlink->dev,
> +			 "Type was not set for devlink port.");

since I'm already nit-picking - maybe we should have a helper for this
case an pr_warn() the message if dev is NULL?