From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 131EDCA0ECB for ; Mon, 11 Sep 2023 22:23:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376745AbjIKWUY (ORCPT ); Mon, 11 Sep 2023 18:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239979AbjIKOdI (ORCPT ); Mon, 11 Sep 2023 10:33:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24BA3F2 for ; Mon, 11 Sep 2023 07:33:04 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AF4FC433C9; Mon, 11 Sep 2023 14:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694442783; bh=DiQKsMBonqxvj2xbKNagFmAXBpcHJu6CI0LVP8830/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kh5gf0ZHMmxXdGicxXt32q4vIWW6351cQWZ7xrg5pwMMTo3vh3ZafO/ULXr4gs+Ox J1PkLFVwDX+8aiTVGd/S2yad5adwOjZ7CIHuiQUdBpxcLve+UXbIGsvA+4jHPiajib pAjdZ4dgkQq0nXtIybPgc+/+ZhHTdIz7YMo/WEog= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Randy Dunlap , "Peter Zijlstra (Intel)" , Suren Baghdasaryan , Sasha Levin Subject: [PATCH 6.4 119/737] sched/psi: Select KERNFS as needed Date: Mon, 11 Sep 2023 15:39:38 +0200 Message-ID: <20230911134653.826077033@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230911134650.286315610@linuxfoundation.org> References: <20230911134650.286315610@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 6.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit 98dfdd9ee93995a408192dbbf3dd219ba23e3738 ] 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 Signed-off-by: Randy Dunlap Signed-off-by: Peter Zijlstra (Intel) Acked-by: Suren Baghdasaryan Link: lore.kernel.org/r/202307310732.r65EQFY0-lkp@intel.com Signed-off-by: Sasha Levin --- init/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/init/Kconfig b/init/Kconfig index 32c24950c4ced..c70617066a4c8 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -629,6 +629,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. -- 2.40.1