Received: by 10.192.165.148 with SMTP id m20csp924680imm; Wed, 25 Apr 2018 09:42:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx49+eRpD+zSAaM3fE2KLuTF2h0MDWbr41A6JP5T8sTP1/LzO4NPgmxePFhK6Z0gYFSPpXpVh X-Received: by 2002:a17:902:5710:: with SMTP id k16-v6mr30154676pli.177.1524674562965; Wed, 25 Apr 2018 09:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524674562; cv=none; d=google.com; s=arc-20160816; b=fH43HpWLHvPMasljIpB4wblFG/1G6UqdKxNQvw64lyC+WU8vTaQNReKTiAEqm1AymU 1bFAVdRE1CfvMIvkIzmw7G1UkiwI868S19+0xgzhi/L/4GHl9Yc28TVitBdo52YV9kEi iD5A7/yNTeSJ+iupxWOBF2TjwtC1DBuNXDzczDMxgblFyRp+Kc65wQypzphC6/SRxamZ zFMJbwCTqtYuWNm0ve0pZHG+qHLZXjBilzWdc3Tp22SJHk4/Nz0cTbVRB9UHjKlE56XP zbynSEVyLhhRhQpYvUMVubMYYROcxBcV1qKYDo3J8XZe4yZmAs5JewpP5LUKWiLkK+E5 5GYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=AH0B6t/9pSLsJ9GsXF+rgJZd00c7keNKQ8R6J1H45pg=; b=IMWDgXDEgzVFRc2s3Ul3/vrbcz+puf/pgUpjhOo7PWzaQkJcsFow1W/V4CPbeA0hYy Jt6DRlCGQRnCWI8p7mJPmUYhE/hLNKM6P0dj3q0vimg6FrjcVpBqqcd2szjoCoNh1ozF vbdmhIIdsud5SaPViaDq0DOLRn/O8KYH8PA8lPqxzDOI3MsTeZCTgjfEOurCMNr3QcGE UHJ2KIvQgKUxINUjcrJJvbxJSFhEOZscNYqYD9CRV6QDIAwuAiE5Vgw3RNkTV7843nT6 5pw83buRBYIqq/p+k+vHU85R7fpOFT1LoalfJ6wfYfdUh7X4tOxlXNPzOMRtL6kQtD6K Ssiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tmn/w34I; 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 s88si884077pfa.339.2018.04.25.09.42.28; Wed, 25 Apr 2018 09:42:42 -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=Tmn/w34I; 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 S1755322AbeDYQkL (ORCPT + 99 others); Wed, 25 Apr 2018 12:40:11 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33717 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755212AbeDYQkI (ORCPT ); Wed, 25 Apr 2018 12:40:08 -0400 Received: by mail-lf0-f67.google.com with SMTP id m18-v6so9119144lfb.0 for ; Wed, 25 Apr 2018 09:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=AH0B6t/9pSLsJ9GsXF+rgJZd00c7keNKQ8R6J1H45pg=; b=Tmn/w34IzscoD+8n42b4Hu0mglNENaFlyBIRIwkAVdUf5ubO2iqopxdbhof/rfNEY5 73St+xC51G9w34N1yRc9bx/WUQHLztux4UxAOXUa9oCSOaQyR2FhGdCtwdSBkQYADaSN WC0UELA010HZ6x64FWmK96K/SLWdI4YLFvJfTNp7PxCFfzuriLTeaNYbTDnvjbGNudsz 1l4GAOS+caCgc1Ak8IvIUmm8qnCpgtZpw5MTtZT4CBfEJzJsYCshMElerEqz/RTJPKWC 06LmiH50+CsA1jxUUnOaC9BQdorO0O1QnY4pWLgMdaBwpVFnTKBm3T4ShMc+185K0SbI cryg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=AH0B6t/9pSLsJ9GsXF+rgJZd00c7keNKQ8R6J1H45pg=; b=Ho2Ydh5UkPohUxWn6LJ5a4JbV4ObaOKovwN2m8a5h39820lH2jfGBCln3G0IP0ZkqN HTeIqBkqqqNjJlLu7Fv9biBuKXGR3R2af7xMUmzm7QAN7JFgFduptyFKybM9Oo0hM2mz bJUCkhphalo4XIYB7ArqVI57fpJTi4CzhwTX1g3DMYclqKoU2DvJkxvDa5Udq+6Vans4 uVoJs8CCOVW/XImKocob4Eo3Q4RcxAX1Vt3PAewWk/7+dROdfv/DS6GVIZNKOrNNTOpP hgsjjn51fMtqBm5iozf9mYLAVjfcgqCtadQ5dTaql/eIB4Yt+eCeMqyJUjRUaBv0dTJ0 G4Kg== X-Gm-Message-State: ALQs6tDo0fuxxTXeue/QlXSK27nG3z85ommq+ZgbkUFw0hnIZu1vOFiG rFhUfEl9L3edLxHXcGsMTvc= X-Received: by 10.46.27.82 with SMTP id b79mr1584195ljb.134.1524674406986; Wed, 25 Apr 2018 09:40:06 -0700 (PDT) Received: from [192.168.0.2] (89-76-39-112.dynamic.chello.pl. [89.76.39.112]) by smtp.gmail.com with ESMTPSA id 66-v6sm3999449lfp.85.2018.04.25.09.40.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 09:40:06 -0700 (PDT) Subject: Re: [PATCH] staging: ks7010: fix ks_wlan_start_xmit()'s return type To: Luc Van Oostenryck , linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , "Tobin C. Harding" , Quytelda Kahja , Sergio Paracuellos , SUNIL KALLUR RAMEGOWDA , "Gustavo A. R. Silva" , devel@driverdev.osuosl.org References: <20180424131824.5164-1-luc.vanoostenryck@gmail.com> From: Janusz Lisiecki Message-ID: <1435ae13-d0d0-61c6-c96d-18c8e68d086e@gmail.com> Date: Wed, 25 Apr 2018 18:40:14 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180424131824.5164-1-luc.vanoostenryck@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org W dniu 2018-04-24 o 15:18, Luc Van Oostenryck pisze: > 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/staging/ks7010/ks_wlan_net.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c > index 9078e13b0..57412caac 100644 > --- a/drivers/staging/ks7010/ks_wlan_net.c > +++ b/drivers/staging/ks7010/ks_wlan_net.c > @@ -71,7 +71,7 @@ static const struct iw_handler_def ks_wlan_handler_def; > */ > static int ks_wlan_open(struct net_device *dev); > static void ks_wlan_tx_timeout(struct net_device *dev); > -static int ks_wlan_start_xmit(struct sk_buff *skb, struct net_device *dev); > +static netdev_tx_t ks_wlan_start_xmit(struct sk_buff *skb, struct net_device *dev); > static int ks_wlan_close(struct net_device *dev); > static void ks_wlan_set_multicast_list(struct net_device *dev); > static struct net_device_stats *ks_wlan_get_stats(struct net_device *dev); > @@ -2772,7 +2772,7 @@ void ks_wlan_tx_timeout(struct net_device *dev) > } > > static > -int ks_wlan_start_xmit(struct sk_buff *skb, struct net_device *dev) > +netdev_tx_t ks_wlan_start_xmit(struct sk_buff *skb, struct net_device *dev) > { > struct ks_wlan_private *priv = netdev_priv(dev); > int ret; Maybe inside ks_wlan_start_xmit, instead of "return 0;", there should be "return NETDEV_TX_OK;" and "return NETDEV_TX_BUSY;" otherwise. It is just suggestion. Br, Janusz Lisiecki