From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2C6573F825E for ; Fri, 26 Jun 2026 14:17:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782483460; cv=none; b=LeCR5dROZ3VBjYi+UdY0weOA3Fcbr03kn+7lLddCdzPNniV9ZsgHz0tzDSwoIK2dhx468GHV5l6zqK+CQDbQQWfWE+G1vkl1ytVC8QSqbUZ3g9TeJ95ezWW6aDLKCKs6XoBMXqsU1oENodUFSMmelrElgDnu214zr5SLWVHWGTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782483460; c=relaxed/simple; bh=3S2J2qUmTH8b1Tg4G0SbTcvStMYeygiYFO5xaeaJdIE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AX7apfea4nVs7YOEt9dx7rUSJsrN1+GjpVLIER9FacCeF9a2vbCA5MDtuuNgOIIkzmGNV20TmO7+CRIJk9eTa+pH3KvPvOz+RYoarWD+hcqzYlHEC7FjXNQ/aR11xKkbULSuKykVhljboEZ370gDlaLY9nNtIoLzMfgqS3401UE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KRxm5moF; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KRxm5moF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE0641F00A3A; Fri, 26 Jun 2026 14:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782483459; bh=ban9Sg3JmZZKWNtmhFABzgOrppTDwX/Of6kW4P2C+wc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KRxm5moFoSA09sDUutfW2tckKmgIFbU06Avgu5Pyy1pAT4mUsIZlGUyoRXcA1vw5+ Z59vJDJ4118sTwyLa++8YotaydywIjAsDLnFsvLgoOpYW2W7/VVpOKhjyzkJG7521/ v9lKVFiHw/tTZq7IJDUqTX6C3/DpYkO/GFjkcTXHQ+dLNDA15FkrLRBtYBQ/aHiSUi XRTLqhLILdlnqTBSm/RSG5ewKdPHljb4HbweWWGBOWS0xbYj9bnaWN2krISoDdMwcH 9sL5xHCn3BUy0RcjsyWIsQqJL/5v1HTwCijlKOONYoDN4cG1fwnWEB4pPXr2svi1U4 nwqH/GuetjnTA== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Will Deacon , Arnd Bergmann , Arnaldo Carvalho de Melo , David Matlack Subject: [PATCH v2 1/2] tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures Date: Fri, 26 Jun 2026 15:17:28 +0100 Message-ID: <20260626141730.5976-2-will@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260626141730.5976-1-will@kernel.org> References: <20260626141730.5976-1-will@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The arm64 UAPI exposes some 128-bit integer types to represent things such as fpsimd registers in the sigcontext. In preparation for defining these using the '__u128' typedef implemented by uapi/linux/types.h, copy that typedef over to the private linux/types.h header used by the tools directory. Cc: Arnd Bergmann Cc: Arnaldo Carvalho de Melo Cc: David Matlack Signed-off-by: Will Deacon --- tools/include/linux/types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h index d41f8a261bce..b6c473b7920d 100644 --- a/tools/include/linux/types.h +++ b/tools/include/linux/types.h @@ -23,6 +23,11 @@ typedef enum { __GFP_HIGH } gfp_t; +#ifdef __SIZEOF_INT128__ +typedef __signed__ __int128 __s128 __attribute__((aligned(16))); +typedef unsigned __int128 __u128 __attribute__((aligned(16))); +#endif + /* * We define u64 as uint64_t for every architecture * so that we can print it with "%"PRIx64 without getting warnings. -- 2.55.0.rc0.799.gd6f94ed593-goog