Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1239394pxf; Fri, 26 Mar 2021 04:11:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlf7eS4EDdNlxGs9YFJcWk7hf1j7flMTudQ1Ny1m5w+4isAGkKTTdUkpXzHRprSDESJ3vT X-Received: by 2002:a05:6402:168c:: with SMTP id a12mr14452882edv.344.1616757099832; Fri, 26 Mar 2021 04:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616757099; cv=none; d=google.com; s=arc-20160816; b=OwEWVDxBTTGWxcAjcYXs9odZTGbskSZntIPoOoFVHbU73SZLc5DxnK2O5UBSiXbP4+ CixayFdkjJPvuAEFPWdZlvVn8luKUQIQH3HD19T6lQrShf0w18Vr438rMjYV+EPKpkRg m9XDEZKZ0noaygjw6B6JlCpinXUZW7d/ZaUBkepjldHiB0lvar2gl6AT8J3jcVCuxFT6 gLA2+VBIzgk3PpSOJgBchoYFCjiRuTa5769z4mHcF38RE/NqJ+fvAKE7+xaslcn/XF90 0D6+txQ5HI2wEBUceTRIZ8+fBp7RoSh8Ql3wREbIWsjOTfGtYCNrgvu/XN9vorwHWIaV iOjA== 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=yIKVLF6KJDERSfAMKhWiBfJ54F8siqVNI6LeYpNYZhk=; b=rR9mAFr1+cWhgltJtKcpaV3KSmxRA2QH6o6H52bv9hv3RR+FceOq2cg57nQpf+nF+s GyojQLHGIisEuU/aBVTL/57CE+eDJjtVkZm4OQHrZy1JqZbYOjhFLwAd0I7H7l37r+G0 ZEZGxZtS9iir+Xu5Tyv7ppJRqePVJYA9mBi6095nVQ8mfHazWbyinww8+q2FAcfofXeD g2Z1Qf/3y/IHd/gra6Pd/VkAZAxnF4Y9O3NV6khYipialfGq7huxTMkXSNFziB5iWSRb 7Y4An6x6t7wjXNCYcdDmmhrQEGSMKcgMCu7I2J5ou+sKQoG+djtEtcRJTHlxbNTYZ6g6 SCAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ttfgHqgf; 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 f24si6367015ejz.234.2021.03.26.04.11.16; Fri, 26 Mar 2021 04:11:39 -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=ttfgHqgf; 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 S229590AbhCZLKS (ORCPT + 99 others); Fri, 26 Mar 2021 07:10:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbhCZLJt (ORCPT ); Fri, 26 Mar 2021 07:09:49 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6410CC0613AA for ; Fri, 26 Mar 2021 04:09:49 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id j9so3511238wrx.12 for ; Fri, 26 Mar 2021 04:09:49 -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=yIKVLF6KJDERSfAMKhWiBfJ54F8siqVNI6LeYpNYZhk=; b=ttfgHqgft3ZxhVqMTdEEweo910a5cM2KeWDBNchl48LIjatmH+rJBh9i8ki9rnZjSw u95ZeRWTD4K/fnwLicD78h75GizNLD4X1Nx3+zLiHq5kbsZg9RczW/zgBDwfamQJj0la mrfXNjke2U1bJNJh5IwSEXcEHKGxn55fSOynaGiXUSsNhwo2C+8iwrazfXadNCP8lbDE 22r56aJQpynyfWcnc9H85J4kLaG8VgPxX1jzr0JI1RW/FodEjVXRT6j20Z82Hg8bMjoZ xlRj/aLlp/S6UtjW8j99v90NjVW+7E+fXtXX+DCE1uB+eBKuM1jwSzKsfRVLnzzxuT2w RAhQ== 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=yIKVLF6KJDERSfAMKhWiBfJ54F8siqVNI6LeYpNYZhk=; b=czsEsNV0PTWnInZMxMvCHHA9B3gqRD7KJbnm2HF3T5nlwy4vKLXDiMOO1HPubUnkS/ zZ7BBsFX4A38kYKt8yl06Vra/MHIhY4HOcZvYH77AfA7E8obvyhpvoRQ1R5Pmr17DfMP sEMWCVhliJGRvrf+siSBrRVwbMtwF3SZa8q0kUDROCvBVqkgX8sQ0Gz2mnZPWHFHYZxs 3HNIxHgRo20DzT37iYGN4yztn9/oy3k0+GslT+HUpBDtcGPt7xt4xizXYcDy8hnr5lYy x2yqnIMbXP0vBXZ+Ezbn0Dr7ubTUsc+sHAMYe+h3OZR2o98EpsaNl+0ltNvCUNleWPaE qWzA== X-Gm-Message-State: AOAM533TyQu2aTEZldnTNlCIB3spwXLWZNrKwlKWtKbzlB8CUq38s1yQ dfGDjciF03sR1J/lgixZTtE= X-Received: by 2002:adf:fa4e:: with SMTP id y14mr14040567wrr.170.1616756988025; Fri, 26 Mar 2021 04:09:48 -0700 (PDT) Received: from agape.jhs ([5.171.81.75]) by smtp.gmail.com with ESMTPSA id q207sm11016886wme.36.2021.03.26.04.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 04:09:47 -0700 (PDT) Date: Fri, 26 Mar 2021 12:09:45 +0100 From: Fabio Aiuto To: Dan Carpenter Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/15] staging: rtl8723bs: put parentheses on macros with complex values in hal/HalBtcOutSrc.h Message-ID: <20210326110944.GC1452@agape.jhs> References: <7c734b6d796b369f6a0d23c76daa344c241691b5.1616748885.git.fabioaiuto83@gmail.com> <20210326095449.GD1717@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326095449.GD1717@kadam> 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 12:54:49PM +0300, Dan Carpenter wrote: > On Fri, Mar 26, 2021 at 10:09:09AM +0100, Fabio Aiuto wrote: > > fix the following checkpatch warning: > > > > ERROR: Macros with complex values should be enclosed in parentheses > > 152: FILE: drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h:152: > > +#define BTC_PRINT(dbgtype, dbgflag, printstr) \ > > no_printk printstr > > -- > > ERROR: Macros with complex values should be enclosed in parentheses > > 153: FILE: drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h:153: > > +#define BTC_PRINT_F(dbgtype, dbgflag, printstr) \ > > no_printk printstr > > -- > > ERROR: Macros with complex values should be enclosed in parentheses > > 154: FILE: drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h:154: > > +#define BTC_PRINT_ADDR(dbgtype, dbgflag, printstr, _Ptr) \ > > no_printk printstr > > > > Signed-off-by: Fabio Aiuto > > --- > > drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h b/drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h > > index 10c021024b24..1926a1f7a7e5 100644 > > --- a/drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h > > +++ b/drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h > > @@ -149,9 +149,9 @@ extern u32 GLBtcDbgType[]; > > } > > > > #else > > -#define BTC_PRINT(dbgtype, dbgflag, printstr) no_printk printstr > > -#define BTC_PRINT_F(dbgtype, dbgflag, printstr) no_printk printstr > > -#define BTC_PRINT_ADDR(dbgtype, dbgflag, printstr, _Ptr) no_printk printstr > > +#define BTC_PRINT(dbgtype, dbgflag, printstr) (no_printk printstr) > > +#define BTC_PRINT_F(dbgtype, dbgflag, printstr) (no_printk printstr) > > +#define BTC_PRINT_ADDR(dbgtype, dbgflag, printstr, _Ptr) (no_printk printstr) > > This makes no sense at all. no_printk is a function. The BTC_PRINT() > macros are super ugly and this only makes it worse. > > regards, > dan carpenter > so I'll just drop the patch in the next v2 thanks, fabio