diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-06-16 13:53:09 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-16 00:38:02 -0700 |
commit | 1d0bbbf22b744153044a5e98c19df866dfbd18ea (patch) | |
tree | 7db3f238c8012c2c0a5b62cb9e1060d5e749771a | |
parent | 66aeec855ac5f7b03c586c6f38a1a06b59bf6a01 (diff) |
net: mhi_net: make mhi_wwan_ops static
This symbol is not used outside of net.c, so marks it static.
Fix the following sparse warning:
drivers/net/mhi/net.c:385:23: warning: symbol 'mhi_wwan_ops' was not
declared. Should it be static?
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/mhi/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mhi/net.c b/drivers/net/mhi/net.c index 64af1e518484..832d9de42f62 100644 --- a/drivers/net/mhi/net.c +++ b/drivers/net/mhi/net.c @@ -382,7 +382,7 @@ static void mhi_net_dellink(void *ctxt, struct net_device *ndev, dev_set_drvdata(&mhi_dev->dev, NULL); } -const struct wwan_ops mhi_wwan_ops = { +static const struct wwan_ops mhi_wwan_ops = { .owner = THIS_MODULE, .priv_size = sizeof(struct mhi_net_dev), .setup = mhi_net_setup, |