Received: by 10.192.165.148 with SMTP id m20csp4736246imm; Tue, 24 Apr 2018 07:38:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrPoogVsbeLHRdyml2oBvEhubLDB1XCWBX7Rqt1ihoClPM0rJVxWnD05c5X/P9wjP6tb3Nx X-Received: by 10.98.74.80 with SMTP id x77mr4708809pfa.142.1524580689166; Tue, 24 Apr 2018 07:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580689; cv=none; d=google.com; s=arc-20160816; b=dcOJ6LGyeCN/Wiq/9trH3kFduoqnIjujtRJkRwAcLxx8Ip9nVtvMoMTL7zDU8su8RK vC9QQ9uSfq/ohTQR1LV3DfOXSpKl/BFpwHw8mYMbJHvJ46orTvq0REcR3onm79Lr8ftf Bpcr98RRqZoIBAK3+8pkyTwNq5RcFB9mw1G/K6f6M/AFBtVcN6psj6R/veiE2fRoYa/r 7iylim4caNP1Ikdo3BNxqPYoZ8Rys5VlCzALQwcH9u8lZAvCu07HIZ3s5sNJu1kwnzAk lvIwfqthB6CeBC3PoZUy0SBLcN/7AMRT3r8my0EyvPSn2b3D4zQv8DdBhZ7WkBtf0T4f Fg+w== 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=MRCohO7Lx2AskNmREzQd8frKDgTkt3+hF0VekPVvuqs=; b=kgC2QHHRxTAv2nwQ84F3bFt72rYKzw/aoDIaIS4LbPVDWuWjvex6UF0udp1qv4kVJJ 7LuBNEKRNXRVd890EqqqcLGMusE4sRRpgM8lksgf7kYuo7YVnd7OoJOx5evxOCxu1o2N 0uGpeZtfjnNNEh6Cx6GiRBujAC25ddQZH7U0DMlPYArB2AZ4ZCoa+LzbVCoTSHeDp3hf xcNreJVbnaL7gm8xn1ANNhhNW4CQrMwJA58Xr0hfgemyFOmWJdsEOqeY6Y3iB7dE+ZGa C4wbJoi4i9e/Hn0tanvcx7mLmXZVQVeUHOjYu78yJ2Mr5FY6pBYaIGD2vxENLQRPZAfP oCEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EW6dSFKM; 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 v4-v6si13624263plo.476.2018.04.24.07.37.54; Tue, 24 Apr 2018 07:38:09 -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=EW6dSFKM; 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 S934259AbeDXN0P (ORCPT + 99 others); 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-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-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/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; -- 2.17.0