]> www.infradead.org Git - linux.git/commit
powerpc: Drop clang workaround for builtin constant checks
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 May 2024 12:12:46 +0000 (22:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Jul 2024 07:31:44 +0000 (17:31 +1000)
commit489116d784bebec7e441f400715fbfe6edbce66c
tree68e45f0b66418d8ccd501694b38a11e580b78c10
parentfde318326daa48a4bb3ca8ee229bac4d14b5bc2a
powerpc: Drop clang workaround for builtin constant checks

The CPU/MMU feature code has build-time checks that the feature value is
a builtin constant.

Back when the code was added clang wasn't able to compile the
checks, so an ifdef was added to avoid the checks for clang builds.
See commit b5fa0f7f88ed ("powerpc: Fix build failure with clang due
to BUILD_BUG_ON()")

These days clang 13 and later are able to build the checks successfully,
so drop the workaround.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240509121248.270878-1-mpe@ellerman.id.au
arch/powerpc/include/asm/cpu_has_feature.h
arch/powerpc/include/asm/mmu.h