[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240724103142.165693-1-anshuman.khandual@arm.com>
Date: Wed, 24 Jul 2024 16:01:40 +0530
From: Anshuman Khandual <anshuman.khandual@....com>
To: linux-kernel@...r.kernel.org
Cc: anshuman.khandual@....com,
Andrew Morton <akpm@...ux-foundation.org>,
Yury Norov <yury.norov@...il.com>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
Arnd Bergmann <arnd@...db.de>,
linux-arch@...r.kernel.org
Subject: [PATCH 0/2] uapi: Add support for GENMASK_U128()
This adds support for GENMASK_U128() and some corresponding tests as well.
GENMASK_U128() generated 128 bit masks will be required later on the arm64
platform for enabling FEAT_SYSREG128 and FEAT_D128 features.
Question:
Proposed GENMASK_U128() depends on __int128 data type being supported in
the compiler. Just wondering if that requires some compiler version #ifdefs
or something similar ?
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Yury Norov <yury.norov@...il.com>
Cc: Rasmus Villemoes <linux@...musvillemoes.dk>
Cc: Arnd Bergmann <arnd@...db.de>>
Cc: linux-kernel@...r.kernel.org
Cc: linux-arch@...r.kernel.org
Anshuman Khandual (2):
uapi: Define GENMASK_U128
lib/test_bits.c: Add tests for GENMASK_U128()
include/linux/bits.h | 2 ++
include/uapi/asm-generic/bitsperlong.h | 4 ++++
include/uapi/linux/bits.h | 4 ++++
include/uapi/linux/const.h | 3 +++
lib/test_bits.c | 21 +++++++++++++++++++++
5 files changed, 34 insertions(+)
--
2.30.2
Powered by blists - more mailing lists