Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1156516pxf; Fri, 26 Mar 2021 02:12:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKTFzxB35MQukmSGmv60St1Yq6Qy1QpGY+lDPbD4KAfVWeq7P7QvnfuUIJeysSa8rg6fVN X-Received: by 2002:a17:907:2062:: with SMTP id qp2mr14073852ejb.397.1616749972667; Fri, 26 Mar 2021 02:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616749972; cv=none; d=google.com; s=arc-20160816; b=vGPO3hHA6L7xmz6SDyBf8uuJuu+R1PmLaX4nY90vX5GAAP47dvUCGDAh+1b5EkZQGz DpdtoUrRqjFrXAJ3MfWJz3m+qTi3UOQeuFA9g5L8Pw3dHWTxgff0Fsurb/60zEfl2JVM DykMHv02qgp7Aq6WARV15L2bgbhngVgxcdyvqXxk6aveqVCxCCqb0ESrQBipoyOkf5nH 6RNKBmjt5cO9a/z7/O+uxeD2ebaVqM7JxNj66tiHP9N3hVi04E3s1RTR5Ky/t9YFwuGm yDmDu5O7sVSAsq347pU8V0ozpm2iz2BEMV1ME8u3j/pnbZc+RjFVZOO408IUlZh6rhkY PDpw== 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=LuVUGCrDYwzS4XJl5GG9GlS8NguBAubSl2Epx6ZZHf8=; b=zWrjcuTlzQTGU0FQr2KWHv06F1+uojVFQh6E9eQL/3hXSGtr4+7sL79Gm+t4X7C2jL mLPQbtClU1MOYLOrTDY3mcmygU43RXcRhaQ6n3EY4GYLcOWRIuA+jDkzwohfr7Vy78By taAHFyj53CmrdBcxvntJKT6uYjxLC4WnUTwrdX/HcAIOwzCMs6GS7xxkdS4Ri1hWBnJ/ tUTLcmwUAdppdCpTFWkYGyHUjwQFeBVdzFoUFfqZHX7NIM3zY0C+kGl7TJE20AMcIeTU vHmdRtzmdj0X7OnnnAeNRp2slpnq+KTvGmps501JRSd4x8VvwU/szrG71DkFrnb7Gl7d EPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pmiAGbRS; 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 28si6685263edw.302.2021.03.26.02.12.29; Fri, 26 Mar 2021 02:12:52 -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=pmiAGbRS; 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 S230218AbhCZJKm (ORCPT + 99 others); Fri, 26 Mar 2021 05:10:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbhCZJKB (ORCPT ); Fri, 26 Mar 2021 05:10:01 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EC4C0613AA for ; Fri, 26 Mar 2021 02:10:01 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 12so2571711wmf.5 for ; Fri, 26 Mar 2021 02:10:00 -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=LuVUGCrDYwzS4XJl5GG9GlS8NguBAubSl2Epx6ZZHf8=; b=pmiAGbRSMQbcmi8fiNSSsEWBLqaXAi+gA7rvW+EboM0H6bbmzfRsFSkgZRo/JWBn7M R2EZFn014knD17A+/+oNrG17BMYKHXRChXE2V9kNYQrCVBqj+gXMLvKkFFtzJdrddfCe vW6UjdRw8rQbHAfdKRHoobpQeRaycKsncYjwIwN0CW2jSqCypfkEqvFFiEP9Bwu4CVvy Wadc8mjHeeAlooFKaohllZfm/NZPRG/08eSd6FLfiKZcmRRo3dy7s1Z5Vi2EpuOs64df URklx61g/flWV+nXOwnqPN55LfNuDFqaPgr2byHyKnBS8gF3IBUOuyTSe8FOEKLfk2Gc H3dQ== 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=LuVUGCrDYwzS4XJl5GG9GlS8NguBAubSl2Epx6ZZHf8=; b=i0GzWX5vXEE2JXAgcysgSN+4c6t1RBQ/tUQ97EzeOzSypCmICZrsQ3YgOckGYUj4qZ gKspr18kiI/PW14pozRnDRH/smow/RK3M8+qW3LMDp7AaCdFa/BbLn9hGX93uAGuYaIO O2sKENMyOT7hRg+RKotko+wKWyMAKOenA2jAbIiKws6ioUxtztkWDI9KBxo1Aa06CyuM tX7VcubTERO/wVsBKzjGiMFU6p7e4MbdrF0xc9aVnCBNsMMR5g8QXBT6wzA9j3yKPbNv HP7wSH5oj71db1i2tV9hTYxjKuczh5Cw4SEPw4Ul8UeEZ+5pl/cV3zy2IlSdDvdpV/jc OzLg== X-Gm-Message-State: AOAM530YlykmOHy6OXQZm9MfixQ4EM7NS6JsRLllUaLZp0oruAqf5CA3 L0irqBFYeyb9p9JLqFQaNM8= X-Received: by 2002:a1c:6309:: with SMTP id x9mr11987480wmb.62.1616749799841; Fri, 26 Mar 2021 02:09:59 -0700 (PDT) Received: from agape ([5.171.81.75]) by smtp.gmail.com with ESMTPSA id p17sm9431395wmd.42.2021.03.26.02.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 02:09:59 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 12/15] staging: rtl8723bs: put parentheses on macros with complex values in include/rtw_pwrctrl.h Date: Fri, 26 Mar 2021 10:09:19 +0100 Message-Id: <09367497eed0c43d8e4745c50c2a20c6c23883c2.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 92: FILE: drivers/staging/rtl8723bs/include/rtw_pwrctrl.h:92: +#define LPS_DELAY_TIME 1*HZ /* 1 sec */ -- ERROR: Macros with complex values should be enclosed in parentheses 241: FILE: drivers/staging/rtl8723bs/include/rtw_pwrctrl.h:241: +#define rtw_get_ips_mode_req(pwrctl) \ -- ERROR: Macros with complex values should be enclosed in parentheses 244: FILE: drivers/staging/rtl8723bs/include/rtw_pwrctrl.h:244: +#define rtw_ips_mode_req(pwrctl, ips_mode) \ Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/rtw_pwrctrl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_pwrctrl.h b/drivers/staging/rtl8723bs/include/rtw_pwrctrl.h index cec9fc0cf794..688436cf3610 100644 --- a/drivers/staging/rtl8723bs/include/rtw_pwrctrl.h +++ b/drivers/staging/rtl8723bs/include/rtw_pwrctrl.h @@ -89,7 +89,7 @@ struct reportpwrstate_parm { unsigned short rsvd; }; -#define LPS_DELAY_TIME 1*HZ /* 1 sec */ +#define LPS_DELAY_TIME (1*HZ) /* 1 sec */ #define EXE_PWR_NONE 0x01 #define EXE_PWR_IPS 0x02 @@ -239,10 +239,10 @@ struct pwrctrl_priv { }; #define rtw_get_ips_mode_req(pwrctl) \ - (pwrctl)->ips_mode_req + ((pwrctl)->ips_mode_req) #define rtw_ips_mode_req(pwrctl, ips_mode) \ - (pwrctl)->ips_mode_req = (ips_mode) + ((pwrctl)->ips_mode_req = (ips_mode)) #define RTW_PWR_STATE_CHK_INTERVAL 2000 -- 2.20.1