[PATCH v2 0/2] Unify uapi bitsperlong.h

From: Tiezhu Yang
Date: Wed Jun 21 2023 - 04:40:26 EST


v2:
-- Check __CHAR_BIT__ and __SIZEOF_LONG__ rather than
__aarch64__, __riscv, __loongarch__, thanks Ruoyao
-- Update the code comment and commit message

v1:
-- Rebase on 6.4-rc6
-- Only unify uapi bitsperlong.h for arm64, riscv and loongarch
-- Remove uapi bitsperlong.h of hexagon and microblaze in a new patch

Here is the RFC patch:
https://lore.kernel.org/linux-arch/1683615903-10862-1-git-send-email-yangtiezhu@xxxxxxxxxxx/

Tiezhu Yang (2):
asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch
tools arch: Remove uapi bitsperlong.h of hexagon and microblaze

arch/arm64/include/uapi/asm/bitsperlong.h | 24 -------------------
arch/loongarch/include/uapi/asm/bitsperlong.h | 9 --------
arch/riscv/include/uapi/asm/bitsperlong.h | 14 -----------
include/uapi/asm-generic/bitsperlong.h | 11 +++++++++
tools/arch/arm64/include/uapi/asm/bitsperlong.h | 24 -------------------
tools/arch/hexagon/include/uapi/asm/bitsperlong.h | 27 ----------------------
.../arch/loongarch/include/uapi/asm/bitsperlong.h | 9 --------
.../arch/microblaze/include/uapi/asm/bitsperlong.h | 2 --
tools/arch/riscv/include/uapi/asm/bitsperlong.h | 14 -----------
tools/include/uapi/asm-generic/bitsperlong.h | 12 ++++++++++
tools/include/uapi/asm/bitsperlong.h | 6 -----
11 files changed, 23 insertions(+), 129 deletions(-)
delete mode 100644 arch/arm64/include/uapi/asm/bitsperlong.h
delete mode 100644 arch/loongarch/include/uapi/asm/bitsperlong.h
delete mode 100644 arch/riscv/include/uapi/asm/bitsperlong.h
delete mode 100644 tools/arch/arm64/include/uapi/asm/bitsperlong.h
delete mode 100644 tools/arch/hexagon/include/uapi/asm/bitsperlong.h
delete mode 100644 tools/arch/loongarch/include/uapi/asm/bitsperlong.h
delete mode 100644 tools/arch/microblaze/include/uapi/asm/bitsperlong.h
delete mode 100644 tools/arch/riscv/include/uapi/asm/bitsperlong.h

--
2.1.0