bits: split the definition of the asm and non-asm GENMASK*()
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Mon, 9 Jun 2025 02:45:45 +0000 (11:45 +0900)
committerYury Norov <yury.norov@gmail.com>
Thu, 31 Jul 2025 15:28:03 +0000 (11:28 -0400)
commit6d4471252ccc1722d25200fa9b6021ab4e1d6fde
tree8bf59da610c0fb321509b5dc79500d08e226aa10
parentb0c85e99458af829c32c225b43f638443bff14e5
bits: split the definition of the asm and non-asm GENMASK*()

In an upcoming change, the non-asm GENMASK*() will all be unified to
depend on GENMASK_TYPE() which indirectly depend on sizeof(), something
not available in asm.

Instead of adding further complexity to GENMASK_TYPE() to make it work
for both asm and non asm, just split the definition of the two variants.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
include/linux/bits.h