From patchwork Tue Jan 9 01:09:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 13514225 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 2BD82C3DA6E for ; Tue, 9 Jan 2024 01:09:53 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DUuMepDMOoQ8d8AF7laJ/TADP1aebIUmySqWBxvdYO8=; b=faWZXVH7BV3Dsz Spd0yIr96t4nkiEvRdOVF6ooQrOEDKd7Fq+6NxgDgzoz1Bo6RMdBH9KnkxCJmN8kdlw5RbK124jSy B62SZ3c548CaCmLxLrWzNGlxA7JRuMACWEGjgNbx2ceFx1Cn3Pmb6K1nbkZ+DEkv4MgdUrciyYMzB UCsYDIOBXlDjQ9B5RgnO6Fy18chhHeLYMzUqtOSkbrICCu1DfHYwE0fjGq5fWfrADFuCF2ZtjnRuv C+dybEbQKDcssPZ5CTO1rO7Cauh8ajoGzKlasBEa4ekzhW+mIPtYF2lDhxyRzChPS2BWPD2JRWWIe /sN3ceRHzDGFJn3bK2HA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rN0cS-006b63-1X; Tue, 09 Jan 2024 01:09:28 +0000 Received: from lpdvsmtp11.broadcom.com ([192.19.166.231] helo=relay.smtp-ext.broadcom.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rN0cP-006b5H-0e for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 01:09:27 +0000 Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 4A454C00164C; Mon, 8 Jan 2024 17:09:18 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 4A454C00164C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1704762558; bh=V4xcLfwSh9yIFBt8S2FOyzIEAI9i04RmDH6sxuuDTC0=; h=From:To:Cc:Subject:Date:From; b=EdZY1ZzGIhoiU8CdF9jbjPETPcbplglWMdoAav375MT0Kb0j4eoKWG98AJGvgNp6t nViQgZUXJvGTQR9AoskQ/tVyOTbWZXhNJvG3d8ergC/J5aK8n1B7jSmpzey7Y5M8+h D9DnZvbqGGSOaAQg/tfQ5nRrYm6RR8gvmmEVjuPY= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id BBA2E18041CAC4; Mon, 8 Jan 2024 17:09:16 -0800 (PST) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Arnd Bergmann , "peterz@infradead.org" , Thomas Gleixner , Rick Edgecombe , Nhat Pham , Palmer Dabbelt , Sohil Mehta , Miklos Szeredi , Christian Brauner , Ian Kent , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ARM64: Update __NR_compat_syscalls for statmount/listmount Date: Mon, 8 Jan 2024 17:09:04 -0800 Message-Id: <20240109010906.429652-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240108_170925_712117_9DF300E9 X-CRM114-Status: GOOD ( 13.83 ) 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 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 Acked-by: Will Deacon --- 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