[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190527083412.26651-1-yamada.masahiro@socionext.com>
Date: Mon, 27 May 2019 17:34:10 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: linux-arm-kernel@...ts.infradead.org,
Will Deacon <will.deacon@....com>
Cc: linux-kernel@...r.kernel.org,
Catalin Marinas <catalin.marinas@....com>,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Subject: [PATCH 0/2] Allow assembly code to use BIT(), GENMASK(), etc. and clean-up arm64 header
Some in-kernel headers use _BITUL() instead of BIT().
arch/arm64/include/asm/sysreg.h
arch/s390/include/asm/*.h
I think the reason is because BIT() is currently not available
in assembly. It hard-codes 1UL, which is not available in assembly.
1/2 replaced
1UL -> UL(1)
0UL -> UL(0)
1ULL -> ULL(1)
0ULL -> ULL(0)
With this, there is no more restriction that prevents assembly
code from using them.
2/2 is a clean-up as as example.
I can contribute to cleanups of arch/s390/, etc.
once this series lands in upstream.
I hope both patches can go in the arm64 tree.
Masahiro Yamada (2):
linux/bits.h: make BIT(), GENMASK(), and friends available in assembly
arm64: replace _BITUL() with BIT()
arch/arm64/include/asm/sysreg.h | 82 ++++++++++++++++-----------------
include/linux/bits.h | 17 ++++---
2 files changed, 51 insertions(+), 48 deletions(-)
--
2.17.1
Powered by blists - more mailing lists