Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3098401pxu; Tue, 8 Dec 2020 03:36:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFMins/lfYrqn4u5q0kRbFY6Kkzy8cFKkkboM5TMq3NP0fonEFb/SoJthwoMDcWTLlq7Ga X-Received: by 2002:a17:906:d8dc:: with SMTP id re28mr23160567ejb.168.1607427391746; Tue, 08 Dec 2020 03:36:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607427391; cv=none; d=google.com; s=arc-20160816; b=SohU2+RVT86QrYD7tXC7Z0PT8oPxC5clnhnGQzeJS/S8CTIVsdHq0j4HVSXZB9cWLB SVfdkHym67U4N1cX1Ya6tAxR2lj5K26vJ91eJGuzI9+nto/lB1EYkwsO/xh9SKdvDfTX wPJlusIvm88Xsu8LMA4DNEs2djTwms6wEeooSCQV/gv6sQE9nLv7quC2N3W80zWSDnnc 7w/OxeVcGiYUscg/ua9UvlXfT6wNNfczrGWaBQgPhX6KYNyCGqP713Okskjchq1ee6Pm LLaJsEEy9pOhkmNEJpHGkCfYA2tn5DzEiybHJ1ZkOXtp6JQlSLW/5Nzzj9GLCiqDZCoK ZJMQ== 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=n9Vzzz9JyUSKWqhgwt+EcBwNm7sdSMdz33I19pCtH/8=; b=IqCMxyXuMM23dW0Uv+w/LP/z+CE+/oRqbmqSBvVo9tZ8ncjpGxt5IVQh2zmWGIRF23 DJ2VCoGtmeS34yVrBM9YqTGNV7EB0anm0u8lFagNyX1BHg+aoF1DZTneoSRaftpVcw7s 9dCUERiLZ3mv516tkVYrZ6CZJ+Juf6jmoL8PoHb4W8Cxvs43SzUZWJhJymP4J4qMpyIj 1CWZCgbYKyoO/cptQbPE698g+7JRznk0iGg4zPj4x5ggO6R3uJ6UUNs3DYiNEN+TPMYx 8+zTTAHsgeUMjuSUonKItew1jCtzZ+bG6/YdkKLJgL888faB1faIAuzCwNrKV6FdwOhx vAFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=t4cCHBz9; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq18si5640959ejb.693.2020.12.08.03.36.07; Tue, 08 Dec 2020 03:36:31 -0800 (PST) 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=@oracle.com header.s=corp-2020-01-29 header.b=t4cCHBz9; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729160AbgLHLcQ (ORCPT + 99 others); Tue, 8 Dec 2020 06:32:16 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:34462 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729031AbgLHLcQ (ORCPT ); Tue, 8 Dec 2020 06:32:16 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B8BU1e6148438; Tue, 8 Dec 2020 11:31:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=n9Vzzz9JyUSKWqhgwt+EcBwNm7sdSMdz33I19pCtH/8=; b=t4cCHBz9eHE/WDlGePsNoEnPl5t+XFViu5hyoUA3zHnVuFOesb01E44hHPoW1MIf+8Xh xKMZ7oWhffbC/mlj8aZC5ZaQn/EwY1sntTRTz1TylvdxZz8VkEscXJwr6ydhrBQZPtDS IwIq+2zJMk/BSHzpU31RrYQtGxaeIclVu3QZSbTiV323glTyQsI6fdsjkYRmteyojztm CGekIinEdrIhhdO3osV/YbD0IpxJZ5rQymdKhXUH6mMLVtDxgeZXVS/Fhymvi3cQmKEo xZ5C8+i27K9S2i0ybr0I1KcjXIF3zFQdvC2Yg6Svru/ZhxMR6rXcE4icUjN1hOT6FRMI 8Q== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 35825m2ah3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 08 Dec 2020 11:31:12 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B8BUe94104196; Tue, 8 Dec 2020 11:31:11 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 358kysr2nj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 08 Dec 2020 11:31:11 +0000 Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0B8BV1oC016947; Tue, 8 Dec 2020 11:31:01 GMT Received: from kadam (/102.36.221.92) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 08 Dec 2020 03:31:01 -0800 Date: Tue, 8 Dec 2020 14:30:53 +0300 From: Dan Carpenter To: Philipp Gerlesberger Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@i4.cs.fau.de, gregkh@linuxfoundation.org, ij72uhux@stud.informatik.uni-erlangen.de, sakari.ailus@linux.intel.com, mchehab@kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH 06/12] media: atomisp: Add parentheses Message-ID: <20201208113053.GB2767@kadam> References: <20201207192638.15219-1-Philipp.Gerlesberger@fau.de> <20201207192638.15219-7-Philipp.Gerlesberger@fau.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201207192638.15219-7-Philipp.Gerlesberger@fau.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9828 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 mlxscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080073 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9828 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 clxscore=1015 priorityscore=1501 mlxscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080073 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 08:26:33PM +0100, Philipp Gerlesberger wrote: > ERROR:COMPLEX_MACRO: Macros with complex values should be > enclosed in parentheses > > Co-developed-by: Andrey Khlopkov > Signed-off-by: Andrey Khlopkov > Signed-off-by: Philipp Gerlesberger > --- > .../media/atomisp/pci/runtime/rmgr/interface/ia_css_rmgr.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/media/atomisp/pci/runtime/rmgr/interface/ia_css_rmgr.h b/drivers/staging/media/atomisp/pci/runtime/rmgr/interface/ia_css_rmgr.h > index 9cd3d92b34c9..2c02dd1cf27a 100644 > --- a/drivers/staging/media/atomisp/pci/runtime/rmgr/interface/ia_css_rmgr.h > +++ b/drivers/staging/media/atomisp/pci/runtime/rmgr/interface/ia_css_rmgr.h > @@ -22,8 +22,8 @@ > #define STORAGE_CLASS_RMGR_H extern > #define STORAGE_CLASS_RMGR_C > #else /* __INLINE_RMGR__ */ > -#define STORAGE_CLASS_RMGR_H static inline > -#define STORAGE_CLASS_RMGR_C static inline > +#define STORAGE_CLASS_RMGR_H (static inline) > +#define STORAGE_CLASS_RMGR_C (static inline) This will break the build. You should just remove these defines. They don't make any sort of sense. The programmer should know what things need to be static and what not. Generally leave "inline" out, and let the compiler decide. If you have a legit reason to think you are smarter than the compiler (benchmarking data) then probably __always_inline is more appropriate. regards, dan carpenter