Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3647829pxf; Mon, 22 Mar 2021 11:21:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjrxTERWGPuVaFQB6GFJYwiwIYvfsV1SiwMY7qYanNiX1NvYG9RDTaRyGrp4egs2sEd9mQ X-Received: by 2002:a17:906:3ac3:: with SMTP id z3mr1161259ejd.106.1616437293712; Mon, 22 Mar 2021 11:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616437293; cv=none; d=google.com; s=arc-20160816; b=v+ogeM71cnmCU+VfbjTt0hUrOgnjsFR/jWBjoNNXaC1eCoXvw77kQs/Cv4c2MKVVHA /wEVB+xuaXcX7X7eoxOkFx0sj7uXJ8fJi14BOaAxDEez1sUInfBwu1PvO3F98xPotjQ4 inXIUveQjYsPQao0wgj7NIDdxnUxem6sM31e0W9O5Tsh3Xc50HSa0eVJu2VBWHdryJAW veiKQfOclv0CyisoszgTnIIaQ8pW+j5j6ufzOJ7cl78XWwim78f+yM3NSL2uQS+54FMP 7LIO0K9F0uz6kp3DUDWVZBOX6QW+SWcoTz7YwNBnvJ/Hgqed0uVJ4uu4U/GHPz11OFuj V27Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3dtk5n06/qQhu6ya837RSEVImQmWnv5XbUrMmc0aG/E=; b=ZkHPxQ5uhN8i40FPHyhSNwquxLjSqE1/g1so3EH74wTlr6YYi3LTQz2ZPtMITxxNGY XrEYAeoIiJWuVFQeq9mlQp9h6lf5GZZtBXBpnUryhjwVU8HdMj7xPmQ8X30sXb+F3Cko wMz/0QuzrziKku1MPw8dLOxDln8VylN2Tu8nQErnvhPqRXrOKjIEKHrkEUzmi2/h0z7u cOZuK2nUiWRW76dyQQ4RIZ6ewzSGQ2oQAvtOicbMPBdOvjc55TBxPmzFWUTaAJewKDzQ LgSZhA62xZ+6RIGUwhQ4NWXKjhVI9DY/Kv/If0i8xyHohJ741QyHsBSmbESLS3nbmRsV J8TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s9pY1UfT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd10si12285171ejc.600.2021.03.22.11.21.10; Mon, 22 Mar 2021 11:21:33 -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=@gmail.com header.s=20161025 header.b=s9pY1UfT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbhCVSTs (ORCPT + 99 others); Mon, 22 Mar 2021 14:19:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbhCVSTQ (ORCPT ); Mon, 22 Mar 2021 14:19:16 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8004AC061574 for ; Mon, 22 Mar 2021 11:19:13 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id jy13so22848086ejc.2 for ; Mon, 22 Mar 2021 11:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3dtk5n06/qQhu6ya837RSEVImQmWnv5XbUrMmc0aG/E=; b=s9pY1UfT+bxHvr42bpqxDHfUnPrPkreIc5+TfeYxz1alPN1FRTe90Sxetz4CCPq9u7 S79KX8sWDHwXtN8LspPaeoe2e/J9mpglVKCmas6ytFqv78Bej0nB8YoOL8BfhUiPcVvv v9Pev7qWVHI1IJqi3/8cGT5S+U3uU3+HdHhoQRFnLJoO5cSBfrLgYAQNPK0/bS/rQUw2 kDD1d5kgdyl83RcUPq7oRtC5hNMfbbFNOCJ+wDLvXYlSsgwi740yegvxcBs0TxeH3vEb xyjaGxaX23d3pweETyEYDUbcFykqsHVPacqy89SgXcbER5YnaUoZ5aXVD5AbPAV6nIy8 hd3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3dtk5n06/qQhu6ya837RSEVImQmWnv5XbUrMmc0aG/E=; b=CVhB/6QNnwB8xLakd+5Yib3DEaiRWye2uk6CdsP82xVimzCqEJz4G7Xq6Wk76xWD1D x82oUmLQhKWo5dE7TUTtaYTOdilSUUzIgtCvOAjwODGE9cDEgWlwIJUSFQ9H1W79j/S6 Wsg4PwbqZzcOvOdlTQWQwa7PwvO4OpI0tTy+pm85QTHNhhKTba1D5vU/7m+R2gBNZ1x5 6/EalClQWhO+DgVNpUZcgdWp0FMZEAAMPR7J47vJx9q6u3w1Xwam+9tgtXVvRIr6WB90 EclgKSY8E4zEsflYEE6bGz3q9sIbwO7wPNLk+Gy2jCTM7BoEdvE1kc/CAiIcJ+9ZCbuJ VxzQ== X-Gm-Message-State: AOAM531Ki311yTaKzlgzMeBTMkKp7qeTcH6PMJj5KptP4FWkyEmtaWyq ZPK0wiuECfNBJFv5tvyEKNc= X-Received: by 2002:a17:906:f0d0:: with SMTP id dk16mr1153250ejb.48.1616437152315; Mon, 22 Mar 2021 11:19:12 -0700 (PDT) Received: from agape.jhs ([151.37.41.34]) by smtp.gmail.com with ESMTPSA id mc10sm9827995ejb.56.2021.03.22.11.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 11:19:11 -0700 (PDT) Date: Mon, 22 Mar 2021 19:19:07 +0100 From: Fabio Aiuto To: Greg KH Cc: joe@perches.com, apw@canonical.com, devel@driverdev.osuosl.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/11] staging: rtl8723bs: remove argument in recv_indicatepkts_pkt_loss_cnt Message-ID: <20210322181906.GA1443@agape.jhs> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 05:11:13PM +0100, Greg KH wrote: > On Mon, Mar 22, 2021 at 03:31:43PM +0100, Fabio Aiuto wrote: > > remove debug_priv argument so function prototype can be > > easily moved away > > > > Signed-off-by: Fabio Aiuto > > --- > > drivers/staging/rtl8723bs/core/rtw_recv.c | 11 ++++++----- > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c > > index 9ef2408ded57..e2a6afed723c 100644 > > --- a/drivers/staging/rtl8723bs/core/rtw_recv.c > > +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c > > @@ -1983,13 +1983,13 @@ int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union rec > > > > } > > > > -void recv_indicatepkts_pkt_loss_cnt(struct debug_priv *pdbgpriv, u64 prev_seq, u64 current_seq); > > -void recv_indicatepkts_pkt_loss_cnt(struct debug_priv *pdbgpriv, u64 prev_seq, u64 current_seq) > > +u64 recv_indicatepkts_pkt_loss_cnt(u64 prev_seq, u64 current_seq); > > But you did not drop the function prototype, why keep it? > > And shouldn't this be static? > > thanks, > > greg k-h I moved it in a header file in the next patch [6/11]. However is better a static function when possible and drop the prototype.