Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1384562pxf; Fri, 26 Mar 2021 06:59:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP+6MlpDumULOSIHlJcKLlnsh/sahb6w6Ou0MBDOru+GdaSvvdE7RB/WWvhKvCTfst1Z2w X-Received: by 2002:a17:906:489:: with SMTP id f9mr15045543eja.428.1616767171132; Fri, 26 Mar 2021 06:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616767171; cv=none; d=google.com; s=arc-20160816; b=oigZrLX98wMfFCVPU25EI8oOIfwsqa622yRfyMdPPE06JzFzQKxxV5iVKbv0jSmKLy zKfWyjillkNPGEei3fIdeCnBkPGcOBujFMogZJ1bHnvlf8fRpMSMXVHuCRSQUH+QT14X NfXE3EzNTIbFXdBtogMv+QHOzMNNy7NgNTslHxDw1H81YSZ096NCtBYw9/YEse5wyXS9 n9DXgwOtYNc8kikg0/7zPhL/eHDMNZ/qPpM/dU15Yjf2EXbQVi1ZgvBycotw28KoMzKu qdspOzEhZrj0/gD2cKUMTZUkVVRz0ovIntxpntXB66DEOWXgQk8BVQ7OL4D9piQBiMtl k2bQ== 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=aqH3oaZeAGr404pxyOo2DTDa7+fuxAZlONQ6s8AyNrU=; b=UAT6SX075KdbCplIVbnCJMEQXFZDFaJ7eiR/H3zqG1GSndUF1AbYLxXOrFvgCOFnC9 /2WJWBraVkpwYaZ6nzJWRZrH5uXNt+cjO/Vc2efL89sh7BFIPzX+ZFzcUBjmgoandZhP 2Csmgq7aNYM4zydnCUz5yz+OfCGvzTE34B1cGGTn7r/a21iXYt12zSEw3mEoN191gU6Q 6ZZcXIZ1552p9YAiVjwmCxhwdw92/bmQN91JZqTxU1eB4/RD8RVWFyBbOdkkYZh0kNbY z5ZS2cd4arAKCExlwyMF6C5mCH4HhFawbeclwtaE2Y9cNk03Wo+VsCAXcvPtWbeAM+MO +IDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jb8daXRr; 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 go37si7106716ejc.406.2021.03.26.06.59.08; Fri, 26 Mar 2021 06:59:31 -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=jb8daXRr; 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 S229995AbhCZN5j (ORCPT + 99 others); Fri, 26 Mar 2021 09:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbhCZN5J (ORCPT ); Fri, 26 Mar 2021 09:57:09 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8002C0613AA for ; Fri, 26 Mar 2021 06:57:05 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id x13so5721816wrs.9 for ; Fri, 26 Mar 2021 06:57:05 -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=aqH3oaZeAGr404pxyOo2DTDa7+fuxAZlONQ6s8AyNrU=; b=jb8daXRrGteUJsTZAc0qDqWV/6S8DaVROs7HTnHxyTwCdp6O80FpNkY/ULTMQlkrQd ZypW6xT8b0oIw7K9RNfxGUz9YMjjrAeTpQv9xYbTf+Re8VGUK3zVkdDJiSmi8qKlr1/0 aV7QXN7N14Jky2+0dmtg/LgrMfABWWSn90FHvNqLrp6teCeZM1Um3UMMh1UupFW3Ntrl S7jBslgLlTO67QY+tF8n29Sfu2NOSDQwz202Y9gusCcgkmwYHoqAYvuIYqnAYpDA+sxn YQD9QPUzfQ37tYOE87vw8llYP2tjwVSE7vYyNw1pad346bDvR0+fK/SevDDOPhrrky6I xiqg== 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=aqH3oaZeAGr404pxyOo2DTDa7+fuxAZlONQ6s8AyNrU=; b=rpNZ6C5O8NtaBf3J2oN983tC++OerTQklaiXSFsE9xTxmYlu+YfWSwZ60gk2hmu/pS QG7yeq+g5JGMJRRmhU2Yqmj51Kbo97Y64MzKm7N4nWcvy8qC/Ye78yzVHEIqQDEMneVH 5xlgCFAsPz0N0X49X9vOtWwEZTzv8xkQzy3EQmOPZ2l0EKpOdgxeagu/e72PXOwhoWkI nFsaLni8/nzrEYeK4I9x6JVcM0SCfR7VXLm7zrfVdjMXpi02qEGxLJl2bfp//MkSfPbe Z4Hc8ZmDRr2SKjcg7Irfi03RKW9C943ChpmvtgHFumsTvypxZVR8Ft0uz1zagMvkDYqg fA9A== X-Gm-Message-State: AOAM532KkRgOuxXfo5VP52csLYvuIByt+jB+m9jkxCWunmUt01USwVkK fHzHKZLYabYCa6I22d0Xng8= X-Received: by 2002:a5d:4ac7:: with SMTP id y7mr14838952wrs.395.1616767024460; Fri, 26 Mar 2021 06:57:04 -0700 (PDT) Received: from agape.jhs ([5.171.80.141]) by smtp.gmail.com with ESMTPSA id q4sm10868910wma.20.2021.03.26.06.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 06:57:04 -0700 (PDT) Date: Fri, 26 Mar 2021 14:57:01 +0100 From: Fabio Aiuto To: David Laight Cc: gregkh@linuxfoundation.org, dan.carpenter@oracle.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/15] staging: rtl8723bs: put parentheses on macros with complex values in include/sta_info.h Message-ID: <20210326135700.GA1952@agape.jhs> References: <24e684c1eff8911dacff1b61957ce25bafc46631.1616748885.git.fabioaiuto83@gmail.com> <0466586ada4d4804bca4e84aa5908c01@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0466586ada4d4804bca4e84aa5908c01@AcuMS.aculab.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 01:39:24PM +0000, David Laight wrote: > From: Fabio Aiuto > > Sent: 26 March 2021 09:09 > > > > fix the following checkpatch warnings: > > > > ERROR: Macros with complex values should be enclosed in parentheses > > 284: FILE: drivers/staging/rtl8723bs/include/sta_info.h:284: > > +#define STA_RX_PKTS_ARG(sta) \ > > -- > > ERROR: Macros with complex values should be enclosed in parentheses > > 289: FILE: drivers/staging/rtl8723bs/include/sta_info.h:289: > > +#define STA_LAST_RX_PKTS_ARG(sta) \ > > -- > > ERROR: Macros with complex values should be enclosed in parentheses > > 294: FILE: drivers/staging/rtl8723bs/include/sta_info.h:294: > > +#define STA_RX_PKTS_DIFF_ARG(sta) \ > > > > Signed-off-by: Fabio Aiuto > > --- > > drivers/staging/rtl8723bs/include/sta_info.h | 12 ++++++------ > > 1 file changed, 6 insertions(+), 6 deletions(-) > > > > diff --git a/drivers/staging/rtl8723bs/include/sta_info.h > > b/drivers/staging/rtl8723bs/include/sta_info.h > > index abde3e3df988..1cdf93ec3b66 100644 > > --- a/drivers/staging/rtl8723bs/include/sta_info.h > > +++ b/drivers/staging/rtl8723bs/include/sta_info.h > > @@ -282,19 +282,19 @@ struct sta_info { > > } while (0) > > > > #define STA_RX_PKTS_ARG(sta) \ > > - sta->sta_stats.rx_mgnt_pkts \ > > + (sta->sta_stats.rx_mgnt_pkts \ > > , sta->sta_stats.rx_ctrl_pkts \ > > - , sta->sta_stats.rx_data_pkts > > + , sta->sta_stats.rx_data_pkts) > > That doesn't look right at all. > You've changed what is (probably) a list of arguments to a function > into a comma operator list. > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales) > ops, you're right David, thank you and sorry to all for noise. fabio