Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp246266rda; Sat, 21 Oct 2023 06:18:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFa+qWdDYIGYgwVaKlyEI9Cv7wt2q5RvOBUaPlwHC41aQ6Hpe9iKARZ7MA/oqBGqrikrlU+ X-Received: by 2002:a05:6a00:1ad1:b0:68a:4261:ab7f with SMTP id f17-20020a056a001ad100b0068a4261ab7fmr4429312pfv.31.1697894336994; Sat, 21 Oct 2023 06:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697894336; cv=none; d=google.com; s=arc-20160816; b=vcZ8UPixAJTQDffpbdi8+1/WjOYiuAgTprXpn5EwEcXf376T3Xg68IoBS51t872opo +Lyivxtkxms/cY/FNu1jE6Cxf7HgSfU2OF32VrRhwhJaB2No/KtxAi56t25SLS3bJd4q G5bx0IXjSt+t4VSd2cbnnAJ4YBnSuyTEskTs2/sxR9Wg5p/Rrkw39TBGO6joXrOnqKTT b7UBY3yAeXMBE2lcXsPAyDl5d5Xg5EuSD73CPTmsS7pyyOPz0WxJzaPeSacFLuwwfJHJ qky+5ljnGZ2Vftw1fmXjBrDh+jNcAXBayNB7xhQeRh6DIcprzQT0ODpvNdaI075QrKmY cDHw== 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=G5f1f0vQfSjdVi/REtt5j0YQgF8soTdJTFMLk1PEhnc=; fh=FwxtzOmPGiE1KV1mThWd9UTPD08Vnpd2N9kKk4Ltwpo=; b=xFwF52x1rVUUoN3xUd77YU6uby5PzAEDp+I8gVqou5NaREcejNE+b6imYqhhuJnDqs 38Ww6ps6YgPfwM4BW1uiXT+n7QopgOdbYUrSYNbZyEiAxIL+OdibkOTUTsgDmT2Fz1nD Z6hmXnADn8wtIwTTAq2MT7cKeaGYuw8NhauER/VOkFKahblw2C9fGj0CZ6hm6Y7vAjKS LsbzFhAaGCFJcNRaw2s1D/Fca+h3nRJzi4OohSSRJ6VuCm16FGtCVrT7J2zJI/R5cOB5 CB87pwFrZOfNBs7bmXDU5QQQPPflPgAf+6LtgTjselss01ofbgc+o9xw6yhOHRDieWTO skxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ULVlNpNR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y15-20020a056a00190f00b006bebc50b5c0si3729077pfi.46.2023.10.21.06.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 06:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ULVlNpNR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E420380ADC4C; Sat, 21 Oct 2023 06:18:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231386AbjJUNFu (ORCPT + 99 others); Sat, 21 Oct 2023 09:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231162AbjJUNFs (ORCPT ); Sat, 21 Oct 2023 09:05:48 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33DE9D67 for ; Sat, 21 Oct 2023 06:05:41 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5aa481d53e5so1037878a12.1 for ; Sat, 21 Oct 2023 06:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697893540; x=1698498340; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=G5f1f0vQfSjdVi/REtt5j0YQgF8soTdJTFMLk1PEhnc=; b=ULVlNpNRXtYfnzcqDaNCStHMVOUjItdbiSDG8nxhcKE14iQycXLHGySneOVMxMCRdt v613SHVVDFyR/J2/Eu1gfuzwI7bHfDH/lzXkfEDVEphyKFI8peK5Bi5vsYL9dBpxdkzp PVgjPVwSpzxHImeD2qWSYTXjELQ0bIIgbMCpzRZECc6sOiEhzN/aqtFfefjaYA6dJBOK TWGa6HTwlG7+Gnhzlk2aPfS0iS67MttUCpSv9ZymeLXH7o27xXgkoCeZZBwiB5nt+ofk ytx3uUehKSivTjXSkDm8zSogFXZbzwu0c+w0QuXleg8utu6MwUxNLN69K46+VFYOnZeY DMBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697893540; x=1698498340; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=G5f1f0vQfSjdVi/REtt5j0YQgF8soTdJTFMLk1PEhnc=; b=Jkz1ewrMFip7794Yixh/QpGTVyLOQhZ8Dz4RQ6XROUUZEriEGh9O/2UV7uJNd1QJ2a bQ7veioHZH8vbNzyECVfzbm1cGT1Qe158vj4Z3LMOzH21VfsX7LbKaBQ7vZpNwJj1MW7 UHMBQFGpg2rQZYiBst2QAf1ksJOhr0VeXP9mc4OZP6htJ8h+aKgp3RRi1eNLTYQUu9nk JomiZ6q7OWWJCAdurovG9i2gbD4ttmn7MF718iykYiraPRZCufAR8mjzlGErV/9bF5Ar D9Tzc8E4xPYIiKGNtPkyyIRlzRQccZEwo3jZSF2eu01N50zAEzqFBDZbT0HTvzp73f0R hqUw== X-Gm-Message-State: AOJu0YwD5Eid0RQif2NUDQ5M/rRo0Evbj74wux1Kif/Vrao2iN+cv1Qg v0nAbMz7Ihc5Sg4V1XaJyss= X-Received: by 2002:a17:903:2012:b0:1c5:bea4:8537 with SMTP id s18-20020a170903201200b001c5bea48537mr2867431pla.15.1697893540382; Sat, 21 Oct 2023 06:05:40 -0700 (PDT) Received: from ubuntu ([122.167.9.184]) by smtp.gmail.com with ESMTPSA id j6-20020a170902da8600b001c9c8d761a3sm3130187plx.131.2023.10.21.06.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 06:05:40 -0700 (PDT) Date: Sat, 21 Oct 2023 06:05:35 -0700 From: Nandha Kumar Singaram To: Alex Elder Cc: Johan Hovold , Alex Elder , Greg Kroah-Hartman , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: Alignment should match open parenthesis Message-ID: <20231021130535.GA12776@ubuntu> References: <20231019213949.GA2922@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 21 Oct 2023 06:18:52 -0700 (PDT) On Thu, Oct 19, 2023 at 07:15:37PM -0500, Alex Elder wrote: > On 10/19/23 4:39 PM, Nandha Kumar Singaram wrote: > > Adhere to linux coding style. Reported by checkpatch.pl: > > CHECK: Alignment should match open parenthesis > > Sometimes checkpatch.pl warns about things that are not > really that important. One class of this type of issue > is white space errors. > > Yes, consistency is good, but the kernel simply doesn't > have universally consistent conventions, and I doubt > it ever will. There might be times where a source file > consistently follows a white space convention that > differs from what checkpatch wants. Suggesting a > wholesale change to that file to "fix" that typically > wouldn't be welcome. > > Unfortunately without some experience it's hard to know > which checkpatch warnings can be safely ignored. I would > place white space warnings at a lower priority for fixing > than some others. For example, this is also a pretty > trivial warning: > CHECK: Macro argument 'gcam' may be better as '(gcam)' to avoid precedence > issues > And it is most likely not a problem in this case, but fixing > this type of warning is probably more constructive than > just adjusting white space. > > I have no objection to your patch, and it's a fine way to > get some experience with the patch process, but I don't > think this particular change is necessary. > > -Alex > > > Signed-off-by: Nandha Kumar Singaram > > --- > > drivers/staging/greybus/camera.c | 14 +++++++------- > > 1 file changed, 7 insertions(+), 7 deletions(-) > > > > diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c > > index cdbb42cd413b..405c8e78aa72 100644 > > --- a/drivers/staging/greybus/camera.c > > +++ b/drivers/staging/greybus/camera.c > > @@ -220,7 +220,7 @@ static int gb_camera_operation_sync_flags(struct gb_connection *connection, > > } > > static int gb_camera_get_max_pkt_size(struct gb_camera *gcam, > > - struct gb_camera_configure_streams_response *resp) > > + struct gb_camera_configure_streams_response *resp) > > { > > unsigned int max_pkt_size = 0; > > unsigned int i; > > @@ -267,8 +267,7 @@ static int gb_camera_get_max_pkt_size(struct gb_camera *gcam, > > * Validate the stream configuration response verifying padding is correctly > > * set and the returned number of streams is supported > > */ > > -static const int gb_camera_configure_streams_validate_response( > > - struct gb_camera *gcam, > > +static const int gb_camera_configure_streams_validate_response(struct gb_camera *gcam, > > struct gb_camera_configure_streams_response *resp, > > unsigned int nstreams) > > { > > @@ -378,8 +377,8 @@ struct ap_csi_config_request { > > #define GB_CAMERA_CSI_CLK_FREQ_MARGIN 150000000U > > static int gb_camera_setup_data_connection(struct gb_camera *gcam, > > - struct gb_camera_configure_streams_response *resp, > > - struct gb_camera_csi_params *csi_params) > > + struct gb_camera_configure_streams_response *resp, > > + struct gb_camera_csi_params *csi_params) > > { > > struct ap_csi_config_request csi_cfg; > > struct gb_connection *conn; > > @@ -783,8 +782,9 @@ static ssize_t gb_camera_op_capabilities(void *priv, char *data, size_t len) > > } > > static int gb_camera_op_configure_streams(void *priv, unsigned int *nstreams, > > - unsigned int *flags, struct gb_camera_stream *streams, > > - struct gb_camera_csi_params *csi_params) > > + unsigned int *flags, > > + struct gb_camera_stream *streams, > > + struct gb_camera_csi_params *csi_params) > > { > > struct gb_camera *gcam = priv; > > struct gb_camera_stream_config *gb_streams; > Thanks Alex for the review and feedback. Regards, Nandha Kumar