From: Randy Dunlap rdunlap@infradead.org
mainline inclusion from mainline-v6.6-rc1 commit 98dfdd9ee93995a408192dbbf3dd219ba23e3738 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7DHPO
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i...
-------------------------------------------------
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 Signed-off-by: Lu Jialin lujialin4@huawei.com --- init/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/init/Kconfig b/init/Kconfig index 1b25d226092f..d90858d4e47a 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -603,6 +603,7 @@ config TASK_IO_ACCOUNTING
config PSI bool "Pressure stall information tracking" + select KERNFS help Collect metrics that indicate how overcommitted the CPU, memory, and IO capacity are in the system.