sched/psi: Select KERNFS as needed
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 31 Jul 2023 03:07:40 +0000 (20:07 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 2 Aug 2023 14:19:25 +0000 (16:19 +0200)
commit98dfdd9ee93995a408192dbbf3dd219ba23e3738
tree91b24c32a32e14df3f50504940200a7d9197050b
parent4efcc8bc7e08c09c58a2f5cbc2096fbda5b7cf5e
sched/psi: Select KERNFS as needed

Users of KERNFS should select it to enforce its being built, so
do this to prevent a build error.

In file included from ../kernel/sched/build_utility.c:97:
../kernel/sched/psi.c: In function 'psi_trigger_poll':
../kernel/sched/psi.c:1479:17: error: implicit declaration of function 'kernfs_generic_poll' [-Werror=implicit-function-declaration]
 1479 |                 kernfs_generic_poll(t->of, wait);

Fixes: aff037078eca ("sched/psi: use kernfs polling functions for PSI trigger polling")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Suren Baghdasaryan <surenb@google.com>
Link: lore.kernel.org/r/202307310732.r65EQFY0-lkp@intel.com
init/Kconfig