Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1158116pxf; Fri, 26 Mar 2021 02:15:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP0gZA8U41bprot6u/dZdy05vegJRKZTnrXQzrW8fzX7Kwh1ELVRapXP4XTrUKTHHzVCps X-Received: by 2002:a17:906:71d3:: with SMTP id i19mr14493846ejk.347.1616750110794; Fri, 26 Mar 2021 02:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616750110; cv=none; d=google.com; s=arc-20160816; b=Rt9JKs1qvFoSpsswWRWQEALpN3bdLP+cexc4oBcTqLX2ASyogKI6v5eZB05XIBU0DL vscACMHnXvGnvdtH61sjW6KCb7sEvgTWmpTeNxXUpv8O+nNnq1OH5ldVxeMvvzo+NQ1W pX6ZSDng4KsM/LR3J0RbWmFXPpx0z2EXx4R/NpUpLOpB68wxLUnf1AnmKfRjt7/JMqvF BBlAYHW925onrfog+NQIpumlPrOfjgt9stpCXSfRfBL7vZ1jq8ZKnhumPxRrV4JQe0aT eKZRvtjOSU6Vmi85USGPcrqWGWBER0Lv3OO72akLxZtOG74OiZrRWhGMWav+rYnJblXP Ufvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NTRDjOB0Z/XWkk3yB0atpiz7nFAoEAEsKk8b97HqiF4=; b=li0ytXiqWCf4akrjEtp3jl1e1PfkuNRs7i0XVd7CoSI933BqI2VVQ/1nx4FsMHT4Vq 2n/QEvFOLSqtqntt5gH/wJSHhL3TiNVjG9tcnV881UP1ZVCvgHm8I0SjO+YHtvJxMX49 uwUeuPCCWx/YQV2iiBVhw9nTbZ7vbjCAmEY8XQzyjWAoSIsfpTvBisxAA7/KygHgIgMb JV+FqOHsrWyhBkjoXfX6mj84t+04CFiAP7Lj5qmmTmfdBMxKjHuJh7Wd85W5/VxVjm5O 0/9cfHMrd8wusL3TF3SR91PgjctjTZcC6Tp/SBqyI07n0duElu8B0TbST6ihH3tZdRnA emwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bAVfC9sm; 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 cd22si6175100ejb.384.2021.03.26.02.14.47; Fri, 26 Mar 2021 02:15:10 -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=bAVfC9sm; 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 S230059AbhCZJKq (ORCPT + 99 others); Fri, 26 Mar 2021 05:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbhCZJKE (ORCPT ); Fri, 26 Mar 2021 05:10:04 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3602EC0613AA for ; Fri, 26 Mar 2021 02:10:04 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id n11-20020a05600c4f8bb029010e5cf86347so5551792wmq.1 for ; Fri, 26 Mar 2021 02:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NTRDjOB0Z/XWkk3yB0atpiz7nFAoEAEsKk8b97HqiF4=; b=bAVfC9smoc/GoiPdohSLl1LGwUjJWSKELqk5eIpnhC/OaNb8662/YKOZUujOWa8h7Y bPd3lXPh73b/E7DYess+eeUQ59THsw+fBJqLXGCBFy2fd8TwaTtGvihCFm4sJ/61wSdp xdj6pOwspCqUEb3rRSBc3vmHED/3B6HdFhpz98KVCdCqid1mMD1OZC5lqvbl9uEqwhH/ giDib/QOJzvo+x4E6D2agtIRzjflQqrDA2UTQ3xNavS9kUDs803JVXzut4FFsAfCvdiC fIKfQ5+yf31knWE9k56avQKmTOchgWaqE4ENmCgGH0wsTfp7D8NXxYrP9GmtnfWyN43l IM0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NTRDjOB0Z/XWkk3yB0atpiz7nFAoEAEsKk8b97HqiF4=; b=pocZhIckDX73OVF6kyvQuI4qox/8Ib8ymF7ghyOgy3JwB2nrC6eGl0zWlH9l3qp1ui ijyxhOOGahkss4tCIowQk4Qk5K+Sgo7UgSdfJCRw+u8FrWH+e3mORUQkKY5UjrBw7CS8 XaCMs5qIykKnLV631V4cPkOlFgQN9WWO74VVWNXvfDgTIttc44YFMVlu64az940sYY4Y 64G91b806k7jDRtuOju6INmUa8/eBUZhv3FIyY4eJP2dMU/gTu22Zxey6NZKAxq26HXD ZE204HutLgWoqT8kM3ImeJVlov6vrUJae9BmHUVA25RfKccTUwxPxGv++4wWgToHZuYN cgzw== X-Gm-Message-State: AOAM5303NnuhIy/dS0V/PPIE4/tK5PoKlaDaf2OikssMYfEvZR8yiSqT UWqmDnKZpFo+yQ4E5hBx8yI= X-Received: by 2002:a7b:c3cd:: with SMTP id t13mr11862633wmj.109.1616749802846; Fri, 26 Mar 2021 02:10:02 -0700 (PDT) Received: from agape ([5.171.81.75]) by smtp.gmail.com with ESMTPSA id v3sm10014726wmj.25.2021.03.26.02.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 02:10:02 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 14/15] staging: rtl8723bs: put parentheses on macros with complex values in include/sta_info.h Date: Fri, 26 Mar 2021 10:09:21 +0100 Message-Id: <24e684c1eff8911dacff1b61957ce25bafc46631.1616748885.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) #define STA_LAST_RX_PKTS_ARG(sta) \ - sta->sta_stats.last_rx_mgnt_pkts \ + (sta->sta_stats.last_rx_mgnt_pkts \ , sta->sta_stats.last_rx_ctrl_pkts \ - , sta->sta_stats.last_rx_data_pkts + , sta->sta_stats.last_rx_data_pkts) #define STA_RX_PKTS_DIFF_ARG(sta) \ - sta->sta_stats.rx_mgnt_pkts - sta->sta_stats.last_rx_mgnt_pkts \ + (sta->sta_stats.rx_mgnt_pkts - sta->sta_stats.last_rx_mgnt_pkts \ , sta->sta_stats.rx_ctrl_pkts - sta->sta_stats.last_rx_ctrl_pkts \ - , sta->sta_stats.rx_data_pkts - sta->sta_stats.last_rx_data_pkts + , sta->sta_stats.rx_data_pkts - sta->sta_stats.last_rx_data_pkts) #define STA_PKTS_FMT "(m:%llu, c:%llu, d:%llu)" -- 2.20.1