Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3559037pxf; Mon, 22 Mar 2021 09:11:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcgM5NqTlfpWdEQQNh9bpx0X+tKDrGDxY2ewLatvA+WnVxQITz2Z57crOUZ/FayldK/NaG X-Received: by 2002:a17:907:7684:: with SMTP id jv4mr518718ejc.231.1616429483108; Mon, 22 Mar 2021 09:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616429483; cv=none; d=google.com; s=arc-20160816; b=dm3WhLm5YMJMPpUelkBNIM2QvEGIpB45CRWfBcSt99w9Lhm+wX2HDKQCAY2dJxzx/G fbBbCMJgNlVA9LYjMxa3TDvL6TtJcQkqAkPOIvAMRlm+ad6CoJYe2WrzLPQO9dBE2NOo rt+dNJSDOcJG5Q88FBMM+xcccfCn5oxWPOXvWdzICL+QfXXkZo+cJ25YLFE1XQS9Fdvc 1x4AEVFp8QrQBnRGVYLDQUhrR/Nqxj5VNqzGw53bi5Pz0ZjL1D8XeqU84J/lTkQwdzrk 59ZU7K9+v0JRuEUXAml+ZS27yZtI69P4qkDizeebXZHlfnUClec394UV3QG5gqSgjvkx ttUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yq2DanXlhKQ3i7/tfzuMXOCBKqHb7Il9Znceef4EqNk=; b=YWAWS9ozC2/K4J+URaDSWoL5zRDok+wXROWneSaPQRotivQAVtCZOgq0xNeeJDlOkO 4D0OoO2mwhM22J2jlTfAEhwPoTdl0S1Dv6shcCRkPFgfDX44MyP7cL5f3Inl+b+5BjD2 MA3QMyKOBKBv9jVmQbrmLUrV+Qf1wGZNejB8uRY7JKoPtnPYy4gtC/z/lIqcVnL7Xxrv M9EBp/ingWjtFtZAP3RCQZRsSsa8rQyxkuxv6Zr12JlzsKmADRt26jUuUV+jGqgyelld 1AwvIg2ySYYIAfvbQbquOCci77g5fIuOcCzF1eNtYybJrKV8gK+EtItbfXmUH9/64Ebp soMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v+4c5Glt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr30si11416308ejc.545.2021.03.22.09.11.00; Mon, 22 Mar 2021 09:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v+4c5Glt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231184AbhCVQJ6 (ORCPT + 99 others); Mon, 22 Mar 2021 12:09:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:55388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231617AbhCVQJD (ORCPT ); Mon, 22 Mar 2021 12:09:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D05DE6198C; Mon, 22 Mar 2021 16:09:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616429343; bh=S8egBBkG/IrGOXtnVBxf9LB7f8Mai2E3Qg6O7ER8j9g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=v+4c5GltO8jYY9el82VePesv7L/rhDopYckXvLs+RnlVc57UN3uSQ7T+ocvINkz0K R+QVPzd4eN8Jb8VH1328lkNsQDoTXABiCWIY7IjFsV5Fgj2aCVeGKxmHmypEGKdqtR asLIaFSCqFg45SvJnEi6UDf6MOtah3C+nXBfUXDc= Date: Mon, 22 Mar 2021 17:09:00 +0100 From: Greg KH To: Fabio Aiuto Cc: joe@perches.com, apw@canonical.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/11] staging: rtl8723bs: moved function prototype out of core/rtw_ioctl_set.c and core/rtw_mlme.c Message-ID: References: <81ccf18df5ca0acab5bb8da2b675a03626ef57ac.1616422773.git.fabioaiuto83@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <81ccf18df5ca0acab5bb8da2b675a03626ef57ac.1616422773.git.fabioaiuto83@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 03:31:41PM +0100, Fabio Aiuto wrote: > fix the following checkpatch issues: > > WARNING: externs should be avoided in .c files > 40: FILE: drivers/staging/rtl8723bs/core/rtw_ioctl_set.c:40: > +u8 rtw_do_join(struct adapter *padapter); > > WARNING: externs should be avoided in .c files > 15: FILE: drivers/staging/rtl8723bs/core/rtw_mlme.c:15: > +extern u8 rtw_do_join(struct adapter *padapter); > > moved function prototype in include/rtw_ioctl_set.h > > Signed-off-by: Fabio Aiuto > --- > drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 1 - > drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 -- > drivers/staging/rtl8723bs/include/rtw_ioctl_set.h | 2 ++ > 3 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c > index cb14855742f7..7d858cae2395 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c > +++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c > @@ -37,7 +37,6 @@ u8 rtw_validate_ssid(struct ndis_802_11_ssid *ssid) > return ret; > } > > -u8 rtw_do_join(struct adapter *padapter); > u8 rtw_do_join(struct adapter *padapter) > { > struct list_head *plist, *phead; > diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c > index 95cfef118a94..1ee86ec2dee7 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c > +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c > @@ -12,8 +12,6 @@ > #include > #include > > -extern u8 rtw_do_join(struct adapter *padapter); > - > int rtw_init_mlme_priv(struct adapter *padapter) > { > int i; > diff --git a/drivers/staging/rtl8723bs/include/rtw_ioctl_set.h b/drivers/staging/rtl8723bs/include/rtw_ioctl_set.h > index 4b929b84040a..55722c1366aa 100644 > --- a/drivers/staging/rtl8723bs/include/rtw_ioctl_set.h > +++ b/drivers/staging/rtl8723bs/include/rtw_ioctl_set.h > @@ -28,6 +28,8 @@ u8 rtw_set_802_11_connect(struct adapter *padapter, u8 *bssid, struct ndis_802_1 > u8 rtw_validate_bssid(u8 *bssid); > u8 rtw_validate_ssid(struct ndis_802_11_ssid *ssid); > > +u8 rtw_do_join(struct adapter *padapter); > + This is already in drivers/staging/rtl8188eu/include/hal_intf.h, why declare it again? I'm stopping here on reviewing this patchset, please look closer at it again and fix up and resend a v2. thanks, greg k-h