Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1774940rwd; Sun, 28 May 2023 02:13:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VxD7iW1xX9lSx2dr6zqtbzrOnk/FHa97kevHzr02TpLDyuB530mrZPox6xIU8yGrQEPT+ X-Received: by 2002:a05:6a20:1591:b0:ef:205f:8184 with SMTP id h17-20020a056a20159100b000ef205f8184mr7088216pzj.13.1685265223025; Sun, 28 May 2023 02:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685265223; cv=none; d=google.com; s=arc-20160816; b=hqJJ7vbfTFzAEEG+FM/BdcC1SVqbh5hoKsfVnoR3Q9LwK6hGy19jTc5eg1qFbz4Ysb X0STElDcw6G9VJ0n4XYKJC8rFFCDOhJlUqDYlykMFTHnRQAIOWvr+9liuNKdRNrGXhXC 9947sm6ypqUcndyEhb468ucUU3hxmnpZEX7o7PsxSaHIw+xktLhdCNil9mmOh6da246Z JLJEDEZxvsU5vWVOLhNQ5vIwUE51QQDm8fw/CiOyHKeFIdtC7kTJu11Ao6bX9WQi44gA HH67/5VLB0l8HBoIhU/8y5DC+E+8svBekAqN1hWuOSoaDDjCUCT/ApuHe5eJLc01BjbO w6Hw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ljX6BvOvPrixIdlkAVIdiNdIEv44CgLZj+TUeCHdJ5I=; b=I4V+TU7VmGDYm+uuKXDaRhf84G/+jML7DryNL6MNC92s4BSAlYt6hQYnDirvFlELC6 EBUwZxsaVDqkTOI36mkRcAZOG2jdj+uOSRY9wURvSrLiNzKEl8oEteba3I1tjTxBW5ms wPYf/fmhgQAorEQkkc1rb4NOhrNo3PG9htF8jCJAu+mKBNiUSDRT4JOcCxD8/41VyV7F Bcp+bhmk0Bp36kRTMsxYUs9mEwhbQtrBcl+03s9HhKKmAe7zUppRfd3SsdimKr+uueHZ DX8pOqYNJdYH7v4LIQTJxhNqUH4/tkpTGGI+K2rbFeMKUGNt6jXjvt+j7yWlCRqz1HAt rd5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="r/34xDGL"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x17-20020a656ab1000000b005348b4f79f1si3262897pgu.345.2023.05.28.02.13.26; Sun, 28 May 2023 02:13:42 -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=@linuxfoundation.org header.s=korg header.b="r/34xDGL"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbjE1I6A (ORCPT + 99 others); Sun, 28 May 2023 04:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjE1I55 (ORCPT ); Sun, 28 May 2023 04:57:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA204C3 for ; Sun, 28 May 2023 01:57:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 51CC660EBC for ; Sun, 28 May 2023 08:57:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2902BC433D2; Sun, 28 May 2023 08:57:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685264275; bh=+Z8b5BGxmEusB3RqdWRSJeINY+2EbMtiB0r09qz52HI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r/34xDGLGn65sBIfi+1y4AXv1uYX26pIVTLcReKJ3U5z9nbymnwaMHXMaG5VvhGlA khsIUFRt3AGRQACTdVjnHgb3ntaNUyanG6ZRkvZqNa0qseGYvd18QI5KIwQNcQT0b9 5MNObIjKwJARX5CF91LzzgCasEXZpjXQCSEkRW6I= Date: Sun, 28 May 2023 09:57:52 +0100 From: Greg Kroah-Hartman To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Prathu Baronia , "Fabio M. De Francesco" , Khadija Kamran , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, dan.carpenter@linaro.org, error27@gmail.com, lkp@intel.com, oe-kbuild-all@lists.linux.dev, oe-kbuild@lists.linux.dev Subject: Re: [PATCH v4 3/3] axis-fifo: cleanup space issues with fops struct Message-ID: <2023052808-predefine-thrive-d84a@gregkh> References: <20230527115101.47569-1-prathubaronia2011@gmail.com> <20230527115101.47569-3-prathubaronia2011@gmail.com> <20230527223111.jidik3ffcsxdkenb@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230527223111.jidik3ffcsxdkenb@pengutronix.de> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, May 28, 2023 at 12:31:11AM +0200, Uwe Kleine-K?nig wrote: > Hello, > > On Sat, May 27, 2023 at 05:21:00PM +0530, Prathu Baronia wrote: > > Add required spaces for proper formatting of fops members for better > > readability. > > > > Signed-off-by: Prathu Baronia > > --- > > drivers/staging/axis-fifo/axis-fifo.c | 8 ++++---- > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c > > index d71bdc6dd961..59e962467a3d 100644 > > --- a/drivers/staging/axis-fifo/axis-fifo.c > > +++ b/drivers/staging/axis-fifo/axis-fifo.c > > @@ -716,11 +716,11 @@ static int axis_fifo_close(struct inode *inod, struct file *f) > > } > > > > static const struct file_operations fops = { > > - .owner = THIS_MODULE, > > - .open = axis_fifo_open, > > + .owner = THIS_MODULE, > > + .open = axis_fifo_open, > > .release = axis_fifo_close, > > - .read = axis_fifo_read, > > - .write = axis_fifo_write > > + .read = axis_fifo_read, > > + .write = axis_fifo_write > > Note this is only subjectively better. IMHO with just a single space > this is perfectly readable. Aligning the = might look nice, but it's > also annoying at times. When you add another member (e.g. > .iterate_shared) you either add a line that doesn't match all others, or > you have to touch all other lines of that struct which (objectively?) > hurts readability of that patch. Also for generated patches this kind of > alignment yields extra work. (See for example > https://lore.kernel.org/lkml/20230525205840.734432-1-u.kleine-koenig@pengutronix.de/ > which required semi-manual fixup to keep the alignment after coccinelle > generated the patch.) > > If you still think this is a good idea, I'd ask you to stick to one > style for the whole file. e.g. axis_fifo_driver uses inconsistent > and different indention. I agree, there is no "requirement" that these fields are aligned at all, so I would stick to the real fixes that are needed for this code to be able to be moved out of staging instead. thanks, greg k-h