Received: by 10.192.165.148 with SMTP id m20csp4736502imm; Tue, 24 Apr 2018 07:38:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+lAN+7g5OcYUmI3oUzvuvbGXKsd8ZnUpeRM+ENZWfXnW1cybhAQubC/od69spGWVz8Ez1i X-Received: by 2002:a17:902:aa94:: with SMTP id d20-v6mr25991355plr.323.1524580703831; Tue, 24 Apr 2018 07:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580703; cv=none; d=google.com; s=arc-20160816; b=PSO4dHEPwEM1rtgG6bUF4IdCs7Oh+WzPvilFUOj0yMISHgNuoXcma8gQbn/vPN39cg 2I5GDE0xxSy900WSi3BgW5lNiIx8jnTdqerO+rjPN+AagV18K9VajOpXQ/ELby26pJYq Pr7UeWkqDQhb1hw8CTnSBGStbpm4cNI8zeC3T1V/AR9goIw3OLfLazPrZmOTYNnz5CIv mpgt1LiNHd4NwJJwZBLD+ESvOtGFGq95FRjv3vkXCsR2Y9v0l00Hf4He79tUmcNnsNa7 /o/fnOKxF+FBZNBjRuyMe0grJvAihPwhWQcsG6AEUIASgB7NDb1RnE/aQgNdgGB5CONW OREA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=HRNZeUgGXiVdSLzWJelm0hZLWq6WQWrvD8IUB7RUr0E=; b=nngrzOiM8C927etQHzaHarbTtCmhuOdEYce9UimD1AEn1xDT3tyxDKKlu8JY9ILVxs QDUMbO68SXE92BeoWgHpMGRsUPTycEf79tp8j103tKytWDS9W8O+KkJLj8j+eYIBB8CT 0W139T/i8l27mQOjbn2rQWT4dqU4ZmoKU4vbUm2iEKQHnpvfQMGPLkhdW6o1lcpcMa3j UrFOLDgscaRJkHGlQarXedpszuqzb/K5oZpH8KluQ6qVh1j53rCrlJDYymFWxfWe0lj9 SenFzwJqchcED+ifa2IydRghkt63y+h13ONVFJ8v804QK6cPkHfNUH5eQ1c/CXg47R0x nZeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uFS95n6J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si11996120pgu.626.2018.04.24.07.38.09; Tue, 24 Apr 2018 07:38:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uFS95n6J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934007AbeDXNSH (ORCPT + 99 others); Tue, 24 Apr 2018 09:18:07 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35153 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933839AbeDXNSD (ORCPT ); Tue, 24 Apr 2018 09:18:03 -0400 Received: by mail-wm0-f67.google.com with SMTP id o78so808377wmg.0; Tue, 24 Apr 2018 06:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=HRNZeUgGXiVdSLzWJelm0hZLWq6WQWrvD8IUB7RUr0E=; b=uFS95n6JTBm5p0APdn8EuDC2bBTQF7K0cvcAb/HrTi2uwhS/K8QRShRQiIgrBam1dW mQ+NIC9MTtXNQW78ty5WnBVkx1tcy7T7p7FHO/zsipEBlewZ1BjCIKKEa66/HL7k50SD cA4MIeW1Q2miYMUAuSbpXh8UxMY8KqbpfbjZ2fkHLfXeSnc94ZdqVRzRMKNwGDU6M1U4 J1TCSCzOncaOLod2T/aYLOL9UMLD9X3Pj8m/2T6nHQQeJIdgDwgguL+u6jP1PKX7E+8n YUZVTYxd859CohmXp2DUQ8ShQbiEZ6NLt+OO8FSQRJQKeAKzQsXOctYlZoLv5Eu8zJII MP/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HRNZeUgGXiVdSLzWJelm0hZLWq6WQWrvD8IUB7RUr0E=; b=LBgHoFgrfobFvxYiCQZQXr/9Lj/5K72ouUyeGJzFzmnk/QZooylKzjvn2BjYOpXbRR +qZwClJ9BA7TfitPx9aWofLs/y07xPgTB/ZN1VP+y9xuw2sbcaQWrLdId5NS1hkmaHUz 5z2HU7woXl/paAYYfkSZlI2VLDs7uAljUAJCDiEddRKM6Fnu9ztG9uDI+o157vYDHSmM VyS1EWqYp8uzSnMOL0aipwWYxeUn7sjcwyZg6eMYyw13Zq00mwlkcaWV2jG2LWNNwnQ0 ME8e36HnCOWAg+UYaNyqOksQjuo3yTDPa7UCiH6p5EmgLrYT1dhmlJX+WM6DVPXn5tJX g6mg== X-Gm-Message-State: ALQs6tB//E8Yxn+lI/RSx6f6KlcQa5ZoMFgjiPk75iMy3+AVRclTRoAR /z9pKhRTmpAJaca64cHiyM5cFHBOAf4= X-Received: by 10.80.139.249 with SMTP id n54mr33322730edn.216.1524575881708; Tue, 24 Apr 2018 06:18:01 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id q6sm8554689edh.48.2018.04.24.06.18.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:01 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , "David S. Miller" , "Gustavo A. R. Silva" , Arvind Yadav , Johannes Berg , Alexander Kappner , linux-usb@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] usbnet: ipheth: fix ipheth_tx()'s return type Date: Tue, 24 Apr 2018 15:17:58 +0200 Message-Id: <20180424131800.4862-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, but the implementation in this driver returns an 'int'. Fix this by returning 'netdev_tx_t' in this driver too. Signed-off-by: Luc Van Oostenryck --- drivers/net/usb/ipheth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index 7275761a1..53eab6fb9 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c @@ -413,7 +413,7 @@ static int ipheth_close(struct net_device *net) return 0; } -static int ipheth_tx(struct sk_buff *skb, struct net_device *net) +static netdev_tx_t ipheth_tx(struct sk_buff *skb, struct net_device *net) { struct ipheth_device *dev = netdev_priv(net); struct usb_device *udev = dev->udev; -- 2.17.0