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 9B31DC46CD2 for ; Tue, 9 Jan 2024 09:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9FOt2TQfwKyxHO5atiyxvzxr/OtBy5INcnZ+oDIKxwM=; b=hwb/O/fD/uQLyK EU9frz+KunFR5DvK2WS+RsY57V5AspGYdI9AuCYHOF/8JNDA5BWchftrVhK7fxgoWNF+7t0k6U+fg 3nvK5LCpHkQTNeVj1JSq0S7U+q55WaECmZTRO7AB5Cpl84xJGLjTF/QVYP3HJO6f42VkCqkA9juCc yQZke9ZlZi/s+L9MA7vYVGgNq1PTCBq6I6zIsHED/tFKD+ZPxn+gbLEs6br6Ubd2LSQaq2SBJ4LbM nj2UO+ySHIPgFLEQ7JAl3hfXKxHzLd+bI/8qgU6WRcDYxDmhp3Y2juQTcNo1JTRgZGU8UDIzwWw3S hM10qUB4iZqpt2UTtnFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rN8lC-007Yyn-0a; Tue, 09 Jan 2024 09:51:02 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rN8lA-007Yxv-0J for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 09:51:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 15104B819FD; Tue, 9 Jan 2024 09:50:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9F5DC433F1; Tue, 9 Jan 2024 09:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704793857; bh=DvrmDiuY6GgmxhNHQtU1bWPrasmkM91rmXnYqEuWm3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HX06f7je50opK5ndx4+HaMqqxpX73NQHKGxSqMIx9qoF/P6rhkWNFMPCJ/vNSdk78 ku/AVOhpl405OAF/oiX0QfisXafKyrjFb/ZqesDHa4Kxh5Ktpqx13hZ5P2MK8que1a 3kn/wx7FiI07ijuoP3WwLXUfz9/5SBEH9+ESyax1q5N1pUpGdJ3DJaK8y+f03Tijzj 6Y8KEIt3Aajg2IxCSFFwkjYhpJWY4LTJPQXr8RAKW2NFrLi76Ff+lx5yT69D2JnjXu LzqCqjuPoeMauqL4IfKuoHkWO7R1m0FkYXkmNpCTPkhLKwSTbD0pmVDbMQkK+1AaPP Iv1GdXsGIUOkQ== Date: Tue, 9 Jan 2024 09:50:51 +0000 From: Will Deacon To: Florian Fainelli Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Geert Uytterhoeven , Arnd Bergmann , "peterz@infradead.org" , Thomas Gleixner , Rick Edgecombe , Nhat Pham , Palmer Dabbelt , Sohil Mehta , Miklos Szeredi , Christian Brauner , Ian Kent , open list Subject: Re: [PATCH] ARM64: Update __NR_compat_syscalls for statmount/listmount Message-ID: <20240109095050.GA12915@willie-the-truck> References: <20240109010906.429652-1-florian.fainelli@broadcom.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240109010906.429652-1-florian.fainelli@broadcom.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240109_015100_315779_5A526A61 X-CRM114-Status: GOOD ( 18.15 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 08, 2024 at 05:09:04PM -0800, Florian Fainelli wrote: > Commit d8b0f5465012 ("wire up syscalls for statmount/listmount") added > two new system calls to arch/arm64/include/asm/unistd32.h but forgot to > update the __NR_compat_syscalls number, thus causing the following build > failures: > > ./arch/arm64/include/asm/unistd32.h:922:24: error: array index in initializer exceeds array bounds > 922 | #define __NR_statmount 457 > | ^~~ > arch/arm64/kernel/sys32.c:130:34: note: in definition of macro '__SYSCALL' > 130 | #define __SYSCALL(nr, sym) [nr] = __arm64_##sym, > | ^~ > > Bump up the number by two to accomodate for the new system calls added. > > Fixes: d8b0f5465012 ("wire up syscalls for statmount/listmount") > Signed-off-by: Florian Fainelli > --- > arch/arm64/include/asm/unistd.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h > index 531effca5f1f..b63f870debaf 100644 > --- a/arch/arm64/include/asm/unistd.h > +++ b/arch/arm64/include/asm/unistd.h > @@ -39,7 +39,7 @@ > #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5) > #define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800) > > -#define __NR_compat_syscalls 457 > +#define __NR_compat_syscalls 459 > #endif > > #define __ARCH_WANT_SYS_CLONE > -- > 2.34.1 Acked-by: Will Deacon Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel