]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Disable CPU unknown by CLANG when CC_IS_CLANG
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 2 Feb 2023 11:01:04 +0000 (12:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:34:06 +0000 (13:34 +0100)
commitd2091f22f7af63cbed0f9932939fb29c07021160
tree02bdf8c6aed7f599335b2175c2dd8af26dfd727e
parent929f9f4684191f9a9038f14b27129ee46fcf383f
powerpc: Disable CPU unknown by CLANG when CC_IS_CLANG

commit f7cddc06bb73f21c0b0f39dc080658dbcc01b14d upstream.

CLANG only knows the following CPUs:

generic, 440, 450, 601, 602, 603, 603e, 603ev, 604, 604e, 620, 630,
g3, 7400, g4, 7450, g4+, 750, 8548, 970, g5, a2, e500, e500mc, e5500,
power3, pwr3, power4, pwr4, power5, pwr5, power5x, pwr5x, power6,
pwr6, power6x, pwr6x, power7, pwr7, power8, pwr8, power9, pwr9,
power10, pwr10, powerpc, ppc, ppc32, powerpc64, ppc64, powerpc64le,
ppc64le, futur

Disable other ones when CC_IS_CLANG.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e62892e32c14a7a5738c597e39e0082cb0abf21c.1675335659.git.christophe.leroy@csgroup.eu
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/Kconfig.cputype