Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3559160pxf; Mon, 22 Mar 2021 09:11:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRwImhDR6wwzYWgCT83x+sxAy1Q3a5OD/b09aP05laUsMDp7HpWr5AZIETg4YT9as3diW+ X-Received: by 2002:a17:907:37a:: with SMTP id rs26mr552060ejb.336.1616429494213; Mon, 22 Mar 2021 09:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616429494; cv=none; d=google.com; s=arc-20160816; b=TqfaNBbcc7Mo1FP34OWZ5VXECOlbvX9/FNLuBhaZ2w8hYAqlBu11gp9ZgTOWQSO/gS 3XxHbAh/m4ZWjnEoFhtjoDogCYtClbTclb0N1ZnDUBz/yiuQPpN8myng79FANjRYwRHT xEQszV+AGuc5ZvqhEz63uBX3VbK0yhKXijj2FdVy7i7LNlHOf3AjIDkHABr8ZnPvYCjQ JRR2ibgbTI3iNkkkOWRpLJsJmgS046I/S2jWSkDOgLLcbmh/ANzGQ7dSsmy2WUbOjKPf owrKSp5uS1OCO9evzuoI0/5rg6dpK/JOlcHP1KMpUK6YrzZh8B6DGj7/QUUrbvWnW8WX FZSQ== 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=6tYySEwXhFzgiNs0PmXrtqxXCuRHRAqbfyDBZvpcY7s=; b=t79NG6rxnwitCtcWEXlXKT0BIU1P3d2yuRDvkpxYzZCZZaegmcjFZaLf6k2Fm+KZKG E1zuBSPayeKxdC3qVdsy/IA/ay1ApqR3j2Amk9E+dXOwGQ2vhX+vrK8TlIrILZnegI9V ko8VY7Q6E6EfnEp3t6sl1PNoadlAf8OX4TEoPhii9MrKDYVjYVW+lzBdGLZGT+8Wk62k OhquylI0gVjN/hq6MArGZU/G6i3kkbsB00bTXw87+uqiTp7iWM62043dAyMShZSMywPR AY+YdR8ktQ0CdnbwqkXLCcc9aVG6xMZmUR/JYUiv4DNngjN4DdxpM31/m58CY8zK3/Fl hZvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=amM4rO4c; 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 w25si11553109eja.753.2021.03.22.09.11.10; Mon, 22 Mar 2021 09:11:34 -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=amM4rO4c; 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 S231704AbhCVQKB (ORCPT + 99 others); Mon, 22 Mar 2021 12:10:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:55490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231411AbhCVQJx (ORCPT ); Mon, 22 Mar 2021 12:09:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 637EA61974; Mon, 22 Mar 2021 16:09:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616429392; bh=PI/qXbUs5SvOGrg0P7aohg7TrmkzywQnPD7nUT99osw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=amM4rO4ca+yoryF9O8aRMsEiXrtoQQNhWZXxDOFOuz8OgJC9uO+8AQd640H/UutJ+ ZHrqI5f/8WhdyFSg2RSY0SuWyIfbirhCGfUKqnVs6DCzL0GiPFG9RO7dkVPNwBOrFA /nZZmGQvpc78hSIohmwNk8SKvZgyCaZ1FeQtCPNI= Date: Mon, 22 Mar 2021 17:09:50 +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 04/11] staging: rtl8723bs: moved function prototypes out of core/rtw_recv.c Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 03:31:42PM +0100, Fabio Aiuto wrote: > fix the following checkpatch issues: > > WARNING: externs should be avoided in .c files > 1190: FILE: drivers/staging/rtl8723bs/core/rtw_recv.c:1190: > +signed int validate_recv_mgnt_frame(struct adapter *padapter, union recv_frame *precv_frame); > > and then moved all function prototypes but one in include/rtw_recv.h > > Signed-off-by: Fabio Aiuto > --- > drivers/staging/rtl8723bs/core/rtw_recv.c | 31 +----------- > drivers/staging/rtl8723bs/include/rtw_recv.h | 51 ++++++++++++++++++++ > 2 files changed, 52 insertions(+), 30 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c > index 1fa381663b4c..9ef2408ded57 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_recv.c > +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c > @@ -305,7 +305,6 @@ struct recv_buf *rtw_dequeue_recvbuf(struct __queue *queue) > > } > > -signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *precvframe); > signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *precvframe) > { > > @@ -435,8 +434,6 @@ signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *precvfra > > } > > -/* decrypt and set the ivlen, icvlen of the recv_frame */ > -union recv_frame *decryptor(struct adapter *padapter, union recv_frame *precv_frame); > union recv_frame *decryptor(struct adapter *padapter, union recv_frame *precv_frame) > { > > @@ -527,8 +524,6 @@ union recv_frame *decryptor(struct adapter *padapter, union recv_frame *precv_fr > return return_packet; > } > > -/* set the security information in the recv_frame */ > -union recv_frame *portctrl(struct adapter *adapter, union recv_frame *precv_frame); > union recv_frame *portctrl(struct adapter *adapter, union recv_frame *precv_frame) > { > u8 *psta_addr = NULL; > @@ -606,7 +601,6 @@ union recv_frame *portctrl(struct adapter *adapter, union recv_frame *precv_fram > return prtnframe; > } > > -signed int recv_decache(union recv_frame *precv_frame, u8 bretry, struct stainfo_rxcache *prxcache); > signed int recv_decache(union recv_frame *precv_frame, u8 bretry, struct stainfo_rxcache *prxcache) > { > signed int tid = precv_frame->u.hdr.attrib.priority; > @@ -634,7 +628,6 @@ signed int recv_decache(union recv_frame *precv_frame, u8 bretry, struct stainfo > > } > > -void process_pwrbit_data(struct adapter *padapter, union recv_frame *precv_frame); > void process_pwrbit_data(struct adapter *padapter, union recv_frame *precv_frame) > { > unsigned char pwrbit; > @@ -671,7 +664,6 @@ void process_pwrbit_data(struct adapter *padapter, union recv_frame *precv_frame > } > } > > -void process_wmmps_data(struct adapter *padapter, union recv_frame *precv_frame); > void process_wmmps_data(struct adapter *padapter, union recv_frame *precv_frame) > { > struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; > @@ -723,7 +715,6 @@ void process_wmmps_data(struct adapter *padapter, union recv_frame *precv_frame) > } > } > > -void count_rx_stats(struct adapter *padapter, union recv_frame *prframe, struct sta_info *sta); > void count_rx_stats(struct adapter *padapter, union recv_frame *prframe, struct sta_info *sta) > { > int sz; > @@ -755,8 +746,6 @@ void count_rx_stats(struct adapter *padapter, union recv_frame *prframe, struct > traffic_check_for_leave_lps(padapter, false, 0); > } > > -signed int sta2sta_data_frame(struct adapter *adapter, union recv_frame *precv_frame, > - struct sta_info **psta); > signed int sta2sta_data_frame(struct adapter *adapter, union recv_frame *precv_frame, > struct sta_info **psta) > { > @@ -850,8 +839,6 @@ signed int sta2sta_data_frame(struct adapter *adapter, union recv_frame *precv_f > return ret; > } > > -signed int ap2sta_data_frame(struct adapter *adapter, union recv_frame *precv_frame, > - struct sta_info **psta); > signed int ap2sta_data_frame(struct adapter *adapter, union recv_frame *precv_frame, > struct sta_info **psta) > { > @@ -992,8 +979,6 @@ signed int ap2sta_data_frame(struct adapter *adapter, union recv_frame *precv_fr > return ret; > } > > -signed int sta2ap_data_frame(struct adapter *adapter, union recv_frame *precv_frame, > - struct sta_info **psta); > signed int sta2ap_data_frame(struct adapter *adapter, union recv_frame *precv_frame, > struct sta_info **psta) > { > @@ -1049,7 +1034,6 @@ signed int sta2ap_data_frame(struct adapter *adapter, union recv_frame *precv_fr > return ret; > } > > -signed int validate_recv_ctrl_frame(struct adapter *padapter, union recv_frame *precv_frame); > signed int validate_recv_ctrl_frame(struct adapter *padapter, union recv_frame *precv_frame) > { > struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; > @@ -1186,8 +1170,6 @@ signed int validate_recv_ctrl_frame(struct adapter *padapter, union recv_frame * > > } > > -union recv_frame *recvframe_chk_defrag(struct adapter *padapter, union recv_frame *precv_frame); > -signed int validate_recv_mgnt_frame(struct adapter *padapter, union recv_frame *precv_frame); > signed int validate_recv_mgnt_frame(struct adapter *padapter, union recv_frame *precv_frame) > { > /* struct mlme_priv *pmlmepriv = &adapter->mlmepriv; */ > @@ -1227,7 +1209,6 @@ signed int validate_recv_mgnt_frame(struct adapter *padapter, union recv_frame * > > } > > -signed int validate_recv_data_frame(struct adapter *adapter, union recv_frame *precv_frame); > signed int validate_recv_data_frame(struct adapter *adapter, union recv_frame *precv_frame) > { > u8 bretry; > @@ -1459,7 +1440,6 @@ static inline void dump_rx_packet(u8 *ptr) > DBG_871X("#############################\n"); > } > > -signed int validate_recv_frame(struct adapter *adapter, union recv_frame *precv_frame); > signed int validate_recv_frame(struct adapter *adapter, union recv_frame *precv_frame) > { > /* shall check frame subtype, to / from ds, da, bssid */ > @@ -1557,9 +1537,6 @@ signed int validate_recv_frame(struct adapter *adapter, union recv_frame *precv_ > return retval; > } > > - > -/* remove the wlanhdr and add the eth_hdr */ > -signed int wlanhdr_to_ethhdr(union recv_frame *precvframe); > signed int wlanhdr_to_ethhdr(union recv_frame *precvframe) > { > signed int rmv_len; > @@ -1886,7 +1863,6 @@ static int amsdu_to_msdu(struct adapter *padapter, union recv_frame *prframe) > return _SUCCESS; > } > > -int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num); > int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num) > { > struct adapter *padapter = preorder_ctrl->padapter; > @@ -1955,7 +1931,6 @@ int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num) > return true; > } > > -int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union recv_frame *prframe); > int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union recv_frame *prframe) > { > struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib; > @@ -2017,7 +1992,7 @@ void recv_indicatepkts_pkt_loss_cnt(struct debug_priv *pdbgpriv, u64 prev_seq, u > pdbgpriv->dbg_rx_ampdu_loss_count += (current_seq - prev_seq); > > } > -int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctrl *preorder_ctrl, int bforced); > + > int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctrl *preorder_ctrl, int bforced) > { > struct list_head *phead, *plist; > @@ -2125,7 +2100,6 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr > return bPktInBuf; > } > > -int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe); > int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe) > { > int retval = _SUCCESS; > @@ -2279,7 +2253,6 @@ void rtw_reordering_ctrl_timeout_handler(struct timer_list *t) > > } > > -int process_recv_indicatepkts(struct adapter *padapter, union recv_frame *prframe); > int process_recv_indicatepkts(struct adapter *padapter, union recv_frame *prframe) > { > int retval = _SUCCESS; > @@ -2402,8 +2375,6 @@ static int recv_func_posthandle(struct adapter *padapter, union recv_frame *prfr > return ret; > } > > - > -int recv_func(struct adapter *padapter, union recv_frame *rframe); Shouldn't this just be a static function? And same for others in here? thanks, greg k-h