From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D7CB2139C9; Thu, 28 May 2026 20:40:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780000846; cv=none; b=rau2Tku9MyZkKRUPn6o6T4O1w5H6e2oDA3+712gXJ6JWmBhIYx/QAkg7ZjHDke3J4gUoOyODCq/WdOnMqB+Gh6hgAJDS5BEH0uBBnzPUYfwBx5nX1Nr56ph/PGj0Yu5bNv/jGAA8KyqcPQERKhl1Jt9En9UM0xBaAhU2pfZ18pM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780000846; c=relaxed/simple; bh=dMFi9yfCkeQPTcNDMLVHS8oo/Tq5y/AXBdV8Z7IcA68=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sTaMqnrkcqd1PQ+3EEXUslBJ4aO32Ykjzx9oajSi2cgVuKbcZj3sDdkCLjtB/ogbTwVefBuj9rv48alZwSSMZCFIbbxMSnX/zUAcDruabl95SXcewIWdlGf8wyWldW/3anjW09ewQdn/OWAhKcGSMdekJ/gh6XKkl285xreqxoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HPZhVcJ0; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HPZhVcJ0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 920131F000E9; Thu, 28 May 2026 20:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780000845; bh=hB+HF7biLeQXMxgUsr79vuiKZ1z57fexK3IdZNhhEB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=HPZhVcJ0fJU8LUYR06T9y5NGCU4AS/YNAVDXOJ9wCrcrLIUmlgZWnOuRLT1lrOoPp eOh7T8pakCZpWkrmN0G6roltgrHiqoudHzb9B0k9w6bahhBHh7ddAtC1Dz0usV0/J8 YYKdLwb+RiE5M3+lx6kOAbuEIBPubJOSddH9Rs84= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Julian Braha , Gautam Menghani , Amit Machhiwal , Harsh Prateek Bora , Madhavan Srinivasan , Sasha Levin Subject: [PATCH 6.12 189/272] powerpc: fix dead default for GUEST_STATE_BUFFER_TEST Date: Thu, 28 May 2026 21:49:23 +0200 Message-ID: <20260528194634.565584244@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260528194629.379955525@linuxfoundation.org> References: <20260528194629.379955525@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Julian Braha [ Upstream commit aef656a0e6c01796190bb5bd2bdba1c644ed7811 ] The GUEST_STATE_BUFFER_TEST config option should default to KUNIT_ALL_TESTS so that if all tests are enabled then it is included, but currently the 'default KUNIT_ALL_TESTS' statement is shadowed by 'def_tristate n', meaning that this second default statement is currently dead code. It looks to me like the commit 6ccbbc33f06a ("KVM: PPC: Add helper library for Guest State Buffers") intended to set the default to KUNIT_ALL_TESTS, but mistakenly missed the def_tristate. This dead code was found by kconfirm, a static analysis tool for Kconfig. Fixes: 6ccbbc33f06a ("KVM: PPC: Add helper library for Guest State Buffers") Signed-off-by: Julian Braha Tested-by: Gautam Menghani Reviewed-by: Amit Machhiwal Reviewed-by: Harsh Prateek Bora Signed-off-by: Madhavan Srinivasan Link: https://patch.msgid.link/20260405161545.161006-1-julianbraha@gmail.com Signed-off-by: Sasha Levin --- arch/powerpc/Kconfig.debug | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index 0bbec4afc0d59..1e2b51280e602 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug @@ -83,11 +83,10 @@ config MSI_BITMAP_SELFTEST depends on DEBUG_KERNEL config GUEST_STATE_BUFFER_TEST - def_tristate n + def_tristate KUNIT_ALL_TESTS prompt "Enable Guest State Buffer unit tests" depends on KUNIT depends on KVM_BOOK3S_HV_POSSIBLE - default KUNIT_ALL_TESTS help The Guest State Buffer is a data format specified in the PAPR. It is by hcalls to communicate the state of L2 guests between -- 2.53.0