[PATCHv2 16/18] powerpc/pseries: Enable context analysis

From: Ritesh Harjani (IBM)

Date: Wed Nov 18 2026 - 22:41:11 EST


pseries objects now build with Clang context analysis enabled.
Turn it on for the directory.

This checks that each lock taken in this code is dropped on every path.

Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@xxxxxxxxx>
---
arch/powerpc/platforms/pseries/Makefile | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/powerpc/platforms/pseries/Makefile b/arch/powerpc/platforms/pseries/Makefile
index 3ced289a675b..d5f9beec33cc 100644
--- a/arch/powerpc/platforms/pseries/Makefile
+++ b/arch/powerpc/platforms/pseries/Makefile
@@ -1,4 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
+
+CONTEXT_ANALYSIS := y
+
ccflags-$(CONFIG_PPC_PSERIES_DEBUG) += -DDEBUG

obj-y := lpar.o hvCall.o nvram.o reconfig.o \
--
2.39.5