Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp220588rdd; Tue, 9 Jan 2024 01:51:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGu/U52eQ4D/uTAOy/SsOonbab66tRg5l4YAeziw+6SK6hK5JsT3t02yRFcZIEtvn2Em8Rv X-Received: by 2002:a05:6808:120a:b0:3bb:fe0b:153f with SMTP id a10-20020a056808120a00b003bbfe0b153fmr6966800oil.57.1704793865612; Tue, 09 Jan 2024 01:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704793865; cv=none; d=google.com; s=arc-20160816; b=pxvzqpV/Mzp3Tc6pOT+tk4zezQr25uXoq0sHo1/DGhmAt1YIx416bUMLfDy9GjKIzc mpK5D+fz1+wuavGK2JjfdzKiki1cN9D11FX4na904dC7Nb5pCUinU3ylpcs9tM7J2A9h 31TX2UhmDEyIgSPRsNAeGHnK4921Nzs1zes0yw8ScSJrRGDnbO3EMCx6GNGqV1zyhS/l yH+EdfJYFin5xQk5zfwZnDdapYboJrDOkX0S9Va8Jv1lfvQKYqalKc6AaL2Vm0dufN99 +nPu3QXEMSfaGLIwbUXbkzjq/zvXQp6XyZWaw/LfdrS87FKBAdrLLlWjQ0MBr9n7+yUz j94w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=rQM0tVNDXSTc0EgHDCW816X4h1f5hiwHJnYm4YLWgzU=; fh=bFZOELOa4EqcbLhiwuORbUpoyza5QCjhTC+Od4mlbBo=; b=b8VfI80HlEBkrAoivtzjcP/zN6IjCzCPmIsq3jO7A8KaYvW+MctKn9P2dtwF6Tq4YR gzcbNvTkUXs8uAzV3xRCuVT7N9YpFiVY+uGmVurABf/d/Eub350VLabSkW5M3MsuO9iW neWiKOFvnCeHbGWWarbTmRvmS3Oh2d4H5PAUyn49KXy8d7E2FudzPOfK0GfpehDaSb4O DPkLIfkbKycv4RSfkhyJlgRj8IFv8Y8VVjOnNDcwJymAUIC2tfqidL/sPhgekuCuU3Sl pVeEUTeJZeLRiHcBHro+bUp9WsduG1D2N6U6FRLy+7zwjL8Z6xNbvnxKTdMbsSu5vHKL 5faQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HX06f7je; spf=pass (google.com: domain of linux-kernel+bounces-20685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p19-20020aa78613000000b006dac8b7d58fsi1216391pfn.309.2024.01.09.01.51.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 01:51:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HX06f7je; spf=pass (google.com: domain of linux-kernel+bounces-20685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 43E72286760 for ; Tue, 9 Jan 2024 09:51:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFC2435883; Tue, 9 Jan 2024 09:50:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HX06f7je" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13A00BA45 for ; Tue, 9 Jan 2024 09:50:57 +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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240109010906.429652-1-florian.fainelli@broadcom.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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