powerpc/kuap: PPC_KUAP_DEBUG should depend on PPC_KUAP
authorMichael Ellerman <mpe@ellerman.id.au>
Sun, 1 Mar 2020 11:17:38 +0000 (22:17 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:25 +0000 (16:33 +0200)
commitb48331b52a28a52d83c503e6b6cc584b824bf072
treeab693d694faf58658eedbe5b6bb59399a5408b36
parentc4606876164c66469cd784d98898ee2928b10583
powerpc/kuap: PPC_KUAP_DEBUG should depend on PPC_KUAP

commit 61da50b76b62fd815aa82d853bf82bf4f69568f5 upstream.

Currently you can enable PPC_KUAP_DEBUG when PPC_KUAP is disabled,
even though the former has not effect without the latter.

Fix it so that PPC_KUAP_DEBUG can only be enabled when PPC_KUAP is
enabled, not when the platform could support KUAP (PPC_HAVE_KUAP).

Fixes: 890274c2dc4c ("powerpc/64s: Implement KUAP for Radix MMU")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200301111738.22497-1-mpe@ellerman.id.au
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/Kconfig.cputype