netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: mhi_net: Update the transmit handler prototype
@ 2021-06-14 21:03 Subash Abhinov Kasiviswanathan
  2021-06-14 21:20 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Subash Abhinov Kasiviswanathan @ 2021-06-14 21:03 UTC (permalink / raw)
  To: stranche, hemantk, manivannan.sadhasivam, loic.poulain, davem,
	kuba, netdev
  Cc: Subash Abhinov Kasiviswanathan

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>
---
 drivers/net/mhi/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mhi/net.c b/drivers/net/mhi/net.c
index 64af1e5..bbbbf6c 100644
--- a/drivers/net/mhi/net.c
+++ b/drivers/net/mhi/net.c
@@ -56,7 +56,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;
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] net: mhi_net: Update the transmit handler prototype
  2021-06-14 21:03 [PATCH net] net: mhi_net: Update the transmit handler prototype Subash Abhinov Kasiviswanathan
@ 2021-06-14 21:20 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-14 21:20 UTC (permalink / raw)
  To: Subash Abhinov Kasiviswanathan
  Cc: stranche, hemantk, manivannan.sadhasivam, loic.poulain, davem,
	kuba, netdev

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Mon, 14 Jun 2021 15:03:25 -0600 you wrote:
> 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>
> 
> [...]

Here is the summary with links:
  - [net] net: mhi_net: Update the transmit handler prototype
    https://git.kernel.org/netdev/net/c/2214fb53006e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-14 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 21:03 [PATCH net] net: mhi_net: Update the transmit handler prototype Subash Abhinov Kasiviswanathan
2021-06-14 21:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).