Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp82002rdb; Mon, 14 Aug 2023 10:04:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkgrs8zUdyG73jyQtiEQc24TmmyU1jjJuNsWCfsk+3+rpMB3Un7CI3ckhN2yd7+to+CtES X-Received: by 2002:a17:907:7859:b0:994:4e9c:30c6 with SMTP id lb25-20020a170907785900b009944e9c30c6mr7880094ejc.57.1692032685028; Mon, 14 Aug 2023 10:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692032685; cv=none; d=google.com; s=arc-20160816; b=wRveDo9WxuMIQQGGzWKrd8k+u7WSGOyd5pbFc+g/WCVBuHMl7Ugh7TYFB1dYEdR8Ht ionaszDYrswW4BYoRrCIGxl5CTsDhuBL2DfKLGhCAjBonBYK8TExlefCz5wR+EQe1WjL t1GgTBrtDw9NKjuR+m6uMgtZfzzSphHR6VzSzrtLtxd7MjNhjf4PosejeuO0WHf4LRa7 VHo2u+hUL4CXKAIrg8Bfx0sMiZmH9USFQMI3YtHLVGKK/a96XvEEi2tZ6FKRDKlxVNvr ytvNIv6MnvcVNkGj9bvMm8iyrF5BFk0drMfmJrOEkqPGiKggSGFHQTRkbfmyNOxjvUwu kO0w== 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=PQUYAWAb1k9Z/YmXHKlOUY17GrFAyEmuzFZMJMKUnBY=; fh=am7PL/OkltPhRBlSqiRNdvZyQXhf053wUWF7t3kZnH8=; b=wm4lHL3KdeOvNeq4Crof/4EliJV8HkD6y/wEJPqWqAD+I7BiZSbm3SAo5cjM++9agQ zZcSz8sPMzwoJRQt5jTmCFbU0sV6bMG0LpvgI0CMCjydbuX0N+qlhFln4aJYJPg/PAo6 PJTgD3tOoqtKWbqe/khoFFDiq7FHt+n3E3huFyyk0zkM2fvha3UtvXtHNj5u9t+G9SY7 POkzORoleiQZ0t5SBfKol34QI+y2xvReqFoZInCAi7YNAWpujdZlwgtHpMdU11jKOjb4 KuHgPkVTOjfQFpLdkgpkae7Iihov9JxU84fres+1WynR1HU3QfS5LDA85zVtrv8U/NFf UQ4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=akFhWRIw; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a17090607d200b0099bd2075268si8019494ejc.920.2023.08.14.10.03.54; Mon, 14 Aug 2023 10:04:45 -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=@suse.com header.s=susede1 header.b=akFhWRIw; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230231AbjHNPeY (ORCPT + 99 others); Mon, 14 Aug 2023 11:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231571AbjHNPeB (ORCPT ); Mon, 14 Aug 2023 11:34:01 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B838910CE for ; Mon, 14 Aug 2023 08:33:54 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 5B2311F45B; Mon, 14 Aug 2023 15:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1692027233; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PQUYAWAb1k9Z/YmXHKlOUY17GrFAyEmuzFZMJMKUnBY=; b=akFhWRIwcKkZJ1HqiOw2FkVywMcrW3YdODW66y3Ojg8RdRtsOTpTMn0s55q6+DzcqfU7bO z7iDB14FgzJMzKwzAoLDAjlSpNBV50zVhxTMTOvp7Osyepfj2TgLR/cEwrBWPiF0X7WLCh CHbGArNyGlr2OL2mfNV5LCaPwLB12Ds= Received: from suse.cz (pmladek.udp.ovpn2.prg.suse.de [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id EE8C92C143; Mon, 14 Aug 2023 15:33:52 +0000 (UTC) Date: Mon, 14 Aug 2023 17:33:49 +0200 From: Petr Mladek To: Rasmus Villemoes Cc: Andy Shevchenko , Marco Elver , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, Steven Rostedt , Sergey Senozhatsky , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: Re: [PATCH v2 1/3] lib/vsprintf: Sort headers alphabetically Message-ID: References: <20230805175027.50029-1-andriy.shevchenko@linux.intel.com> <20230805175027.50029-2-andriy.shevchenko@linux.intel.com> <5eca0ab5-84be-2d8f-e0b3-c9fdfa961826@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5eca0ab5-84be-2d8f-e0b3-c9fdfa961826@rasmusvillemoes.dk> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_PASS, T_SPF_HELO_TEMPERROR 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 Mon 2023-08-07 21:47:17, Rasmus Villemoes wrote: > On 07/08/2023 16.58, Andy Shevchenko wrote: > > On Mon, Aug 07, 2023 at 04:31:37PM +0200, Petr Mladek wrote: > >> On Sat 2023-08-05 20:50:25, Andy Shevchenko wrote: > >>> Sorting headers alphabetically helps locating duplicates, and > >>> make it easier to figure out where to insert new headers. > >> > >> I agree that includes become a mess after some time. But I am > >> not persuaded that sorting them alphabetically in random source > >> files help anything. > >> > >> Is this part of some grand plan for the entire kernel, please? > >> Is this outcome from some particular discussion? > >> Will this become a well know rule checked by checkpatch.pl? > >> > >> I am personally not going to reject patches because of wrongly > >> sorted headers unless there is some real plan behind it. > >> > >> I agree that it might look better. An inverse Christmas' tree > >> also looks better. But it does not mean that it makes the life > >> easier. > > > > It does from my point of view as maintainability is increased. > > > >> The important things are still hidden in the details > >> (every single line). > >> > >> From my POV, this patch would just create a mess in the git > >> history and complicate backporting. > >> > >> I am sorry but I will not accept this patch unless there > >> is a wide consensus that this makes sense. > > > > Your choice, of course, But I see in practice dup headers being > > added, or some unrelated ones left untouched because header list > > mess, and in those cases sorting can help (a bit) in my opinion. > > I agree with Andy on this one. There doesn't need to be some grand > master plan to apply this to the entire kernel, but doing it to > individual files bit by bit does increase the maintainability. And I > really don't buy the backporting argument. Sure, backporting some patch > across the release that does the sorting is harder - but then, > backporting the sorting patch itself is entirely trivial (maybe not the > textual part, but redoing the semantics of it is). _However_, > backporting a patch from release z to release y, both of which being > later than the release x that did the sorting, is going to be _easier_. > It also reduces merge conflicts - that's also why lots of Makefiles are > kept sorted. I am afraid that we will not find a consensus here. I agree that the sorting has some advantage. But I would still like to get some wider agreement on this move from other subsystem. It is a good candidate for a mass change which would be part of some plan. I want to avoid reshuffling this more times according to personal preferences. And I do not want to add this cosmetic subsystem specific requirement. Best Regards, Petr