Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34052461rwd; Sun, 9 Jul 2023 04:17:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlES6gW0C1oKAfiNvPxOb8T5I05pmuSez2Kh2nUgR5+ppjnn1p/s3w2jBCMFV/mZihJitNxn X-Received: by 2002:a05:6a00:3911:b0:67f:d5e7:4604 with SMTP id fh17-20020a056a00391100b0067fd5e74604mr14152109pfb.13.1688901420339; Sun, 09 Jul 2023 04:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688901420; cv=none; d=google.com; s=arc-20160816; b=t3LPyrTjy1/84VRQ3BuvQ34S1Sms6TsV/A4KlP8ASYucRczIWorUh1M07sKkjVboNF uMNhepIuffgtmqQIaVo8kAsfP6yU0OambFD8NWTK+DF6vNuZg3LqUvJHvr4h57DEPBeu EFCmu6IyRGV3U+GLc9Oz3ghHe0YtzJBzMNRk8QJQshWVFMqLoPZ5ImHtfWFDg2s7YM51 xhCdRvJATjv98/AyAy8EyGY9nZld2uI5x7k7veB3//eQzbkbp9RBTtvUtGY1SQi9ENr8 w5oTFyfMSXnNee8ysv+j4UqWeVWThUdZ19gfEQ47+QtudmB14V8pIoyCXcmQfiagD544 1LJg== 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; bh=qC1ewMZelYDxVB27mvWbNcVPuyn+8+THPo2z3fGevac=; fh=tcl19X2u8PtEELiqC9wF/fi8DNcGozPCtYGeW6FgzSg=; b=QhTRH6wgEfmw7Obwmc+OEOcKsH8Bte08o+hXNwXBVohQJkZmszxkEsDVD/UIgTymmc 6cDAtaGirE9AzEo/i9rRu5CAwhQF6NdaMqbbn4WkW5tZOkhfCgg6H97vDfW61llJRmZy 3Lnuljkd8Y24NQV86oQyEDvEfuOHZpfSrMJ4gzfjXpNRQIA/Ld+B7WMtcGWb5XNzlaya HcFetj+PXJSBjKU89ru7SlzBggLFTI97SH0QHkl3OmWTR8vxYHLaUOt+0VGPPW+M7q0U Uiq2Q+LaUiyffGvufabXPvbWH2t8uIJUqvAeh8BsdUQkLhs8ZQhR/7jD9ClBeyzbM6fP 5zvA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v191-20020a6389c8000000b005575a066782si7482437pgd.255.2023.07.09.04.16.48; Sun, 09 Jul 2023 04:17:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbjGIJ5T (ORCPT + 99 others); Sun, 9 Jul 2023 05:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjGIJ5T (ORCPT ); Sun, 9 Jul 2023 05:57:19 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F1567129; Sun, 9 Jul 2023 02:57:16 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 3699uvD9021671; Sun, 9 Jul 2023 11:56:57 +0200 Date: Sun, 9 Jul 2023 11:56:57 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: Re: [PATCH v2 01/12] tools/nolibc: rename arch-.h to /arch.h Message-ID: <20230709095657.GJ9321@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 Sat, Jul 08, 2023 at 11:26:42PM +0800, Zhangjin Wu wrote: > Currently, the architecture specific arch.h has two parts, one is the > syscall declarations for sys.h, another is the _start code definition > for startup support. > > The coming crt.h will provide the startup support with a new common > _start_c(), it will replace most of the assembly _start code and shrink > the original _start code to be minimal, as a result, _start_c() and the > left minimal _start code will work together to provide the startup > support, therefore, the left _start code will be only required by crt.h. > > So, the syscall declarations part of arch.h can be split to sys_arch.h > and the _start code part of arch.h can be split to crt_arch.h and then, > they should only be included in sys.h and crt.h respectively. > > At the same time, the architecture specific arch-.h should be > split to /crt.h and /sys.h. > > As a preparation, this creates the architecture specific directory and > moves tools/include/nolibc/arch-.h to > tools/include/nolibc//arch.h. I'm sorry but I still don't understand what it *provides*. I'm reading it as "we *can* do this so let's do it". But what is the specific purpose of adding this extra directory structure ? It's really unclear to me and worries me that it'll only result in complicating maintenance by adding even more files, thus even more "include" lines and cross dependencies. Zhangjin, very often in your series, the justification for a change is missing, instead it's only explaining what is being changed, and I must confess that it makes it particularly difficult to figure the benefits. I'm only seeing this as an opportunity for a change ("can be split"). I could have missed something of course, but I can't figure what problem it is trying to solve. As a general advice, I tend to remind people that when sending a patch series, they should consider they're trying to sell it, so they must emphasize the benefits of accepting the series for the maintainer(s). You very likely have a good reason for doing this but I can't see it here so I'm just seeing a change that will possibly add some extra cost (if at least because file locations change again) and nothing more. When you try to reorganize things, it's often much more efficient to try to discuss it before proposing patches, because reorg patches are generally unreadable and take time for you to create and for others to review. Instead, just explaining what you think you can improve is faster for everyone, and others can chime in and propose alternate approaches (something which is very hard to do with a patch series). Thanks! Willy