Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4031498pxf; Tue, 23 Mar 2021 00:16:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymyoIVOE7t3MF4S+6npTVNOkhR5dqcBpQNcoUY7q4H6pGbn9jJmfT8qi00FnuIGIZfn55g X-Received: by 2002:a17:906:ecb8:: with SMTP id qh24mr3671003ejb.162.1616483792355; Tue, 23 Mar 2021 00:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616483792; cv=none; d=google.com; s=arc-20160816; b=VyXvcsZs6a0r86j3/IvPFBtwUUN7IexDgYEuv43613weSs25vslIaaNLnWsxl2eBLw VV9n0XCiYLlDjcDhZkl4FkDD4vzIwH+MUocCDgaaq9o5IclM3egwYr9tSB7/RNg52MwK nie7EcC1xOiaGLFD9ytJpA3H90Pk1LrrIxJZOKiQEKQq/NXre6oi91FS85hUAPW2ETAv Pupw7QVO99FcWi986fxOaZIbWy2yGCtdkLMVmjdaXQt4Za9aMG20G/dmfbRfACBDwW+P nUeTzqiUUqjUssHe8tPdkzgQU4IvpLuWwkvzIianU0oRj8RP0SgkJI4ANTTmALPk9Rbg VH2g== 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=prczV4hURbCUqf4X2O8Gfb79jOtL1UkZE8UgvB6RW3k=; b=GsJajhlfdF36MTvNaA7ds2x7TY+zx/q0bbq6jYl4ydmZhTs+P0OtMaF3XkxXS+hiKG i9o0AkodVqDD7YwZCJ5H34t56GSXWj+xHzAGcfk/5bMeL5XjaUu4f3ER20++vmfTXRsu z7abgwEtbYEODb5OG2vuXcRKiwL5FSBD0ZVRskiIjIPn/PJUlDe6UvrZzVM3IOHXtYs5 Wzxxy7HuooNG1uhYdZ/Uo28GqoEkDEPMtPwfeIFuKgbIrHMwZDe2f87UZYbL+VVpCHvr IfsL/xJl5qyvTG0CE1Mb+TmtdLdx/CG55+bIzbEKwGd2c2PIwFYtT54XXoEytmoFejMk cuxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RV4c6Cv9; 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 gb2si13953648ejc.547.2021.03.23.00.16.08; Tue, 23 Mar 2021 00:16:32 -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=RV4c6Cv9; 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 S229933AbhCWHOC (ORCPT + 99 others); Tue, 23 Mar 2021 03:14:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:33214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbhCWHNl (ORCPT ); Tue, 23 Mar 2021 03:13:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4737619AB; Tue, 23 Mar 2021 07:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616483621; bh=oRzZKD3qP85na+2EJ4div7Gjl1JNgZQcRQ9FT53/JKg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RV4c6Cv9Z1KhJpnKhJzPHE1a/iCxAf7jdDO7Dn41YnHZkGc46Kd11aR2mvgs6wadt EWNm4cAh9tVKboSMdDxFsdKBNP/fQBxeMRQS+pqF60H00oyWOjYZxG40hKyvWFtM6F rNroCQSB57mKft3+wPaEF1bn8P+8SX2+sGOkxAik= Date: Tue, 23 Mar 2021 08:13:38 +0100 From: Greg KH To: Fabio Aiuto Cc: joe@perches.com, apw@canonical.com, devel@driverdev.osuosl.com, 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> <20210322182840.GC1443@agape.jhs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210322182840.GC1443@agape.jhs> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 07:28:42PM +0100, Fabio Aiuto wrote: > On Mon, Mar 22, 2021 at 05:09:00PM +0100, Greg KH wrote: > > 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 didn't check the rtl8188eu for that's not a module rtl8723bs depends on Ugh, you are right, my fault, sorry for the noise. greg k-h