Received: by 10.192.165.148 with SMTP id m20csp928165imm; Wed, 25 Apr 2018 09:46:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+WNoIMnsoc9he4szL3CI3oY5S1Kf+cuCKA1+D9oFaXhrYIzoWuYTW+sdkK6RbixyewCFhT X-Received: by 10.98.87.150 with SMTP id i22mr28889230pfj.119.1524674772260; Wed, 25 Apr 2018 09:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524674772; cv=none; d=google.com; s=arc-20160816; b=k/HSDWs762tfYLrztvosh6Y4qxSJmxWSpXyEnR4EZsSoaAE2abRIo/UuMcToxjKZpq H7gf59nful/Jxv3TrAYWK21fAViPkn3Hj4ChdupDh3CgFZmxPvFu3lMM6yz4OVFcdv2J Y03CnLhzzKj1CDtPkcxXnSesCA6o2Hhy12thozvBmMKlKT+Fd9Rqu6ScNnZ2WNZlf/HV cmRGkgS9bFodBrfcB+BaKctSR41dGlMCL3HyilM2XGP4jWF1IVEwsIBfEQ4Csnased+q RpwTjViGdJ6ptS7HpDRwk4pstmXP7HJMUSIFlqighgVTa5JmNDKR01mYqeeyrpfG/o4x MAug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature :arc-authentication-results; bh=AH0B6t/9pSLsJ9GsXF+rgJZd00c7keNKQ8R6J1H45pg=; b=P4TYz/wdeZflv35FpxZZa5A8HbjACwmcHlPUwgSrtHguvZtpqHiEOErlrX//ebgX1r WpdO0scXv05UV0kTH2N0+ZT8FT+u0b0esMOPWpDqUV/dapcyng5C03J0YF/r2M+Z21fs BrO164/dhW4PrgwNESakIuS3JMUW9BKngpNOS8/dWH/L62cB4IQ1p6XS7OSWL1UGQhus wS+PDfS2iVysZGDNASpQwZjisTaMQos5UaOzSqiktKx/4wA/jxBbcjUSuy+jxRyNvo2h phkKjG5d/geZgwdmPYbpjOQa4YIrvXSkSACfM6B4ybq0X/GsD/iGMgLWVi9kMsW3X6Lr KbRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LCnTzE7M; 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.45.58; Wed, 25 Apr 2018 09:46:12 -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=LCnTzE7M; 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 S1755299AbeDYQod (ORCPT + 99 others); Wed, 25 Apr 2018 12:44:33 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:43581 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755209AbeDYQoc (ORCPT ); Wed, 25 Apr 2018 12:44:32 -0400 Received: by mail-lf0-f66.google.com with SMTP id g12-v6so10343391lfb.10 for ; Wed, 25 Apr 2018 09:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AH0B6t/9pSLsJ9GsXF+rgJZd00c7keNKQ8R6J1H45pg=; b=LCnTzE7M2BZafugMuaYJ2iXGq78KinI9V0OhN1nZKqudMCOKqllgzjMiBJuFWEkAzB TXRqcvZQTUWRF2gyXuRTXtsmNk98ua6+1piqfmJiugFpBKrGSXsVjhOQR9Gvfv9sNFyt Fad8mt2YIXHkgHtoV/leXhlE0WPkHDtf3xmgNQFPTdR1IC6RhYov0wppT3leNxghBX3b N92boiz+GLR/vRQyytGm7qyF/GAv/VFXMEU+9ohK//kBzNTyjVSFZziw3apH9J0qAkH/ 6oxh8Lx2F9TDr9bmNYZUlfVcVmy6ZcNucgnKsuY5S+UctxSOTuRwgzpYoNB1Duw6QlLu seXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AH0B6t/9pSLsJ9GsXF+rgJZd00c7keNKQ8R6J1H45pg=; b=Itqyqd1gtdqFDb/jKnmgtHLNVV+1pEn+8CddhEtk131Yskn7JCMQrW6xx5YWB7EcEq vCMWtGZnfDFjGnjlI2aYxWkbNqkWd0FAVZcBlR7WyV7C3RlwhWYhxPtvWue2Mmbwhf5q MJ+tb+gPS1XviO3cIpfvpuY+eR6y+EKYA+kQZ8lhR9VrxSLFtbFaPNUcmz6xKUodkRta OelR7uRO3Hx5+KbLlCIErh5ZlHYfxucxfNKxf/WSWdXoWob1Lk6ebJwTqQexLtOueNgl HWl3WWRL83B3LWskL1j64wbRLNQmnpssTf7UG37pLLhXIbJAatZiuM1tgqloKDhu2zlN 7wJQ== X-Gm-Message-State: ALQs6tDyhKaGjnyVvHMDp/3qusBWzgJfwiKFpu/0Jjymv5FkRyvvldtd Rsy47584vFZqQJR9GweGfQg= X-Received: by 10.46.29.83 with SMTP id d80mr18738390ljd.104.1524674671058; Wed, 25 Apr 2018 09:44:31 -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 u5-v6sm4011790lfu.0.2018.04.25.09.44.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 09:44:30 -0700 (PDT) From: Janusz Lisiecki 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> Message-ID: <2203ebe4-63c2-3728-50fa-a30b195d1508@gmail.com> Date: Wed, 25 Apr 2018 18:44:38 +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-Language: en-GB Content-Transfer-Encoding: 8bit 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