From patchwork Tue Apr 24 13:18:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 10359841 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8D36F601BE for ; Tue, 24 Apr 2018 13:26:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E22628DD3 for ; Tue, 24 Apr 2018 13:26:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 712D428DD6; Tue, 24 Apr 2018 13:26:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B83428DD3 for ; Tue, 24 Apr 2018 13:26:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934202AbeDXN0P (ORCPT ); Tue, 24 Apr 2018 09:26:15 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38246 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933969AbeDXNSr (ORCPT ); Tue, 24 Apr 2018 09:18:47 -0400 Received: by mail-wm0-f67.google.com with SMTP id i3so814585wmf.3; Tue, 24 Apr 2018 06:18:46 -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=MRCohO7Lx2AskNmREzQd8frKDgTkt3+hF0VekPVvuqs=; b=EW6dSFKM14j91syV9KHxWCP+D07mWQH3vNmCHNsrTz09UZVvx7LA3FkDBFl3ddGm0R /dtGCEJIab5KkxsDoku0xQfSVaY3vuWE+K7AST1SL4qGsAoPPE0ajzlU4fRkZ2Pv+gyS KISqvOhcDp4pfl0Br62p1hfQs9IRtXLaEoIe6qHfGPrUuh2L2l84s85Fp3cWHHaqWBuh UmyowS9AVUbwzqFBRrFhliI44nhqS2WJ8bf3y1erm7m7ZnyyaeGZASXq4CAXM1cbplJ0 SAt3OnN6i+XaazctaLH6l2i7iPFw8rdSgUQkauvuW+9g9mdB1OV/q1p3J7ry2IRC3FMY W67g== 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=MRCohO7Lx2AskNmREzQd8frKDgTkt3+hF0VekPVvuqs=; b=tQShNR/YWBtZw0Tc2u6WMSoo7HSRHkXD5cPNL1ewJEr70mn6FhKEVJmEwNBlF1d614 TDaZNCSmtVgTwvX58wx+7909hYOEPywQlW09eiLiXLv4OmJvPWJZPtbj98CLIkyepjwH cgXIb86AAMfUP+M8RmdA0yLWBZgXuANQTWLqKVWfjZENqzJsyA32hoanjgc2T1oxudWa DK69UoK9J5fHRalhUMRz/3YTFlwognI6TgZ7S6Qs4sENSxceWJD3EcezvrBZzl+pvFtz 6D/9YZBTTFET951JT6oTeYDBhC/BZYol/BLYhlqc+06Vhvyjn4sI1IuEGsukyFUazF6t Adhw== X-Gm-Message-State: ALQs6tC4tXu0oIJfOfRAWrom6QWY7wkT0JsfZy+F3eoAQ+ikvQKLaHHP XynFUkw6Uej94wKgD2XC53+PaRd0lmk= X-Google-Smtp-Source: AIpwx4+uSGbAkSz223rbM/P4jnaplnQlVZ3w15FoXnrZRq8YvPdzWdz9ltvlZIEpnYd03swziWr/eQ== X-Received: by 10.80.178.3 with SMTP id o3mr33817916edd.231.1524575926132; Tue, 24 Apr 2018 06:18:46 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id d4sm892463edp.11.2018.04.24.06.18.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:45 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Felipe Balbi , Greg Kroah-Hartman , "David S. Miller" , Stephen Hemminger , Johannes Berg , "Gustavo A. R. Silva" , Bhumika Goyal , linux-usb@vger.kernel.org Subject: [PATCH] usb: gadget: f_phonet: fix pn_net_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:41 +0200 Message-Id: <20180424131844.5417-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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/usb/gadget/function/f_phonet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_phonet.c b/drivers/usb/gadget/function/f_phonet.c index 7889bcc05..8b72b192c 100644 --- a/drivers/usb/gadget/function/f_phonet.c +++ b/drivers/usb/gadget/function/f_phonet.c @@ -221,7 +221,7 @@ static void pn_tx_complete(struct usb_ep *ep, struct usb_request *req) netif_wake_queue(dev); } -static int pn_net_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t pn_net_xmit(struct sk_buff *skb, struct net_device *dev) { struct phonet_port *port = netdev_priv(dev); struct f_phonet *fp;