diff options
author | Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> | 2021-06-15 00:03:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-15 00:13:09 +0300 |
commit | 2214fb53006e6cfa6371b706070cb99794c68c3b (patch) | |
tree | f44a8c3a8dce3f2ee62ac630d2691f5166a5af41 /drivers/net/mhi | |
parent | 45deacc731d73de7495e3004f7d8d92eb4c1d9eb (diff) | |
download | linux-2214fb53006e6cfa6371b706070cb99794c68c3b.tar.xz |
net: mhi_net: Update the transmit handler prototype
Update the function prototype of mhi_ndo_xmit to match
ndo_start_xmit. This otherwise leads to run time failures when
CFI is enabled in kernel.
Fixes: 3ffec6a14f24 ("net: Add mhi-net driver")
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mhi')
-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 0d8293a47a56..b806f2f8f859 100644 --- a/drivers/net/mhi/net.c +++ b/drivers/net/mhi/net.c @@ -49,7 +49,7 @@ static int mhi_ndo_stop(struct net_device *ndev) return 0; } -static int mhi_ndo_xmit(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t mhi_ndo_xmit(struct sk_buff *skb, struct net_device *ndev) { struct mhi_net_dev *mhi_netdev = netdev_priv(ndev); const struct mhi_net_proto *proto = mhi_netdev->proto; |