diff options
| author | Will Deacon <will@kernel.org> | 2026-06-26 15:17:28 +0100 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-07-21 21:53:02 +0000 |
| commit | 10a47fb67340bca274276faf855d7d460afd9a7a (patch) | |
| tree | 4e85db933c84a304fb4df78374c0641661280989 /tools/include | |
| parent | a13c140cc289c0b7b3770bce5b3ad42ab35074aa (diff) | |
tools: linux/types.h: Add 128-bit integer types for arm64 UAPI structures
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 <arnd@arndb.de>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Matlack <dmatlack@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/include')
| -rw-r--r-- | tools/include/linux/types.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. |
