[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200908133307.2dfd9f03@dellmb.labs.office.nic.cz>
Date: Tue, 8 Sep 2020 13:33:07 +0200
From: Marek BehĂșn <marek.behun@....cz>
To: Andrew Lunn <andrew@...n.ch>
Cc: David Miller <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>, Chris Healy <cphealy@...il.com>,
Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [PATCH net-next v2 1/7] net: dsa: Add helper to convert from
devlink to ds
On Tue, 8 Sep 2020 02:51:49 +0200
Andrew Lunn <andrew@...n.ch> wrote:
> +struct dsa_switch *dsa_devlink_to_ds(struct devlink *dl)
> +{
> + struct dsa_devlink_priv *dl_priv = devlink_priv(dl);
> +
> + return dl_priv->ds;
> +}
> +EXPORT_SYMBOL_GPL(dsa_devlink_to_ds);
Hi Andrew,
why not make this a static inline function?
Marek
Powered by blists - more mailing lists