]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xive: Fix compile when !CONFIG_PPC_POWERNV.
authorCédric Le Goater <clg@kaod.org>
Wed, 1 Dec 2021 16:54:18 +0000 (17:54 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 1 Dec 2021 23:40:38 +0000 (10:40 +1100)
commit917e74dfa40bc51c2294ee2f0cd283a15962c746
tree00ebb55bd093c5a4f247d74bfa16dbd4ab1ea192
parent1ebb7bfd0d90ffe7883bea8b5e41bb1a7cb2cf8a
powerpc/xive: Fix compile when !CONFIG_PPC_POWERNV.

The automatic "save & restore" of interrupt context is a POWER10/XIVE2
feature exploited by KVM under the PowerNV platform. It is not
available under pSeries and the associated toggle should not be
exposed under the XIVE debugfs directory.

Introduce a platform handler for debugfs initialization and move the
'save-restore' entry under the native (PowerNV) backend to fix compile
when !CONFIG_PPC_POWERNV.

Fixes: c6930260a887 ("powerpc/xive: Add a debugfs toggle for save-restore")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211201165418.1041842-1-clg@kaod.org
arch/powerpc/sysdev/xive/common.c
arch/powerpc/sysdev/xive/native.c
arch/powerpc/sysdev/xive/xive-internal.h