From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26492C88E75 for ; Fri, 18 Sep 2026 06:35:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Subject:References:In-Reply-To:Message-Id:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5lJK4CWzfgszxTPisa6n5iUQCQ94cJhqVE7BI7tdaWg=; b=BexD8sHhlIgkk+6NkBNf8N5tSA C6/JeczM0WXBJv7j6HrMwmcDwebW4VGOnGy/gfGnSKTVfCyn50tn5WFDv37A9TreUgWokz5ARW/Pc 7vRHpYK0u/jjPYMsBC56FKrIR3g6cu3UKzQpOlw8GSkKvhBBPIk2As/iRD87k/tv2PhPafxXjDq0f Zs5IKyDIvzddaL50GTOD+fMFNH0JQ3ODGhtCO5KTzob50QLBZYK9fQFe1mHmJOYVVQk9TnR7TvCGR 3d0RVhMxxwFx1rbZxsIssRPYZ1cUQcjyZ+t9kwqLQNa76WCSAh2gBeO4tWRhW2q0UPXtyrSjzEJnA Q7rlLFZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7SCB-0000000DaNx-1QMG; Fri, 18 Sep 2026 06:35:39 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7SC8-0000000DaNQ-26lu for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2026 06:35:37 +0000 Received: from ams-compute-02.internal (ams-compute-02.internal [10.64.2.62]) by mailfout.stl.internal (Postfix) with ESMTP id D6A7B1D000AB; Fri, 18 Sep 2026 02:35:33 -0400 (EDT) Received: from ams-imap-03 ([10.64.2.23]) by ams-compute-02.internal (MEProxy); Fri, 18 Sep 2026 02:35:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1789713333; x=1789799733; bh=5lJK4CWzfgszxTPisa6n5iUQCQ94cJhqVE7BI7tdaWg=; b= PZNLjbBCMu1kqgjWF6oXBRM9h80jaEps+8D/s7cSPlLAs/sBQ5lnKk8Pk0HyZPv8 M3zgYz1fkgSlhbPiN213VmuGAfxgvNf8y7ARP8T0aE7tDxr7BkDIpNgq1dYiWQm8 MwFWuSHbj8yMPwV5gxhfswCpxcMrh1JJIRbdav3X3gHgJ1CZlOWwBryTNP1ffMXu b5VfbPnjKl+Heug3ijEiJa+D7nqfKgzEZl8uQjmISFVpKg6rdWK9rlki8ivux93U Ldh9FLUDwmWhu+lsLs0MmD7bow696fppq6h5H1E2NgUwVwOyjYNxLTuJF2p+tWWG AR7T83/40+yoilib1QTpYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1789713333; x= 1789799733; bh=5lJK4CWzfgszxTPisa6n5iUQCQ94cJhqVE7BI7tdaWg=; b=j BqsFaXfVCyrtvb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-ID: i56a14606:Fastmail Received: by mailuser.ams.internal (Postfix, from userid 501) id 1605332A0084; Fri, 18 Sep 2026 02:35:29 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: AAZATSgDMLEZ Date: Fri, 18 Sep 2026 08:34:58 +0200 From: "Arnd Bergmann" To: =?UTF-8?Q?Andr=C3=A9_Almeida?= , "Masami Hiramatsu" Cc: "Christian Brauner" , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, kernel-dev@igalia.com, "Thomas Bogendoerfer" , linux-alpha@vger.kernel.org, linux-s390@vger.kernel.org, linux-arm-kernel@lists.infradead.org, soc@lists.linux.dev, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org Message-Id: <6cd76fb4-0834-457c-8188-c68a507b6a6f@app.fastmail.com> In-Reply-To: <20260917-tonyk-syscall_table-v7-3-f4cd8f8e3265@igalia.com> References: <20260917-tonyk-syscall_table-v7-0-f4cd8f8e3265@igalia.com> <20260917-tonyk-syscall_table-v7-3-f4cd8f8e3265@igalia.com> Subject: Re: [PATCH v7 03/13] scripts/syscall.tbl: Use the common table Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260917_233536_585964_FFD94B54 X-CRM114-Status: GOOD ( 14.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Sep 18, 2026, at 01:46, Andr=C3=A9 Almeida wrote: > Remove some of the duplicated code by using the common syscall number > table. > > Signed-off-by: Andr=C3=A9 Almeida > --- > arch/arm64/tools/syscall_32.tbl | 69 --------------------------------= --------- > scripts/Makefile.asm-headers | 15 ++++----- > scripts/syscall.tbl | 69 --------------------------------= --------- > 3 files changed, 8 insertions(+), 145 deletions(-) This somewhat desyncs the two copies of the arm32 table, which isn't great. > diff --git a/scripts/Makefile.asm-headers b/scripts/Makefile.asm-heade= rs > index f1c3d287c14b..b09dbc8992c3 100644 > --- a/scripts/Makefile.asm-headers > +++ b/scripts/Makefile.asm-headers > @@ -15,9 +15,10 @@ all: >=20 > src :=3D $(srctree)/$(subst /generated,,$(obj)) >=20 > -syscall_abis_32 +=3D common,32 > -syscall_abis_64 +=3D common,64 > +syscall_abis_32 +=3D clone3,common,32 > +syscall_abis_64 +=3D clone3,common,64 The clone3 variant is wrong on nios2 and openrisc, as they need the=20 __clone3 version. These currently redirect it using a macro from syscall_table.c doing #define sys_clone3 __sys_clone3 which will continue to work here, but I don't like how this is inconsistent between the architectures. Let's use either syscall_abis_* or a macro to pick the clone3 variant on all architectures, but not both. Arnd