Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1677089rdh; Mon, 25 Sep 2023 23:15:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxR0eCCnRGCL1MJnOFhGx/3MmG7V6xLWJ0zEFSKMpd/cib1zz7SwgHomaESrKH5VvdP6K2 X-Received: by 2002:a17:902:db06:b0:1c0:cbaf:6954 with SMTP id m6-20020a170902db0600b001c0cbaf6954mr2886023plx.25.1695708911757; Mon, 25 Sep 2023 23:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695708911; cv=none; d=google.com; s=arc-20160816; b=nZhBIQ5uVSA4QQmAMmLrSWfv4v5njttwFjkuXo5XTJOAu9QiizvBhWYwioqT360Teb qkhtdEe3hij5JVooUxVeaxmP01ahcULjKFCsOQInMtAvvxOnGg+OQeZxc2dkK5EtxmZb scwGnwYSgjO0Qf5mQ58U/i92UGj88mzrpz/1quRhl7ehm1Bi3AwPqgHEFIqXwcyIJ5rM EfhLo5Q2bG7uJSQXgdusNY0WyPJvnjy+y+WP4AyFgy5WNI38ohKqmL569YHTcSr3JdNM CT26FibuH6klA7hS814pltRKQCY9wUNpV4Blr1Jq74UkIyDCogidpQslHqZdbr94HN5c KTzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=oCYIjuW89ugmbyi2Z2bcvS41djt8ybKt3d7f3d7YUtg=; fh=XcrYWQqgFO9lMX5UPhjKG6RtZGi+qRh5R0fNAjjR6H8=; b=dEF41o5LqZCQcpM4dWOJM1iTlazVDdoKCW0oJTSdAn4JD69myWZXKpB7Rdzs0iklAc FGnBviqkwj37AlRNTLFIQcJTaDhXkdaHVVdgDbXyBQ187YBESLQ/fiKo955WhIlGgds1 vbRAPJS5fQcZ7jEK+jxx+hXSo0f1N82bhm6JiO0TgjaNEIFTu4A88gOimGrIH5bVSFzV IBlT3cxBPgrJ+su4iF4UtE5h+9kRHQmdchqfCnXBA/E1P37gSU25bAUkW9T116zQ0bRf rl/jIj63FciDAxLm9i9byJKyC1olYKfrZ2HrzILtlZtkC9OSQhvxsgoUT9R4fpdEAWE6 K1rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=ouBK1gk5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=MpaLGSaJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id kq12-20020a170903284c00b001bbc138af0dsi11131039plb.163.2023.09.25.23.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 23:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=ouBK1gk5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=MpaLGSaJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0E42080743F1; Mon, 25 Sep 2023 23:11:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233913AbjIZGLS (ORCPT + 99 others); Tue, 26 Sep 2023 02:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233856AbjIZGLA (ORCPT ); Tue, 26 Sep 2023 02:11:00 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6920AE55; Mon, 25 Sep 2023 23:10:41 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id E07D432009F0; Tue, 26 Sep 2023 02:10:39 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 26 Sep 2023 02:10:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1695708639; x=1695795039; bh=oC YIjuW89ugmbyi2Z2bcvS41djt8ybKt3d7f3d7YUtg=; b=ouBK1gk5nfLdyJrDUI wdVsO41CB6GBBarwCeJyFPMDWdoV68AgcEYOMCB167pKfQw5T3b/0yNArFnUaAi1 9XPWYRWWdK4GRlTP/vVy9dznUHP+KWfCtdNwRh/UFPzXOqYUEvqQsKEHzjS1Unb7 Ur3ehzaONMVwXFqRa0X9d/eu9Va05CnXhf/h9ahqd1V78WjLlMBhS6Osps22QLIm +Wmtf2gBFte97YLyyg0ReXeZM4DCCt5qO0Qlcmt6zGWPsuEsTShJvODFNKVW33TF K8Ps/ik5XfZTK/U1fqviD0qH4xfWosZoUs31UWkITtpDyT1iVofsRxdiM+km24P4 lPvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695708639; x=1695795039; bh=oCYIjuW89ugmb yi2Z2bcvS41djt8ybKt3d7f3d7YUtg=; b=MpaLGSaJtda/meO2nTAhN9DT3q6Uy AkxW0eyOBXlGqw066njGrSEW1Eu6QPBQz8gVp2yN3kQsJjB/qqocqMAHNhF+DO+P ioO/+KCDWcsM5mkd/uqf1vFuL2IDgMw19wFtr8H68rFD6A74oxtqAXIpR62xxkoF BgBTndlxVKGpdn6g9KLQgVeGlGNkftsz5Pk3InWj8odoUtqCtdw0VeMsueuSAXZV Z+meKr+nn/7VkQxXTJonIeIIzqJabeEDCf7e0GLcFI+L6PGKdy8dlZ6FLsEkK9MM +NiHuk3zGFd/yY9M35Sz22fY/yy8rKeaLPQ63oLBpX116mbX7eL+JSdHQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelhedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 24B8AB60089; Tue, 26 Sep 2023 02:10:39 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-957-ga1ccdb4cff-fm-20230919.001-ga1ccdb4c MIME-Version: 1.0 Message-Id: <3a8f0d0a-25ad-49c3-9cd2-66db44a4a1e6@app.fastmail.com> In-Reply-To: References: Date: Tue, 26 Sep 2023 08:10:17 +0200 From: "Arnd Bergmann" To: "Zhangjin Wu" , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org Cc: "Palmer Dabbelt" , "Paul Walmsley" , paulburton@kernel.org, "Paul E. McKenney" , "Thomas Bogendoerfer" , "Willy Tarreau" , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , "Tim Bird" Subject: Re: [PATCH v1 6/7] DCE/DSE: riscv: add HAVE_TRIM_UNUSED_SYSCALLS support Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 23:11:26 -0700 (PDT) On Tue, Sep 26, 2023, at 00:42, Zhangjin Wu wrote: > For HAVE_TRIM_UNUSED_SYSCALLS, the syscall tables are hacked with the > inputing unused_syscalls. > > Firstly, the intermediate preprocessed .i files are generated from the > original C version of syscall tables respectively, and named with a > 'used' suffix: syscall_table_used.i, compat_syscall_table_used.i. > > Secondly, all of the unused syscalls are commented. > > At last, two new objective files sufixed with 'used' are generated from > the hacked .i files and they are linked into the eventual kernel image. > > Signed-off-by: Zhangjin Wu As mentioned in my comment on the mips patch, hacking the preprocessed file here is too much strain on the old infrastructure, the asm-generic/unistd.h file is already too hard to understand for anyone and in need of an overhaul, so let's work together on fixing it up first. Arnd