Commit 1d0bbbf2 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by David S. Miller

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 66aeec85
...@@ -382,7 +382,7 @@ static void mhi_net_dellink(void *ctxt, struct net_device *ndev, ...@@ -382,7 +382,7 @@ static void mhi_net_dellink(void *ctxt, struct net_device *ndev,
dev_set_drvdata(&mhi_dev->dev, NULL); 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, .owner = THIS_MODULE,
.priv_size = sizeof(struct mhi_net_dev), .priv_size = sizeof(struct mhi_net_dev),
.setup = mhi_net_setup, .setup = mhi_net_setup,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment