Received: by 10.192.165.148 with SMTP id m20csp893718imm; Wed, 25 Apr 2018 09:14:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ax7Z/HlBzCCXkrHRXlajYDMJqOHeBTMmGreKSfmP8Q4oYhSPZdpWHFzqxNyb9GdDXyWsF X-Received: by 10.98.18.212 with SMTP id 81mr19590111pfs.243.1524672845679; Wed, 25 Apr 2018 09:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524672845; cv=none; d=google.com; s=arc-20160816; b=l5dFMA5AVXf4VyugoM5BGjcwWIMbNBtDVeX+ctDQ4ci+fIseqhfDLE/2qYhUexaLt2 jsMgQzJh5Jns32KEZrf5BNn3yB3U4oIu1ODASxqL5O7ijQg8eh8YbG3KDvP32r4So8UE 8p3P9N7eTanmvPAs8MjJj29lf7N5qh/Xubpdx8yt0p8tUVmjvytvCBUAHmbQ4e4F3fYT rPiXJmBqVymiRK1nfbU0ekUjvKFqVO6EXFiwAbTPhpCx/u+sOxfMHVG7zP5Wq3SoUlsh VZWKbVj/4UdlqKS4hBEFMVnEU8VnF4FPLX/ucZYRmqSspNGbhIyVtUPh0MJBACM8qnM7 SgyQ== 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:from:references:cc:to:subject:arc-authentication-results; bh=PWoI/gwtY/++3YtAFmopokijxBC/1bL04ThEGzomcFY=; b=Vo1z0gWBet5LAbSwXoIgXlbmTel2maLoKgF2pV8knHbk6nGrXfbESWvo3CM1BkNqLI ED8qlMdo3lW4pOx9F7/e+ensjcs1+UQk6BwJLlOVTvaQW9IC/C99eJEZ8EeBwMI0Xy8T PhBHk44smXKtiQTbnAh2rC0viZHbYJTZC3d/k/IJvTj9XhtVmWFBVUxYnL5OC5+LqkkZ Yo4nMeo+X/VyBiNtCgGIfhozxeSSlctkznHZ7fZ65H6S5Z8SQYdbCsVPF9YkJMLF2tVX yBe/gWylKLlUYmo03S+5Plan0vpFNDHqlcUbcRRttMneGztj2R8145VanDVjcEwFAcv1 Tz1A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y87si15941697pfi.141.2018.04.25.09.13.51; Wed, 25 Apr 2018 09:14:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755673AbeDYQLj (ORCPT + 99 others); Wed, 25 Apr 2018 12:11:39 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:39346 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755422AbeDYQLf (ORCPT ); Wed, 25 Apr 2018 12:11:35 -0400 X-IronPort-AV: E=Sophos;i="5.49,326,1520924400"; d="scan'208";a="14212586" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Apr 2018 09:11:34 -0700 Received: from [10.159.205.166] (10.10.76.4) by chn-sv-exch03.mchp-main.com (10.10.76.49) with Microsoft SMTP Server id 14.3.352.0; Wed, 25 Apr 2018 09:11:34 -0700 Subject: Re: [PATCH] staging/wilc1000: fix wilc_mac_xmit()'s return type To: Luc Van Oostenryck , CC: , Greg Kroah-Hartman , , Ganesh Krishna , Aditya Shankar References: <20180424131857.5668-1-luc.vanoostenryck@gmail.com> From: Claudiu Beznea Message-ID: <3c4bbd52-5af9-72b9-732b-f83f0bd23905@microchip.com> Date: Wed, 25 Apr 2018 18:11:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180424131857.5668-1-luc.vanoostenryck@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luc, I'm resending this since last time I only send it to staging ml. Could you, please, change the "return 0;"s inside wilc_mac_xmit() with "return NETDEV_TX_OK" ? Thank you, Claudiu On 24.04.2018 15:18, Luc Van Oostenryck wrote: > 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/wilc1000/linux_wlan.c | 2 +- > drivers/staging/wilc1000/wilc_wlan.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c > index 38a83bd31..e06aaed5e 100644 > --- a/drivers/staging/wilc1000/linux_wlan.c > +++ b/drivers/staging/wilc1000/linux_wlan.c > @@ -941,7 +941,7 @@ static void linux_wlan_tx_complete(void *priv, int status) > kfree(pv_data); > } > > -int wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev) > +netdev_tx_t wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev) > { > struct wilc_vif *vif; > struct tx_complete_data *tx_data = NULL; > diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc1000/wilc_wlan.h > index fa157a67b..d3b5a6b38 100644 > --- a/drivers/staging/wilc1000/wilc_wlan.h > +++ b/drivers/staging/wilc1000/wilc_wlan.h > @@ -298,7 +298,7 @@ void wilc_chip_sleep_manually(struct wilc *wilc); > > void wilc_enable_tcp_ack_filter(bool value); > int wilc_wlan_get_num_conn_ifcs(struct wilc *wilc); > -int wilc_mac_xmit(struct sk_buff *skb, struct net_device *dev); > +netdev_tx_t wilc_mac_xmit(struct sk_buff *skb, struct net_device *dev); > > void WILC_WFI_p2p_rx(struct net_device *dev, u8 *buff, u32 size); > void host_wakeup_notify(struct wilc *wilc); >