Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4774369rwl; Mon, 10 Apr 2023 17:04:05 -0700 (PDT) X-Google-Smtp-Source: AKy350alRFUpAHVaLrRiskYNKFJ8efIg2EKl6zOX/2/U9UTmeecP4q6bUC6JSyhP7yA0vEEza0h8 X-Received: by 2002:aa7:8bc4:0:b0:62d:b210:8c9d with SMTP id s4-20020aa78bc4000000b0062db2108c9dmr14436941pfd.32.1681171445091; Mon, 10 Apr 2023 17:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681171445; cv=none; d=google.com; s=arc-20160816; b=0wfc9l9sZhZQ8FigXmDJK17CiHypzDiIGojqNEmTfcwfNZwRYGIxbp3z0QtWfqkXjA RCZ18Y7VAlR67jpj3i9e17mg4izJMJkGDlLTMUoplZBwysbTTXy4L5CgnWxdWnFvqgZi tPH3vK3Q/+FlB7/osMyyN4RGWZVv7T4YnpNgIhQqS+l6K2F7nQPW4VRrGqGILAzFOcYO WiuntG58bNGgPhCmFdFUIbFKYLGccP8C7lL8MWfcCXVhJzFKYRwgrXI1COuue9X3g0Cd n4O5FqVgoYhvWrZKOdnCNtC32IFBH3UnXt7M1SoTmH6YsG97rreBqB8M0d70PhBx5KWg RcMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rvroYTKy9XqbyyczrFRvZVe3kBREVZr4JR5MTe5ATgY=; b=h63bYI59M4Ol6lGuvUSXMXcmnjT6zp9uWMJw1FYvG4HmVFnKhJcsusxXYi6qdsaGPD 0p+6mwD+44rEzEm2PsS/ggdVNDQR7XNa1UlLc5OAQZXmCaCh4JTuJFWankw12CEJoMz6 al/IwIqgu1lrztm4KA6uAsv39kWkivbpmnj/3RoZLzw+Wr8wkxAkjdlDyKR/ry2W8byH BnkUZ17vyeaEGWf+vYsNwIu9GG30228dqeGYzoGQnQErv3sg5DNZTwktN5cL5rLclf3V vFy2JV/WAvEGoWWn1xsWO74VaU1Uuwkq2wJgsJMWnihHr4FFZpK9hq4Qt6a+BRxD5bx3 uXWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n3oaUx3W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020aa7958d000000b006376abb0507si2685711pfj.361.2023.04.10.17.03.46; Mon, 10 Apr 2023 17:04:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=n3oaUx3W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230085AbjDJXss (ORCPT + 99 others); Mon, 10 Apr 2023 19:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjDJXsp (ORCPT ); Mon, 10 Apr 2023 19:48:45 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F0F81715; Mon, 10 Apr 2023 16:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681170524; x=1712706524; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HLABFzxIaBKdwMWhvhRoqNf4XliHa9M847b79qETyi0=; b=n3oaUx3W4B5p+hfxHTzGsD62dKB2EcYFNEOQUPEfdhID0YodKSAH4u4f jLSMiEtM39stn4jFcM4H9f2zj1hEgP6x8XNCiv2c2NYFFSmJSj7tHw7SQ BftouZNbh+mXJ+BVkC4z+3xeP3RlBY7WS1ikLDnNWlxG8hcss4UpQuHBU FunXwNBaaav8TO3Fq8biY1EzDD8pNZSJfnptTSKkBPv9dW6co0Zc2sKSD MnlDSHvmLjpuz4F1inlBXx/oWmmxAfF6r+gQSDKO65yPRj8f1ZIdELiNe mfGiDWCgWtplhocoxw376KqENA5vhyvLj48+1jLy2UF5pyhXmNnFwteom A==; X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="332160674" X-IronPort-AV: E=Sophos;i="5.98,335,1673942400"; d="scan'208";a="332160674" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 16:48:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10676"; a="718761257" X-IronPort-AV: E=Sophos;i="5.98,335,1673942400"; d="scan'208";a="718761257" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.212.230.103]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 16:48:43 -0700 Date: Mon, 10 Apr 2023 16:48:41 -0700 From: Alison Schofield To: Angel Alberto Carretero Cc: Steve Longerbeam , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: imx: fix macro style error Message-ID: References: <20230409200135.1033677-1-angelalbertoc.r@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230409200135.1033677-1-angelalbertoc.r@gmail.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 09, 2023 at 10:01:36PM +0200, Angel Alberto Carretero wrote: > Wrap macro in parenthesis to fix checkpatch error. > > Tested it by compiling the driver successfully. > > Signed-off-by: Angel Alberto Carretero > --- Hi Angel, The code change looks fine. Here are a few patch style suggestions: - If you do 'git log --oneline imx-media-utils.c' you'll see that changes in utils file only, seem to have utils in the patch subject prefix. "media: imx: utils:" - Commit message is vague. How about being explicit so anyone persuing those one-liners knows exactly what change was made. "Enclose IMX_BUS_FMTS macro in parentheses" - The commit log 'why' is to conform to the kernel coding style, not to fix a checkpatch error. It is good to say Issue found by checkpatch, but that itself is not the 'why'. Alison > drivers/staging/media/imx/imx-media-utils.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/imx/imx-media-utils.c b/drivers/staging/media/imx/imx-media-utils.c > index 411e907b68eb..eb44c09071de 100644 > --- a/drivers/staging/media/imx/imx-media-utils.c > +++ b/drivers/staging/media/imx/imx-media-utils.c > @@ -7,7 +7,7 @@ > #include > #include "imx-media.h" > > -#define IMX_BUS_FMTS(fmt...) (const u32[]) {fmt, 0} > +#define IMX_BUS_FMTS(fmt...) ((const u32[]) {fmt, 0}) > > /* > * List of supported pixel formats for the subdevs. > -- > 2.40.0 >