Subject: Re: [PATCH net-next 1/4] net-sysfs: remove rtnl_trylock from device attributes

From: Stephen Hemminger <[email-masked]>
Date: Fri, 17 Jan 2025 09:03:11 -0800

On Fri, 17 Jan 2025 11:26:08 +0100
Antoine Tenart <[email-masked]> wrote:

> diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
> index 1f4d4b5570ab..7c3a0f79a669 100644
> --- a/net/core/rtnetlink.c
> +++ b/net/core/rtnetlink.c
> @@ -80,6 +80,12 @@ void rtnl_lock(void)
>  }
>  EXPORT_SYMBOL(rtnl_lock);
>  
> +int rtnl_lock_interruptible(void)
> +{
> +	return mutex_lock_interruptible(&rtnl_mutex);
> +}
> +EXPORT_SYMBOL_GPL(rtnl_lock_interruptible);

Is export symbol needed at all? The sysfs stuff isn't in a module.