Received: by 10.192.165.148 with SMTP id m20csp4651599imm; Tue, 24 Apr 2018 06:22:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+7TgqpEaPkodIB2+VGQ+bzhveQ6sb47IAoyXg39m6+bIoETgttBjxtIUVvqXPbQrKNuxRU X-Received: by 10.98.20.195 with SMTP id 186mr16988351pfu.92.1524576143115; Tue, 24 Apr 2018 06:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524576143; cv=none; d=google.com; s=arc-20160816; b=nA1+DET6VnWKcgZxQzr+boKbcStDzyKvv1gyTpCzDwguBONwYdVkox4aG07QRWVNN9 2nmskePmkE57rtgG3Wd1yF7J+73N4H4lIfFiGzferQ4X/aLPz4HH/08g1Lzvvkl9hB3y 7uNVGtyvl3KMKi2moFjajXOLH9onZIpnm9XLX0/Bd1DA/2Np+e5C3Fs7GNjCoZokD11D vrF0I3HIlq7nMITd8dKsPXOcQ2ck7Wv1mrVz4FL+JPBJ2DZPAydHWq6z/eZU5ujE72/7 8AY2GJiocd33YCJBYm+XVutO4+Y/x/CddsGujN1h84GCxqDoDZI4+m2bRTCGVOCWRR9f jnVg== 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=cqoi/waoRIa4Q+2szvfgOZ9sEkwLJ/RI9CkzzOOpno4=; b=KDqvQKJFm1txfcUt1CwDXHfXrpR7XCN9ATvC8MHNR0XDiudKD2p4cgVcUwMhRQ84yN WN96CnG/0CW9W7t+45KSMGUafyOd6tn9BJGEwwhQLNALJjsYlvdLOBFPaQmhD4MYzexC f9HrYTzmteubsY6acF3ykdmXAa6EMXZNEn6xXa6lEn1o08YcRy1WsnZqZzwJi6RRlZnH z7JN7gPLvjB+Lqq8EanvDwNn6tGotiK7UQ129ssAfRhbTOOx4EbC0umGtXpWYRKO313P 1ceb+WU+3/UM4DNl39KZIhuEwrnmJmwHIM3eFnPwzdR5lV6NV6lDGO+8Dg8DEe2HcuZh g3Tg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si13098280pfn.314.2018.04.24.06.22.08; Tue, 24 Apr 2018 06:22:23 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934149AbeDXNUg (ORCPT + 99 others); Tue, 24 Apr 2018 09:20:36 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54592 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758064AbeDXNUb (ORCPT ); Tue, 24 Apr 2018 09:20:31 -0400 Received: by mail-wm0-f67.google.com with SMTP id f6so925738wmc.4 for ; Tue, 24 Apr 2018 06:20:31 -0700 (PDT) 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-language :content-transfer-encoding; bh=cqoi/waoRIa4Q+2szvfgOZ9sEkwLJ/RI9CkzzOOpno4=; b=T5hMiNjLXQ70kDcvcIa6l5bZjuMJhuMjhEA5a6l1qnApNXWoVgcXcLWA6lhsQqMTHL y7maidgJCBAPRbO1qOx+eMkqqVUjsDWKrX4cWj6+WjOHjTPlfL+0F/WR5lRTEwm1jqFa PSdMuZfiMsp0zPd9MZmu76eUSarZtqw9CtTsZeV1Q9XU8lt2p7QZqmUIWuP+qujyI6uy H1yr31RLgCAQkS8NwaUcA1v/gBln28ks5G8jsHv6fVSo5EGo554dmahz5TR//u1EZAJW VILPpYtS5ALk/JpxtNkRM7SR1iRoJ1XU1ItoJuKm0Li9+AUYKJfbYlWIZ/wfM8AO0cdC o+JQ== X-Gm-Message-State: ALQs6tDEU/+x6lgXsAAJwBvVtD4pJ/wNtTpJTwOTfVLXs2/CBAQk+1YU 4NmCc6JRwQG14XCqygKPSwUhjQ== X-Received: by 10.28.211.79 with SMTP id k76mr11576100wmg.110.1524576030567; Tue, 24 Apr 2018 06:20:30 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id k28-v6sm31102243wrk.96.2018.04.24.06.20.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:20:29 -0700 (PDT) Subject: Re: [PATCH] staging: rtl8723bs: fix rtw_cfg80211_monitor_if_xmit_entry()'s return type To: Luc Van Oostenryck , linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Quytelda Kahja , Colin Ian King , Joe Perches , Arushi Singhal , "David S. Miller" , Arnd Bergmann , devel@driverdev.osuosl.org References: <20180424131829.5215-1-luc.vanoostenryck@gmail.com> From: Hans de Goede Message-ID: Date: Tue, 24 Apr 2018 15:20:29 +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: <20180424131829.5215-1-luc.vanoostenryck@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed 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, On 24-04-18 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 Thank you for the patch, looks good to me: Reviewed-by: Hans de Goede Regards, Hans > --- > drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > index 46bc2e512..75d8a16f5 100644 > --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c > @@ -2472,7 +2472,7 @@ static int rtw_cfg80211_monitor_if_close(struct net_device *ndev) > return ret; > } > > -static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_device *ndev) > +static netdev_tx_t rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_device *ndev) > { > int ret = 0; > int rtap_len; >