From 70bbf3279e7891163e99c8f3574f31d4083828ff Mon Sep 17 00:00:00 2001 From: yanyh2 Date: Thu, 3 Dec 2020 20:56:06 +0800 Subject: [PATCH] usbnet: fix CFI checking failure Correct function usb_ether_xmit return value type to match the prototype of the member ndo_start_xmit in struct net_device_ops to avoid CFI checking failure. Change-Id: I8439e967ee824bb5f0ac8447d79ae066379a6465 Signed-off-by: yanyh2 Reviewed-on: https://gerrit.mot.com/1818255 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/moto_f_usbnet/f_usbnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/moto_f_usbnet/f_usbnet.c b/drivers/moto_f_usbnet/f_usbnet.c index 93235204d58e..0b05e30a6627 100644 --- a/drivers/moto_f_usbnet/f_usbnet.c +++ b/drivers/moto_f_usbnet/f_usbnet.c @@ -342,7 +342,7 @@ struct usb_request *usb_get_xmit_request(int stop_flag, struct net_device *dev) return req; } -static int usb_ether_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t usb_ether_xmit(struct sk_buff *skb, struct net_device *dev) { struct usbnet_context *context = netdev_priv(dev); struct usb_request *req;