From nobody Mon Apr 6 18:55:15 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B78FD3A0B2B; Wed, 18 Mar 2026 09:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825442; cv=none; b=AureYfRKgEYqyt6U5pBMExJDyBz53XQNOty09JwZ0qUStBlaD+ggv6VpnxelVplVkYcZ++OfNqv6IPE/NSJLl0maGrCH82z5vCnjcQb5Vzil0TrT9okX4MUclnI740Tl+MDvZ6UqquoxvRjBjawXZg5CbinWhpuLPiJMa2esjww= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825442; c=relaxed/simple; bh=QlxqPfGlmp00Gm1LThv7H+jhWuYECXWFEH8vLVpP9r0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oIjHxZl+Jk/mLEw0npdMFm0jo71yh60a26vAjEA/5TGc7JXQCe6S7uCNOflDQlbXfZelgfANAjDRrhq2/JM4nz8/g40dpRaKRsAARjafgsdDdJGVaOpM24b9UOvPOFymmseSRMuwgepp22LhhwTcMealmrsr7TilFNtjaH8qVYo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1C3D51FC4; Wed, 18 Mar 2026 02:17:14 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2A0F73F73B; Wed, 18 Mar 2026 02:17:11 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:45 +0000 Subject: [PATCH v5 01/26] tools: lib: thermal: Fix typo Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-1-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=820; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=QlxqPfGlmp00Gm1LThv7H+jhWuYECXWFEH8vLVpP9r0=; b=0AdAqFKwPR4J9d4usPhXtYkbZhLdkf0bmqqTbDuqW82iPUberiibO2CDerKnwPLbjsw3mPTtk I6OMgUXNnsRB8vWtE0D8kRwou6n5uD8cgez62aQ+ABEl7iQoKQkpy5y X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= s/CFGLAS/CFLAGS Fixes: 47c4b0de080a ("tools/lib/thermal: Add a thermal library") Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- tools/lib/thermal/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/thermal/Makefile b/tools/lib/thermal/Makefile index 41aa7a324ff4d76351b89d7d7cf382df3fc14052..09d8f4ba6a0ab7ab9c99ac7f64d= 52d0268bee340 100644 --- a/tools/lib/thermal/Makefile +++ b/tools/lib/thermal/Makefile @@ -66,8 +66,8 @@ override CFLAGS +=3D -fPIC override CFLAGS +=3D $(NL3_CFLAGS) override CFLAGS +=3D $(INCLUDES) override CFLAGS +=3D -fvisibility=3Dhidden -override CFGLAS +=3D -Wl,-L. -override CFGLAS +=3D -Wl,-lthermal +override CFLAGS +=3D -Wl,-L. +override CFLAGS +=3D -Wl,-lthermal =20 all: =20 --=20 2.34.1 From nobody Mon Apr 6 18:55:15 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46DC828A3FA; Wed, 18 Mar 2026 09:17:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825452; cv=none; b=mHvBHXw387hxLudcQdFaPlz8xjIbJPUWY1YL/uuvDxCvhQ26rox/Lu44xqBs00sO9PbJ+mvykAHSxdSCjptUn97KK+w4Xs9YlqC0vl4EsE3Wb5eTVr2BoWHjf3K5I0trewRNA7R9GkDa1D7YlFk7d+ALDv7j58ZUzo7kfoc7rMY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825452; c=relaxed/simple; bh=+9++KEwNlOxG/SfjKjCjUr8ot7BiZ+JJm87pV/Atazc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TOHT3oxPPP4Pmp4BnXDUChPrNCfL5oKeEGm0b4R6vtHAE0iGyJy3XveIWsXuDOY55PUiYMDRHRt1Yjc92D9tVoCJism8mDigpxZTY1dxxtD9Pgxc/j39DFzihd15FUVN60aaOzAmPDdjZkHJfFGLk3CAP7PNfOZMBhNxgqZmWK0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 68D841FC7; Wed, 18 Mar 2026 02:17:23 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 71FA23F73B; Wed, 18 Mar 2026 02:17:20 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:46 +0000 Subject: [PATCH v5 02/26] tools/thermal: Fix typo Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-2-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=809; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=+9++KEwNlOxG/SfjKjCjUr8ot7BiZ+JJm87pV/Atazc=; b=nmiSSzSo4WkbHQW3Rxf1oRaCHLgAWvjhDgpw/3QH9iuSLQA05Prn+renCn913RgzkCX6AGm9i dcY2y3fgu30DKFDL0AtPa0JiJLtzauvFpoi2jJbN4I4s/uupdCyHV3s X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= s/CFGLAS/CFLAGS Fixes: 3b7c5e8adf9c ("tools/thermal: Add util library") Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- tools/thermal/lib/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/thermal/lib/Makefile b/tools/thermal/lib/Makefile index 056d212f25cf51cd8c02260fbe2ef28dda5e4acb..8c9a37f999b826855dad11c0d95= 74b41d5b24244 100644 --- a/tools/thermal/lib/Makefile +++ b/tools/thermal/lib/Makefile @@ -60,8 +60,8 @@ override CFLAGS +=3D $(EXTRA_WARNINGS) override CFLAGS +=3D -Werror -Wall override CFLAGS +=3D -fPIC override CFLAGS +=3D $(INCLUDES) -override CFGLAS +=3D -Wl,-L. -override CFGLAS +=3D -Wl,-lthermal +override CFLAGS +=3D -Wl,-L. +override CFLAGS +=3D -Wl,-lthermal =20 all: =20 --=20 2.34.1 From nobody Mon Apr 6 18:55:15 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3630938F250; Wed, 18 Mar 2026 09:17:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825460; cv=none; b=XUjOO9rKJF0/jK4porrCrMJ/kr7PukAHo5WfpfJWEIa/5/us5Xqbv6bRvXlteSGZIKib44Q/LypPL65PmZgkq2NwjasTkGBnPkWCA8c6Q2iUtRttsfUnAS/6QB6ku+b63aYWza5JrN+IobdKe6V5hiGSPUDguLcthr88rvxAFBo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825460; c=relaxed/simple; bh=HHiufcx01zjsi7OxV3Txr2WMedIY5n8R+m3Nlsc8pBA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V1Iy5uwitGUwuPeb4//eTc1EfIKbGcNUdAV6fG8AWbN4rXVnHIzWx9Cd0DgJpq2QgmnB9UFxaQ4YRN+aRsI/GMhOUYnb1BGuG9Ho7OcZgLJarUckKxWar5z8Xm3jShDzA5CZY9isrWEJrpMSj0F4HLMRdZgP4j4NWvgQXcLn71E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ACABE2008; Wed, 18 Mar 2026 02:17:32 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C24653F73B; Wed, 18 Mar 2026 02:17:29 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:47 +0000 Subject: [PATCH v5 03/26] tools: lib: thermal: Initialize CFLAGS before including Makefile.include Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-3-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=2051; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=HHiufcx01zjsi7OxV3Txr2WMedIY5n8R+m3Nlsc8pBA=; b=83PHIYBLjK72OIfa7LFTZ8bnRTRlT9sM9yvLOiCXtSmwgM7t6/oYZOadfTlRm4/DJtmP14oZZ MY/xxcvyTYaCnoCvCOMmRx4pM0E3cdNzxoCkeZMVl3IeX/iZoISS0pw X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= tools/scripts/Makefile.include may expand EXTRA_CFLAGS in a future change. This could alter the initialization of CFLAGS in the thermal Makefile, as the default options "-g -Wall" would never be set once EXTRA_CFLAGS is expanded. Prepare for this by moving the CFLAGS initialization before including tools/scripts/Makefile.include, so it is not affected by the extended EXTRA_CFLAGS. Append EXTRA_CFLAGS to CFLAGS only after including Makefile.include and place it last so that the extra flags propagate properly and can override the default options. Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- tools/lib/thermal/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/lib/thermal/Makefile b/tools/lib/thermal/Makefile index 09d8f4ba6a0ab7ab9c99ac7f64d52d0268bee340..b55fa42cefa47628b7f2fac32fc= 08fcd82580a0e 100644 --- a/tools/lib/thermal/Makefile +++ b/tools/lib/thermal/Makefile @@ -23,6 +23,14 @@ INSTALL =3D install DESTDIR ?=3D DESTDIR_SQ =3D '$(subst ','\'',$(DESTDIR))' =20 +# Defer assigning EXTRA_CFLAGS to CFLAGS until after including +# tools/scripts/Makefile.include, as it may add flags to EXTRA_CFLAGS. +ifdef EXTRA_CFLAGS + CFLAGS :=3D +else + CFLAGS :=3D -g -Wall +endif + include $(srctree)/tools/scripts/Makefile.include include $(srctree)/tools/scripts/Makefile.arch =20 @@ -39,13 +47,6 @@ libdir =3D $(prefix)/$(libdir_relative) libdir_SQ =3D $(subst ','\'',$(libdir)) libdir_relative_SQ =3D $(subst ','\'',$(libdir_relative)) =20 -# Set compile option CFLAGS -ifdef EXTRA_CFLAGS - CFLAGS :=3D $(EXTRA_CFLAGS) -else - CFLAGS :=3D -g -Wall -endif - NL3_CFLAGS =3D $(shell pkg-config --cflags libnl-3.0 2>/dev/null) ifeq ($(NL3_CFLAGS),) NL3_CFLAGS =3D -I/usr/include/libnl3 @@ -68,6 +69,7 @@ override CFLAGS +=3D $(INCLUDES) override CFLAGS +=3D -fvisibility=3Dhidden override CFLAGS +=3D -Wl,-L. override CFLAGS +=3D -Wl,-lthermal +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 all: =20 --=20 2.34.1 From nobody Mon Apr 6 18:55:15 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6612137C908; Wed, 18 Mar 2026 09:17:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825470; cv=none; b=tMwA83K3HHTXqBaXLtM76EpMsdef4pdujhmP9CnNE4TlVtwxrpW4QE89VFIo7/m3eWI059W02LxrMIJaJ/RyxidFuo5S4IQ10AJxU9f2gjizJup7sYOslS5YoMFwpTd7FOYxO8vp7d1w32/u4yZ4j9KL+zTxyOXa9qXrUm+Nj50= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825470; c=relaxed/simple; bh=BFehMj28QR2IYXlxOIJtUAyqZ+kYk51QCcp6lZ5W+HY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z95bmryPteQA7RUepi0YpfjM7ns6Xmge7az1KSFDfoyZGnZ88InnH5RulyFZaB32V2e9vF7dzjRK4RWm+sLbpA98QMmhuTgVfXCc0plYaMvJ+DshFXJ83F72yqmaBGpwTi2UXWre97Z5OxIQ/w61rK8u7V8vEWbUQQKy+GBc984= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E27501F91; Wed, 18 Mar 2026 02:17:41 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1131C3F73B; Wed, 18 Mar 2026 02:17:38 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:48 +0000 Subject: [PATCH v5 04/26] tools/thermal: Initialize CFLAGS before including Makefile.include Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-4-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=1994; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=BFehMj28QR2IYXlxOIJtUAyqZ+kYk51QCcp6lZ5W+HY=; b=JLWXSP7iMG5YIw+3JDlGnZF54Txs+/ERqkdweKC7P+NWPLxHe7vm0cHo9mdMyugjMYOOWxM13 +5w7ubrXUHYC1pHU4fsvgmwjfauhT02fheUq0GvReC1tjta/W0AFHAG X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= tools/scripts/Makefile.include may expand EXTRA_CFLAGS in a future change. This could alter the initialization of CFLAGS in the thermal Makefile, as the default options "-g -Wall" would never be set once EXTRA_CFLAGS is expanded. Prepare for this by moving the CFLAGS initialization before including tools/scripts/Makefile.include, so it is not affected by the extended EXTRA_CFLAGS. Append EXTRA_CFLAGS to CFLAGS only after including Makefile.include and place it last so that the extra flags propagate properly and can override the default options. Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- tools/thermal/lib/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/thermal/lib/Makefile b/tools/thermal/lib/Makefile index 8c9a37f999b826855dad11c0d9574b41d5b24244..333b711bc7f0f9610e165ff7dc7= 2c42980c59c99 100644 --- a/tools/thermal/lib/Makefile +++ b/tools/thermal/lib/Makefile @@ -23,6 +23,14 @@ INSTALL =3D install DESTDIR ?=3D DESTDIR_SQ =3D '$(subst ','\'',$(DESTDIR))' =20 +# Defer assigning EXTRA_CFLAGS to CFLAGS until after including +# tools/scripts/Makefile.include, as it may add flags to EXTRA_CFLAGS. +ifdef EXTRA_CFLAGS + CFLAGS :=3D +else + CFLAGS :=3D -g -Wall +endif + include $(srctree)/tools/scripts/Makefile.include include $(srctree)/tools/scripts/Makefile.arch =20 @@ -39,13 +47,6 @@ libdir =3D $(prefix)/$(libdir_relative) libdir_SQ =3D $(subst ','\'',$(libdir)) libdir_relative_SQ =3D $(subst ','\'',$(libdir_relative)) =20 -# Set compile option CFLAGS -ifdef EXTRA_CFLAGS - CFLAGS :=3D $(EXTRA_CFLAGS) -else - CFLAGS :=3D -g -Wall -endif - INCLUDES =3D \ -I/usr/include/libnl3 \ -I$(srctree)/tools/lib/thermal/include \ @@ -62,6 +63,7 @@ override CFLAGS +=3D -fPIC override CFLAGS +=3D $(INCLUDES) override CFLAGS +=3D -Wl,-L. override CFLAGS +=3D -Wl,-lthermal +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 all: =20 --=20 2.34.1 From nobody Mon Apr 6 18:55:15 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB1FE37754E; Wed, 18 Mar 2026 09:17:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825479; cv=none; b=Hl2BYCszRyRy1zhMB006Y1xuG0WdPup8q4x2URgQ936xzITur1/eGQNF8HRS5v/P6RNw0HezcKF0LsN+Z407JWEfsYMpehiwVXu0wB8stX8Lb0+sruw3On2X+dG4nFKMbBr0M3nCY/r8n8MVTfLZYvMVec6BDV0usowx4dfTybE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825479; c=relaxed/simple; bh=WM6eh+uCyejH6wIt9/C1ZZ9YLOLPrcxUmJlFRRJ40zM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fdJd/x0GiQulUnzdXmWzEirBTpER5yreXYzghPd92JL7p+qGdaKQVQggEdZlN1Jd9jcWAdoUXb0M3zhgk6Glm4ho/UkDqd3tCALHOPO8pnsxwL5zto80XGvJ6MkfqLNm9IepDeXFx14kus6uQwTCU+lh7Sb1Jj2Aj45gZE4u8DM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 255AE202C; Wed, 18 Mar 2026 02:17:51 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 46AD03F73B; Wed, 18 Mar 2026 02:17:48 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:49 +0000 Subject: [PATCH v5 05/26] bpftool: Avoid adding EXTRA_CFLAGS to HOST_CFLAGS Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-5-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=1436; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=WM6eh+uCyejH6wIt9/C1ZZ9YLOLPrcxUmJlFRRJ40zM=; b=rNe9TULQgpGGv9z9iyLRlO+2acG1uuhf9ew7VHZim72gzEbX1rvSPPcDBYo/qHE50gRIsrwhr M+1RsEOJnvAAM9KpfbaZICOj/P/oxIiduUBxTvCHRIDgdLM6oVsSMqC X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Prepare for future changes where EXTRA_CFLAGS may include flags not applicable to the host compiler. Move the HOST_CFLAGS assignment before appending EXTRA_CFLAGS to CFLAGS so that HOST_CFLAGS does not inherit flags from EXTRA_CFLAGS. Acked-by: Quentin Monnet Signed-off-by: Leo Yan --- tools/bpf/bpftool/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index 519ea5cb8ab1c0ee31acc67fc5f96b40e21005c2..3e7d8359e1b2a81a29a47544be8= 539e3b191a0e8 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -81,6 +81,12 @@ CFLAGS +=3D -DPACKAGE=3D'"bpftool"' -D__EXPORTED_HEADERS= __ \ ifneq ($(BPFTOOL_VERSION),) CFLAGS +=3D -DBPFTOOL_VERSION=3D'"$(BPFTOOL_VERSION)"' endif + +# This must be done before appending EXTRA_CFLAGS to CFLAGS to avoid +# including flags that are not applicable to the host compiler. +HOST_CFLAGS :=3D $(subst -I$(LIBBPF_INCLUDE),-I$(LIBBPF_BOOTSTRAP_INCLUDE)= ,\ + $(subst $(CLANG_CROSS_FLAGS),,$(CFLAGS))) + ifneq ($(EXTRA_CFLAGS),) CFLAGS +=3D $(EXTRA_CFLAGS) endif @@ -88,8 +94,6 @@ ifneq ($(EXTRA_LDFLAGS),) LDFLAGS +=3D $(EXTRA_LDFLAGS) endif =20 -HOST_CFLAGS :=3D $(subst -I$(LIBBPF_INCLUDE),-I$(LIBBPF_BOOTSTRAP_INCLUDE)= ,\ - $(subst $(CLANG_CROSS_FLAGS),,$(CFLAGS))) HOST_LDFLAGS :=3D $(LDFLAGS) =20 INSTALL ?=3D install --=20 2.34.1 From nobody Mon Apr 6 18:55:15 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B0653A4F58; Wed, 18 Mar 2026 09:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825488; cv=none; b=guQTNyf09d27p0pHZj7WT+T+tfzRSeLf9Hpvk8ha+v5Rpg32eZVkfewbpm3pVr/hEZ6iVKQAADJSkzU3te0jgmUFhRc+Sj02mHU0ZzSo1ImAhK4hYn1uMi7OlyGz0QsF8QdDRi4jD5KDIU0ltG+xrLKrIMoe6Xu3Tek03mQsFCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825488; c=relaxed/simple; bh=NWqH78wsmi6y4jjQ8qhIYxcnenhctkfjAsE0nlrnoMY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mh41jhImbQnqyaHV8QWyKfWd9TYkXS9mYIYyyDzUBxkcJ/OKWilZkZuXhx+W4XmbP816qaZ8j/PabFQkBrwD3kSAnFTam+gL0wVFSNGbjp+oPfGgilf3ksxbbpmxAx2MutkXbn5FYUI6tQwf8amrXIrLBeEEh4+6JhLEeTMe3T8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5B3122050; Wed, 18 Mar 2026 02:18:00 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7B7C03F73B; Wed, 18 Mar 2026 02:17:57 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:50 +0000 Subject: [PATCH v5 06/26] tools build: Append -fzero-init-padding-bits=all to extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-6-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=2805; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=NWqH78wsmi6y4jjQ8qhIYxcnenhctkfjAsE0nlrnoMY=; b=ZLkbvcXOX3PkxAekwdn8fM/JPifcfasBLi/XuEFNVYwA0/OSpc72JF/Z7EZieR1mIqObBil51 GgbE0G8j2udDz8IKOrdWsMSU0m9KcB4/uTcbeHlFYng6yhwxUMvfng4 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= GCC-15 release claims [1]: {0} initializer in C or C++ for unions no longer guarantees clearing of the whole union (except for static storage duration initialization), it just initializes the first union member to zero. If initialization of the whole union including padding bits is desirable, use {} (valid in C23 or C++) or use -fzero-init-padding-bits=3Dunions option to restore old GCC behavior. As a result, this new behaviour might cause unexpected data when we initialize a union with using the '{ 0 }' initializer. Since commit dce4aab8441d ("kbuild: Use -fzero-init-padding-bits=3Dall"), the kernel has enabled -fzero-init-padding-bits=3Dall to zero padding bits in unions and structures. This commit applies the same option for tools building. The option is not supported by any version older than GCC 15, nor is it supported by LLVM. This patch adds the cc-option and host-cc-option functions to dynamically detect compiler option and append it to the EXTRA_CFLAGS and HOST_EXTRACFLAGS respectively. [1] https://gcc.gnu.org/gcc-15/changes.html Acked-by: Quentin Monnet Acked-by: Namhyung Kim Signed-off-by: Leo Yan --- tools/scripts/Makefile.include | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include index b5ecf137febcae59f506e107a7f2e2ad72f4bef4..a2397ceae512c1bc54adb15cb1a= 111ff34e28e43 100644 --- a/tools/scripts/Makefile.include +++ b/tools/scripts/Makefile.include @@ -137,6 +137,36 @@ else EXTRA_WARNINGS +=3D -Wshadow endif =20 +# output directory for tests below +TMPOUT =3D .tmp_$$$$ + +# try-run +# Usage: option =3D $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise) +# Exit code chooses option. "$$TMP" serves as a temporary file and is +# automatically cleaned up. +try-run =3D $(shell set -e; \ + TMP=3D$(TMPOUT)/tmp; \ + trap "rm -rf $(TMPOUT)" EXIT; \ + mkdir -p $(TMPOUT); \ + if ($(1)) >/dev/null 2>&1; \ + then echo "$(2)"; \ + else echo "$(3)"; \ + fi) + +# cc-option +# Usage: CFLAGS +=3D $(call cc-option,-march=3Dwinchip-c6,-march=3Di586) +cc-option =3D $(call try-run, \ + $(CC) -Werror $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2)) + +host-cc-option =3D $(call try-run, \ + $(HOSTCC) -Werror $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2)) + +# Explicitly clear padding bits with the initializer '{ 0 }' +FLAG_ZERO_INIT :=3D $(call cc-option,-fzero-init-padding-bits=3Dall) +override EXTRA_CFLAGS +=3D $(FLAG_ZERO_INIT) +HOST_FLAG_ZERO_INIT :=3D $(call host-cc-option,-fzero-init-padding-bits=3D= all) +override HOST_EXTRACFLAGS +=3D $(HOST_FLAG_ZERO_INIT) + ifneq ($(findstring $(MAKEFLAGS), w),w) PRINT_DIR =3D --no-print-directory else --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04F1139448F; Wed, 18 Mar 2026 09:18:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825497; cv=none; b=IeAz8/MLe8Evkw4e/1HR26PUcd7pqHXJdLHeLipcEqXDSBayVZlcFXnZ0HKz60FBu7j8umNZ9NZQ+MLPSLBNfVEclbVTL3Etdmzd7aCdOSGjm0xN5/Aqq53xOQvhLwmss+XDU8gE1dG+ryAi7hI44uaK9atcwqvG9R1d/EkdoXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825497; c=relaxed/simple; bh=7+wT4XqOtfZrTnarTeuayBt59FLu6mtAfaIIVesnRow=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BmaW523NFojoZvy7wrYjJBwX7eN7dRfzrRCG/RayrRr2KJ4+jOMkbbCyLsqgdcOA5g25di9pSbrso/KiLHWhbBbOavbEEhp94hcggWu1etj0/t6REiwj4mPvpUmJEtAt99ljHWNM8w2HCxYLUKGp0ByS4iqeDqyYSW/0ebs5T/c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8B4741E7D; Wed, 18 Mar 2026 02:18:09 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B07053F73B; Wed, 18 Mar 2026 02:18:06 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:51 +0000 Subject: [PATCH v5 07/26] bpftool: Append extra host flags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-7-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=824; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=7+wT4XqOtfZrTnarTeuayBt59FLu6mtAfaIIVesnRow=; b=rk6BhIYWjjOgPBPnvj9D4HPyAMRhgSWlmv8na2+IMRVT7evnSwINCef944rbjYoP9zcmnoR6W sYGVYj1psHHBAOydwzbSN6/Awx0KengBwjX6qU84iHaSKfTPUjYOr/D X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append HOST_EXTRACFLAGS to HOST_CFLAGS so that additional flags can be applied to the host compiler. Acked-by: Quentin Monnet Signed-off-by: Leo Yan --- tools/bpf/bpftool/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index 3e7d8359e1b2a81a29a47544be8539e3b191a0e8..762fcf0e62a189625053798ddde= af17d409fe248 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -86,6 +86,7 @@ endif # including flags that are not applicable to the host compiler. HOST_CFLAGS :=3D $(subst -I$(LIBBPF_INCLUDE),-I$(LIBBPF_BOOTSTRAP_INCLUDE)= ,\ $(subst $(CLANG_CROSS_FLAGS),,$(CFLAGS))) +HOST_CFLAGS +=3D $(HOST_EXTRACFLAGS) =20 ifneq ($(EXTRA_CFLAGS),) CFLAGS +=3D $(EXTRA_CFLAGS) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49B5E3A6EE5; Wed, 18 Mar 2026 09:18:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825506; cv=none; b=F76eVu8MYZSJuzfFRzPO0ZEPYgZOFUw4ATcOjORXqMlXsiS6J1iDMep6XfRrwM+CPw0BKpxpnbdBjQZmXhs3LHm7LgpJneqjrJ3z2H5LWDK/BQIQs6xKYJ1FcOTH8ZoqteYGxlmzAMTcc+H8YTuSLGK7J6uIuakY8tmBYP6GmHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825506; c=relaxed/simple; bh=W1Q9TUYmS2oOVNsuC5F4lc4Ge7O9HF7hQY/yiHfp7+Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ulR1Rmbgt4JjmnAD2FjRfFuTMweNHmKw3SPXEq7/Je96tEzyDdnBiVBUIXouNHP82fh2Wb3/QJ6FpnYCd2wL5aHZNi5pzCU76lyhG67MRH1rXm8T40e/fLyHA4ASF+Iv1qTknVgn0Qjvv00S5rDvjtHbwvXL8Bte/Ya5Aye2OTQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BF676201B; Wed, 18 Mar 2026 02:18:18 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E37C63F73B; Wed, 18 Mar 2026 02:18:15 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:52 +0000 Subject: [PATCH v5 08/26] perf build: Append extra host flags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-8-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=1086; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=W1Q9TUYmS2oOVNsuC5F4lc4Ge7O9HF7hQY/yiHfp7+Q=; b=3w6FVMiM8npZY4Oyq4o2klTJ3jiP9BhaYrdjOBd52/wQciQx/VsV+k3GBoIWL5Bw3oMi1tt0k ZY6CjyWZp/mDLv7iVKRmB5m0MvwITgV+63r72rtR4V9W2kc3XceFEL0 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append HOST_EXTRACFLAGS to HOST_CFLAGS so that additional flags can be applied to the host compiler. Acked-by: Namhyung Kim Signed-off-by: Leo Yan --- tools/perf/Makefile.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 15fbba9f4ca8926e4512f0b021d9c9b2ec83847e..c9034aeaf6ce27752fd44432847= b52074c4e0f1e 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -17,7 +17,7 @@ detected =3D $(shell echo "$(1)=3Dy" >> $(OUTPU= T).config-detected) detected_var =3D $(shell echo "$(1)=3D$($(1))" >> $(OUTPUT).config-detecte= d) =20 CFLAGS :=3D $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS= )) -HOSTCFLAGS :=3D $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) +HOSTCFLAGS :=3D $(HOST_EXTRACFLAGS) $(filter-out -Wnested-externs,$(EXTRA_= WARNINGS)) =20 # This is required because the kernel is built with this and some of the c= ode # borrowed from kernel headers depends on it, e.g. put_unaligned_*(). --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 848243A63F2; Wed, 18 Mar 2026 09:18:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825515; cv=none; b=OeTSUFMbpL4R2Yx7P/kgYfFigjt4BD7nySe1va9lpDIUvtYnrRt/FjaaBNvxcXyER9cIC9Ua12yBHDzAqmdyyk1KP2v62Ou43kBsq+XNn0HmP3JaUZxWFpxz10BU/sF6tdHbKSGOaMvc/LQSqzMxm/fLGwkrRvYX+NTVqAWMTMU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825515; c=relaxed/simple; bh=G2cI6gno4ym5dTpFGJCwLPZT6MUzcUe+/hvBAAojmWk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bjBZNVCLMV1nlKedTNh5EzP89YJRmU3NCH2raLmnI/r4vFlvmlHYrWyk9L2AhlAkGs8sd6fHB5IvGS0LUm26jsjWNCV86yrchng//0msj2vjhAG2vZoBDCEM4+ufmTFL91QLDiTeb9Ue2JRRh0WdKOYdImBScxdHdmt6B+y89rg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 02F121F37; Wed, 18 Mar 2026 02:18:28 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 230663F73B; Wed, 18 Mar 2026 02:18:25 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:53 +0000 Subject: [PATCH v5 09/26] tools build: Append extra host cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-9-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=1108; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=G2cI6gno4ym5dTpFGJCwLPZT6MUzcUe+/hvBAAojmWk=; b=seG0PjkzdDNVsGala65O+1S70R48XtzDJwDLtNyhQAVylJ2TCLKK6WHBZrivpWJYqa0fpGC84 da2K3i00MvTDOo4GoQbfeyyjggGtDMEDmp0b53lEAxAgxD5zX2M9pIl X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append HOST_EXTRACFLAGS to HOSTCFLAGS so that additional flags can be applied to the host compiler. Signed-off-by: Leo Yan --- tools/build/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/build/Makefile b/tools/build/Makefile index 3a5a3808ab2a1dedd40f35ea322913e8a0788130..44e50a7c182484e18ff80f4205c= 49a77e8c8abd9 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -40,14 +40,16 @@ endif FIXDEP :=3D $(OUTPUT)fixdep FIXDEP_IN :=3D $(OUTPUT)fixdep-in.o =20 +HOSTCFLAGS :=3D $(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) + # To track fixdep's dependencies properly, fixdep needs to run on itself. # Build it twice the first time. $(FIXDEP_IN): FORCE $(Q)if [ ! -f $(FIXDEP) ]; then \ - $(MAKE) $(build)=3Dfixdep HOSTCFLAGS=3D"$(KBUILD_HOSTCFLAGS)"; \ + $(MAKE) $(build)=3Dfixdep HOSTCFLAGS=3D"$(HOSTCFLAGS)"; \ rm -f $(FIXDEP).o; \ fi - $(Q)$(MAKE) $(build)=3Dfixdep HOSTCFLAGS=3D"$(KBUILD_HOSTCFLAGS)" + $(Q)$(MAKE) $(build)=3Dfixdep HOSTCFLAGS=3D"$(HOSTCFLAGS)" =20 =20 $(FIXDEP): $(FIXDEP_IN) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC2DC37754E; Wed, 18 Mar 2026 09:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825524; cv=none; b=pUy9h6YMFZ/pzHAbOJ0291nd7bj5Vm3wyJnm35kxAd/CXecNt4t4KrcDIW9FArZvpSQtyh4gPDgieqm7sW+geLNEsrAHPNidoaWxoefuzEjyc8oSw+T09+Ob8QQbv6yKGT2hWf+V/EGB6ZS0H5iPRywDWcmg+hOZHfSDO+60j1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825524; c=relaxed/simple; bh=k31Kk/i0K4ZvTRnARLSwM6pAc2QmOSVp+PsTzUqEpMA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KQag2rYLJRo/ZxLlT9bcgh6eOZOTi9PPZsE5ulbooDc8wVuwtTN8M6ZBq5xlnqG10wjGXhIucUs0E/ucfuTfvbVG9aIH5oU6vthsFss4GBGpBDd4T5bRfH41zPmycNtxOgPgNJ+KAI/3qYM9mo7IRMV+o5sT6TN01W18iDHUFqc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4162C1F91; Wed, 18 Mar 2026 02:18:37 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5AFCA3F73B; Wed, 18 Mar 2026 02:18:34 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:54 +0000 Subject: [PATCH v5 10/26] tools: bootconfig: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-10-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=793; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=k31Kk/i0K4ZvTRnARLSwM6pAc2QmOSVp+PsTzUqEpMA=; b=ULtqChTWbLUKgf2q2ef+jZSS7mLhK0i3sjmxhA98o5VhnHrMvHgPZ+Xhxu57LL+rSyKbafUFZ fHt8pYSJ+i+BbNZ/gf8e6Hg6mtOGk8sfN2hbvkrq83uh0TiThUwTLh9 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Masami Hiramatsu (Google) Signed-off-by: Leo Yan --- tools/bootconfig/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bootconfig/Makefile b/tools/bootconfig/Makefile index 90eb47c9d8de67b0ccc74a8de0af3a7e0b97feeb..4490df707585acf356153b78cb8= 7760f622a6190 100644 --- a/tools/bootconfig/Makefile +++ b/tools/bootconfig/Makefile @@ -11,6 +11,7 @@ endif =20 LIBSRC =3D $(srctree)/lib/bootconfig.c $(srctree)/include/linux/bootconfig= .h override CFLAGS +=3D -Wall -g -I$(CURDIR)/include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D bootconfig ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 184443A4F36; Wed, 18 Mar 2026 09:18:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825534; cv=none; b=M6AFDVMAR8mFSr66//fl2CzK3K2Slg/Ph6ors0WkPcqdFD4Rt0LutgTquvPO2/5bZHpevaE2StTpJyJI/kErg0wXFpL7ImgJtuK9lJgoCRMukyiYZLOe60dPBmKjhegqr45VMk7g5/KTKbl4oG6QUOd7klTH0o6oYJV7eC5Vm+Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825534; c=relaxed/simple; bh=8OSCWf/mIU6b3XiEwF8s9we+Qi0eYqNHuTh8/Qvzcfc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r2dZsFvlRV4hem3wT1sdlgUaJ0JAC4BuRWcYOEVd3xMNJLVdqAnA1F7YhmLuy4vyWOcSY2TxH70V4AlkVBmKrRODwK1xHS22bnu6Ix/ccHo8cG4HCZQqyr3MJw2eaqPhCsun64k5dF5MFS5urOTqKFg/K6lOiOrjl4lYeAsWlGM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 77BB72103; Wed, 18 Mar 2026 02:18:46 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9B2A83F73B; Wed, 18 Mar 2026 02:18:43 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:55 +0000 Subject: [PATCH v5 11/26] tools: counter: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-11-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=728; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=8OSCWf/mIU6b3XiEwF8s9we+Qi0eYqNHuTh8/Qvzcfc=; b=TaxGVmIPt+FBQWd2YuBiyYs07LeLyLop/EAqzKVntaypOhzj8CL/xTU5kGsee1HWHgLNsorSj AFuYI1+Fe+/CQNTd1pDaJE6TTooP1BUucTm6NoHWAxWlffn0qLOZK3Q X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/counter/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/counter/Makefile b/tools/counter/Makefile index d82d35a520f610260abb43f6ae28e56d73268231..1495c0e03d9c00653a24bc92b24= d83340dbb4909 100644 --- a/tools/counter/Makefile +++ b/tools/counter/Makefile @@ -14,6 +14,7 @@ MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include \ -I$(srctree)/tools/include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D counter_example counter_watch_events ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63DB73A4F36; Wed, 18 Mar 2026 09:19:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825544; cv=none; b=aHs3ThAA2sgzzVSICdnbF6zD6Jj18JCTmqui5JuVi1MaqZWzwunAVV2UGwU9M7KJA5xxI1gu5EH/C2pinu3E1oEDm4WNh3oCmJT1qasyZptHBapNQo7sQ22Ybmq0N9xzs3EbW1OAE6e5OdEI63T7ZStiDgqsyhAZawZ/E/hbsYk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825544; c=relaxed/simple; bh=u0baSWrAsWfZfQ+02tVwtELldH7JfFDkqdw4XEPinVI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aSuc3cdyoE2+a38AMzJyNFbljbTWgN2M597y2O8zO05np8cBbXiK8bwm1hUrkWye2l0bX9mKua/8aKfTJFmqckvC/y4O4Lw8EW2syftUQ5/v9f0yhJ0xUp2cVkYoo+s8VWui+/nglQahbwHkcZGm7a3JTMBSsti5URazW0/5mNU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B01881E7D; Wed, 18 Mar 2026 02:18:55 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D0AEF3F73B; Wed, 18 Mar 2026 02:18:52 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:56 +0000 Subject: [PATCH v5 12/26] tools: dma: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-12-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=709; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=u0baSWrAsWfZfQ+02tVwtELldH7JfFDkqdw4XEPinVI=; b=xsZ5QV5oh8mB0NBzXrp2Dr2eT8uqv4jfsPX9u8sdRK51VNBWsjg1lRTIeZuZw2+osqWghvlV8 OIFSuKcVW/iDVD5z0PQj6FK0NpmRZu1LI4qVghfCWTVEgIWhri47kT0 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Qinxin Xia Signed-off-by: Leo Yan --- tools/dma/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/dma/Makefile b/tools/dma/Makefile index e4abf37bf020ca613b6dca340299198cb887126a..86d3d2e361110b664b885c0e942= 3660a2d5e8221 100644 --- a/tools/dma/Makefile +++ b/tools/dma/Makefile @@ -17,6 +17,7 @@ endif MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D dma_map_benchmark ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8048F3A63F9; Wed, 18 Mar 2026 09:19:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825552; cv=none; b=I0670BqVxFoXOaReoYUmy2UgcNs8Yt96EFl6Pcfs/1ccqyj1f1fFUi0XH1pW8jCEs4CzKymElUpeM1/jWsEq3yOhVUm2oin+Scm4/0Rb8xn7UCiQDjp2hJ3D2cgnPT3dpYZiLJSCPTvxC3VJc5ft2H+DfH/66evuq9GMWtyB4ug= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825552; c=relaxed/simple; bh=J24uTRo5JzVWWMRzOuokKmYRbu145MN2/Re9B/pDvrA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LB7Ey6C2dgUdMvNHxAgh3X9b05AZy4GiLMse2k4MUXGGxkFuGDAognUc4WmV3OQJRPBKsxOVWOiewczFCJHSf/Y/4ba+UY0hR20H0PW54CTY/6T1q8uwXdNWa/Flh3Kli5lTUpebD3ZdUoxdld5g2k56CTVla6NK2ctwTpcshk8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0E6752008; Wed, 18 Mar 2026 02:19:05 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 13F8C3F73B; Wed, 18 Mar 2026 02:19:01 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:57 +0000 Subject: [PATCH v5 13/26] tools: gpio: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-13-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan , Bartosz Golaszewski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=766; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=J24uTRo5JzVWWMRzOuokKmYRbu145MN2/Re9B/pDvrA=; b=8r7kMFQtsuj2wREiQN3NgKy4G/9eRTH92LDD+IvPY2X7TJVXwdLDwbf6plLhyeitPFhzNxmTP rfndMAjHpAOANNSF8XlhKhSwmqBhYMKOta8cOg52AeVam879DofS2yt X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Bartosz Golaszewski Signed-off-by: Leo Yan --- tools/gpio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile index 342e056c8c665ac075041ff7c7ca7ba94c691187..05a0057ec361626f41ca87e5295= 691364f03d2cb 100644 --- a/tools/gpio/Makefile +++ b/tools/gpio/Makefile @@ -17,6 +17,7 @@ endif MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D lsgpio gpio-hammer gpio-event-mon gpio-watch ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1FDE3A4F4F; Wed, 18 Mar 2026 09:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825563; cv=none; b=PL85y5HXQsgf3FzD6NyLSsxNkBoZTPjHfFznKu3V0oqLSP/N++zwwOZlaIie4pyQqRb7Ij50pQ5EAM9GjaJNGV3IsEYNFOiedXMIYR39S22evA3UjdjoBq4HpMrbjcrILrZBC88rpQq/9wb0MU9fcRuoI5MVRtXHp6QjJCkffYY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825563; c=relaxed/simple; bh=hGyktyHY0K6JN8j/3c0flG6pW5kwtw4MxiSqaD6tx9c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z2j/G3ZRFcgdk35LnbqkoAJIzaviIls2yHCffH8yode4qqyhVDV+HQZljJI1DMbZlEqmkbgOKa3JbV6zk9MZMMeZ1UIHPWdjTeP25dhTsEiPxGavfwamA5RaBO3iFFfZoyy1m1QMHULbBHkU8i6NxoNZcQ/Tc+aiiUjZZPMtlkU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 432EF20E3; Wed, 18 Mar 2026 02:19:14 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 671C93F73B; Wed, 18 Mar 2026 02:19:11 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:58 +0000 Subject: [PATCH v5 14/26] tools: hv: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-14-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=734; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=hGyktyHY0K6JN8j/3c0flG6pW5kwtw4MxiSqaD6tx9c=; b=dQxyV9ZJLQzHnFfM8fQx/OaGyXa3E7MiEyHrWI9nsaG3Fu50LzxUmv4BNGWYynni9RbT/BoC/ dQgnG8J07dyBXz7di5pWlMtjXy3jjZDjvGPuv5XjII+ug0wHIAfvVN+ X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Reviewed-by: Haiyang Zhang Signed-off-by: Leo Yan --- tools/hv/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index 34ffcec264ab0fdf7075d25456ef012cb866796b..a85f2208a8e3c9532b0d2cc750f= c2a872ab4bb07 100644 --- a/tools/hv/Makefile +++ b/tools/hv/Makefile @@ -18,6 +18,7 @@ MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include override CFLAGS +=3D -Wno-address-of-packed-member +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D hv_kvp_daemon hv_vss_daemon ifneq ($(ARCH), aarch64) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 316BE3A8743; Wed, 18 Mar 2026 09:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825571; cv=none; b=YnAnL1NG9sg0e9wvOavon3TTmQGfTFusANnqHjhJMm+ejCxno797eJWkaljvKtwnFcM8UuleDVUfvV8qiQOq5GWdfPtZS04bPjKMcX2ysJlpDAgK+6mLMJzZ8uu5SQRYjzPjjTTSKhNvII7Q+2WldSgBuZKWdcUC4tWe/9f8rpA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825571; c=relaxed/simple; bh=shLDpO8XlHX34iAqVyQqT7FnDz22Px7FA3i34fj+quI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NSuL1GSmabeciguOPBZPZNK8gB25HdAGX7cnl+PxlzjR+iv1iVyoUhnnvwmS/rMf3yrJXA5mh0WtjjQMVYsvYZIAHGiM8i9rkoFeq9VGZt0p706aK3wsnPpOq/UOxAphAFYDDROjPN+SSOJOio5HvGtp3rGvikqV56b0ISCgDRM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A0E82103; Wed, 18 Mar 2026 02:19:23 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9B6EE3F73B; Wed, 18 Mar 2026 02:19:20 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:16:59 +0000 Subject: [PATCH v5 15/26] tools: iio: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-15-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=689; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=shLDpO8XlHX34iAqVyQqT7FnDz22Px7FA3i34fj+quI=; b=j7cUpraX15t+uXkLsvng56CnIoHpWguNf7TU6/9ytJ78Y/zXnmE9fhgADuNUGCPKkqcGP/0Qn Kg+dtqHAECHD5lYRRD1DSNC666hg4vN47kIZz3cvq1zjLF5M3zguZKy X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/iio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/iio/Makefile b/tools/iio/Makefile index 3bcce0b7d10f42208765be83dac047faa2e0ceb1..f0428421792d1cbe5ff71b01b67= f23eb908fa714 100644 --- a/tools/iio/Makefile +++ b/tools/iio/Makefile @@ -13,6 +13,7 @@ endif MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D iio_event_monitor lsiio iio_generic_buffer ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C72F3A6EEC; Wed, 18 Mar 2026 09:19:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825580; cv=none; b=eU9iPEZ/Sp/HPr8diXnvage0SsW6sRq6VoqoRAaGH3xwe25unU4G6W41Ii3K7rc3fSBoSnqTfncuyNrhBhSEvyNQ5OhwPtgFfpYSsnIJk/AbUmbX5mfcN1RCUTVjyiB9X9R26p12vvrT/Aqcq/BPFALP7+1mYvqxqWlTLGolP3M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825580; c=relaxed/simple; bh=wVjQowvxpAB2zn18RKm3JYBDwmaeJ2pheT83qKWdB5M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hcpQjfQaNAZiPc27i0gyFBluo+l7MuZPPVVP7YxglrIiv46k3au486FHScpPr+ZhtnJ6LCyq9fxKRWqFABunJnlgel1XKvkD4hKUk0I5ZRvfrRCq85wTrLXxW1uK6Lh5oGpgSDyjztkWy7uVOb7/AIy3WjBmkCqnU9CDyWsYO4Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AC487204C; Wed, 18 Mar 2026 02:19:32 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D00393F73B; Wed, 18 Mar 2026 02:19:29 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:00 +0000 Subject: [PATCH v5 16/26] tools: mm: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-16-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=615; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=wVjQowvxpAB2zn18RKm3JYBDwmaeJ2pheT83qKWdB5M=; b=OfIPz2NK+eKf4M/YHZZRCeJ8LVckjXpTtx4gGc+J5cizMQkF0kZl47pUTo8qSv9h4/doPBc2G VhDFahFTMdkCZDJZ9HH6SFXcWo28JZ+fa1g6N7Oxb/fQCKR78HUTvIe X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/mm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mm/Makefile b/tools/mm/Makefile index f5725b5c23aa261994b5b42f37c443bee2edebf2..d48491da2edc95fca57c0707c42= 961fde7b02072 100644 --- a/tools/mm/Makefile +++ b/tools/mm/Makefile @@ -10,6 +10,7 @@ LIB_DIR =3D ../lib/api LIBS =3D $(LIB_DIR)/libapi.a =20 CFLAGS +=3D -Wall -Wextra -I../lib/ -pthread +CFLAGS +=3D $(EXTRA_CFLAGS) LDFLAGS +=3D $(LIBS) -pthread =20 all: $(BUILD_TARGETS) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C30A3A4F59; Wed, 18 Mar 2026 09:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825589; cv=none; b=W+f9V30z0F5qKgdS+r/CApYeBFU5uTFr6G/BS83vgEI3UdwpizQ47RDYKJfebR9NspS85W5W3vCLA0GOyGz61GGUbk10bt6+/SNLavueGdC9aFJKWj0MXH9d7YA5oR9sbxeNgDRPC57GpGcUsiHBG323yce3fC2S7IZDSRnm/F0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825589; c=relaxed/simple; bh=WrTOUbk4CcOghtzOj6w4eBn6soi/8Xdlw6skjA/jAYw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dgXJdwmhnqE9EIxljRKREvOut2fwV4upUOI6EnWoJvLu+ZlYK4hsmbHvZwRwaKl+oAuBHcQovqhq9QGVwzl5XgkvG9ve83jGUi0iJRHzy1qJNgo4SnJUAPdkmzBi7plGFSzUDNgQKQW5cERbK3mwnwEBOl0GLLPbHb1NkMU2f8s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E2E2C2050; Wed, 18 Mar 2026 02:19:41 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 107DF3F73B; Wed, 18 Mar 2026 02:19:38 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:01 +0000 Subject: [PATCH v5 17/26] tools: objtool: Append extra host cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-17-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=851; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=WrTOUbk4CcOghtzOj6w4eBn6soi/8Xdlw6skjA/jAYw=; b=ZuqwCYLhUZ027JAyzszuyC7oTejU7IdJQsyCGgYIzMWOpFbOC5JDkkJsFDqc5grSGh8ibGJrg ODfuN2vgZiKBs4VsKTy8R4ulFik3bc3cFMqRg+Ngs9HfrI6e+vXWbUD X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append HOST_EXTRACFLAGS to HOSTCFLAGS so that additional flags can be applied to the host compiler. Acked-by: Josh Poimboeuf Signed-off-by: Leo Yan --- tools/objtool/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index b71d1886022e9b3d9fde52bf73bd502aa20d173e..a41fb2a46217bb14fcd8d0941c9= 9d102945c3f2d 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -60,6 +60,8 @@ INCLUDES :=3D -I$(srctree)/tools/include \ -I$(srctree)/tools/objtool/arch/$(SRCARCH)/include \ -I$(LIBSUBCMD_OUTPUT)/include =20 +HOSTCFLAGS +=3D $(HOST_EXTRACFLAGS) + OBJTOOL_CFLAGS :=3D -std=3Dgnu11 -fomit-frame-pointer -O2 -g $(WARNINGS) \ $(INCLUDES) $(LIBELF_FLAGS) $(LIBXXHASH_CFLAGS) $(HOSTCFLAGS) =20 --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2C393A4F4F; Wed, 18 Mar 2026 09:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825598; cv=none; b=DSsCQHIw8lhpbIyhAw5zfAV5BV6wYcd+FzDWBf5fI6GxlG2RoI6ja4sLdGGAn34Op0GAwpPpWi2rhZ9Kh/PwMM+j1JyR15Gqu4pdCRy5fl/0MZLF8o/gYmMFQJNEvLnF/+YQskMMwSbyAuan7iUjDoFJcVdypd06YbQz4keaNR8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825598; c=relaxed/simple; bh=+JjISCoCiswO66KwqDpEEqU/V/TxnMe7dGCpZMrmE4A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uSmITlyTq+WSTRQeTeD36h8IZ1+iAjwhUeGt3/L8a9kxrcK8u4q9wQgeacTYiM2HMvMAxttNX32w8D8BpodCi7tt+J6BZAnxWyzXZ+pg3HT1EC5I9U9ffnYMNdJQ3QJ1DLtYuSFzyvvqZ0diLElerZOMHh9j6J0htQ/c6Qcv0jk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 207601F91; Wed, 18 Mar 2026 02:19:51 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 443A53F73B; Wed, 18 Mar 2026 02:19:48 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:02 +0000 Subject: [PATCH v5 18/26] tools: power: acpi: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-18-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=763; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=+JjISCoCiswO66KwqDpEEqU/V/TxnMe7dGCpZMrmE4A=; b=w/nXiIIWvKrB9uewLr8SBgFG0nPRi6Vwlqjevvx5PivFNsTmTDGaSZuQ0jowETp46hFsGyw6I 8P7dZ+fgk6KA6c/0f09jwvw5/vkWS6GflN5Wsa8ceFg0bDQyEeMD/0M X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/power/acpi/Makefile.config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power/acpi/Makefile.config b/tools/power/acpi/Makefile.c= onfig index cd7106876a5f39dfda38e286c54c3a7c268b34a2..11088deab42ee5a793f978feb9f= 4f7bb7024c48c 100644 --- a/tools/power/acpi/Makefile.config +++ b/tools/power/acpi/Makefile.config @@ -69,6 +69,7 @@ KERNEL_INCLUDE :=3D $(OUTPUT)include ACPICA_INCLUDE :=3D $(srctree)/../../../drivers/acpi/acpica CFLAGS +=3D -D_LINUX -I$(KERNEL_INCLUDE) -I$(ACPICA_INCLUDE) CFLAGS +=3D $(WARNINGS) +CFLAGS +=3D $(EXTRA_CFLAGS) MKDIR =3D mkdir =20 ifeq ($(strip $(V)),false) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03B4A3A63E7; Wed, 18 Mar 2026 09:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825609; cv=none; b=WXf0eviubln6Ia8H/W5HNSTCL2I3wRo6zwdFBHLmhoMooj31YVwEWskFn7Fer62LAnxjIGaMq40xvYHTFseRb777rZHp6C0G9qmu5abbLB5JRMLubHfDGSQ8OWnhOYnZ3lDdS9eWBjLyTpRi7rlLBDkVIBEpDIMeY0KFCnH7ux0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825609; c=relaxed/simple; bh=Rgzo//pe6jtJkqHszW5b83Q1eWN+jdj6CyAqKjTaoAM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CE07mx8Osy2Fn3ng0iFtOA6NETD+wBDhnzhG+N9Z8I5MnK6rfTGyA9ssInpIR/qURqeg9w7qMdRQ7t3u0pZhVCyZE2c5ZfMo2KVr7OguCgA7hlA3O0xjIpB9gmoPJi1xBHiW3zIkqkj2Bxp4hAoMsDKGg2GiWNItVgDjcLnyX70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5EF15202C; Wed, 18 Mar 2026 02:20:00 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 788BF3F73B; Wed, 18 Mar 2026 02:19:57 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:03 +0000 Subject: [PATCH v5 19/26] tools: power: x86/intel-speed-select: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-19-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=875; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Rgzo//pe6jtJkqHszW5b83Q1eWN+jdj6CyAqKjTaoAM=; b=sRpfpqRlTI3IJfbzqXNZBCERzfu7CzU+oiklo0gCXTxGtctBoilHEMCRVk4VdTMLQL9ytLfLZ 086fWrIYoiMACfdNlABONEp1sfiJKBxTspfrcO9EQyTbqmqk27TQ462 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Srinivas Pandruvada Signed-off-by: Leo Yan --- tools/power/x86/intel-speed-select/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power/x86/intel-speed-select/Makefile b/tools/power/x86/= intel-speed-select/Makefile index 6b299aae2ded89c3a70a3649996e258b98001ee7..5947afce9fde7c054647fa3ee0c= 661b60b863f29 100644 --- a/tools/power/x86/intel-speed-select/Makefile +++ b/tools/power/x86/intel-speed-select/Makefile @@ -20,6 +20,7 @@ NL3_CFLAGS =3D -I/usr/include/libnl3 endif =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include $(NL3_C= FLAGS) +override CFLAGS +=3D $(EXTRA_CFLAGS) override LDFLAGS +=3D -lnl-genl-3 -lnl-3 =20 ALL_TARGETS :=3D intel-speed-select --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 438053A782B; Wed, 18 Mar 2026 09:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825617; cv=none; b=fQczlwtTotu+8kQLB1KH45Eqv05aEtJeFsYHj1VUDGUwQFI07Q7o2o6oHs/tbFhcXP/kHvRU2L5PeJK9tryBdNwmdkLAjaYUONzo8F5/LOgfpH1E0diAx67EnoX+u5W4aCJmNMh519KTuJbAkNR+7/zzwDFP6bRgMojwq4jCW8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825617; c=relaxed/simple; bh=SeDVOquLmPwaUVXLNSt91lMfLrGLKxvtIpmiK9hIWkI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YG1gWteonEsRzvi787QdOq0XIaz8mx+fse3Qp+Wb7nZwrnuQ6VUmdf0ngBnnDMcBb9x/MscO27mNllv22Na9bboYhH4f+DCMiZmbf7ehi+MDRc60ICi8Mtl3oIsqLMXFV1ZsFe2or510GP/pvjxAHjuUrjWfbvlM5I5TrOkMaNE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9E07420E3; Wed, 18 Mar 2026 02:20:09 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B4BA33F73B; Wed, 18 Mar 2026 02:20:06 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:04 +0000 Subject: [PATCH v5 20/26] tools: sched_ext: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-20-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=747; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=SeDVOquLmPwaUVXLNSt91lMfLrGLKxvtIpmiK9hIWkI=; b=nBYl865DG/zGB2wtfpA6CdsSophmkhZ7/qXfMp0EbxpL1JVQBQ7X3OLF1R/KJqwQg9pyrzojm s0qidqg/hf7DaSTdBvjy5MX9WBBRTBakWp5z9lWg3WQ2CIhD2h1Gjex X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/sched_ext/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/sched_ext/Makefile b/tools/sched_ext/Makefile index 21554f0896923fa9c2e5b98c85d65d964152e592..e0d705b2fe0ca763fece5137ea4= 3ccb776d18012 100644 --- a/tools/sched_ext/Makefile +++ b/tools/sched_ext/Makefile @@ -92,6 +92,7 @@ endif CFLAGS +=3D -g -O2 -rdynamic -pthread -Wall -Werror $(GENFLAGS) \ -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \ -I$(TOOLSINCDIR) -I$(APIDIR) -I$(CURDIR)/include +CFLAGS +=3D $(EXTRA_CFLAGS) =20 # Silence some warnings when compiled with clang ifneq ($(LLVM),) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 751BF3A7F6B; Wed, 18 Mar 2026 09:20:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825627; cv=none; b=DO5ggqrWW+TVsSb6rMpu+xYbn/jZe9soocYlRK0NIY6I5Blk32Nv5uICNkWoINMuc0HInzyF4xFeqoHarl93hb5rcU0FZmSleHL9327kFzrzCw8fLapQqzJY1VmkR1hCrrZFVcq6MoGkfaQiEaBS7LfWkRzK5MIhaq34lCyWQdo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825627; c=relaxed/simple; bh=Y3fYUfec7IdYKkZMHnIhchrzP1QeLhY68m77wtq8xP4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LJlg91FnTq2dT0GzWDR48RcCcLPURmhcnS2lGI36C0uRX1hjr/2O9ZWUSlLjDd/20blxrMPdpgvFPOCizxpffznt/iTP8agiuqZB5WbDqU9JGZLMNWGxHova+hl3LwVOwe3jt5h/tgcL6oYrajTgmzD8anLa1C0myN9vApCNq0o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D5D202103; Wed, 18 Mar 2026 02:20:18 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 029D23F73B; Wed, 18 Mar 2026 02:20:15 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:05 +0000 Subject: [PATCH v5 21/26] tools: spi: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-21-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=694; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Y3fYUfec7IdYKkZMHnIhchrzP1QeLhY68m77wtq8xP4=; b=HAaTBO74uev1Wus8JAI4tYiKYkj80MeDHVUqoQgVt/GZX5VJXdPDFc2OK5n/uYm34MbRmMay+ OGuAUe8qD+oB0kaYaOy86rxXKO5ReqfPypjjIrtng7wIO45pc07y13n X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Mark Brown Signed-off-by: Leo Yan --- tools/spi/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/spi/Makefile b/tools/spi/Makefile index 7fccd245a53515ab019529c8e5e91a044eaaa68b..82f9bc6365911b962422633147b= 108fabc70a2db 100644 --- a/tools/spi/Makefile +++ b/tools/spi/Makefile @@ -13,6 +13,7 @@ endif MAKEFLAGS +=3D -r =20 CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D spidev_test spidev_fdx ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5B9F3A7583; Wed, 18 Mar 2026 09:20:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825636; cv=none; b=oL/6T+OxRklAFSQ8jWFaQE/EnTAk1FOwcGKYMGE2zotqdYVt2Ir30uc/0+auhyyG5hcygHxU30kPk8L8g1wk5BSw4eujIf1k9CXgxXDsaE0PJz6Dyk6d8qY25v1JNt0qQIHyHgttuDWKXxMfL8H5zPoyQos8JxowNtxhzYHj8fY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825636; c=relaxed/simple; bh=kBrxjsAsoUP4ghwPhyQYeg8vEMKcbDL/VfSOIh63ImI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HwkQsyqKAuQ0ThqLTAC9C7tNfd7hpEVymnBHupc+cX6djwgvr2Ko78mMhMGCtUxG3GGtMK3ipvyQFwLLPvxJfMKRu9BLAuNzMSS/8PVdUHZG0y3qWl+Yx+7bVioCoxz5PDsWg80K79kdboIJF4nt1CcBdDkiwrV9qyeJOhnRqtc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 299EC22BE; Wed, 18 Mar 2026 02:20:28 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3A80F3F73B; Wed, 18 Mar 2026 02:20:25 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:06 +0000 Subject: [PATCH v5 22/26] tools: tracing: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-22-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=691; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=kBrxjsAsoUP4ghwPhyQYeg8vEMKcbDL/VfSOIh63ImI=; b=OkYzSSyuY6BgAvke9aTalX5mXB+0zBqq/nxp451+NVFX1RtWYuACIY+YTig7KaHn+I4OWcb65 pBjXMiIUEf6AyWEbN9jVbj2OZ4z3cUa0aZyMwk0SzzGy/wkw/nVfxfm X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Steven Rostedt (Google) Signed-off-by: Leo Yan --- tools/tracing/latency/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/tracing/latency/Makefile b/tools/tracing/latency/Makefile index 257a56b1899f23837de533353e9c2cebdb6035bd..d32a6a13753035355f0e3a05bf8= 8870b8aa55f64 100644 --- a/tools/tracing/latency/Makefile +++ b/tools/tracing/latency/Makefile @@ -57,6 +57,7 @@ ifeq ($(config),1) endif =20 CFLAGS +=3D $(INCLUDES) $(LIB_INCLUDES) +CFLAGS +=3D $(EXTRA_CFLAGS) =20 export CFLAGS OUTPUT srctree =20 --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E95D83A7F40; Wed, 18 Mar 2026 09:20:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825645; cv=none; b=j5zGFnNbSZbDFJppkosI3aXD4CaK8dcFGqfBYaRVYq+tTdV/DpRpXf+SBL+B/OHmpfl+uEByZbkc/kCQxl81xYLnkfKlWgEUI3EV60Jmr25FQlg1u4I1ciHp80PBmD5j5xS3SMYQMV0p2BVP8Er2TpbGk1me3/d0DhXYfbY+jCU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825645; c=relaxed/simple; bh=mYlThUq1iAN/tIV3PsjLtm1fJPfV0aj3FB6Qm/569bA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=US4V+DZDrCxbmMju9llK2kXJBXkHamWdDjqRdz5gL9rYk5CwNGQiJOXp6CaU3W5kOfILCDGLD2B807Ho7pMq4kfvssdjyu4TYCKak4Yj4QO4DkCnIJCSWhc3PkGk0MFWRJq63zcv/3XVBnEgfKXeYI+e+JnFJ65uK4Asl2OYfIU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6DD081E7D; Wed, 18 Mar 2026 02:20:37 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7F5233F73B; Wed, 18 Mar 2026 02:20:34 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:07 +0000 Subject: [PATCH v5 23/26] tools: usb: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-23-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=672; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=mYlThUq1iAN/tIV3PsjLtm1fJPfV0aj3FB6Qm/569bA=; b=dc3omvLvxFNGEMbRJUc7CKbxib+xiQXToOSaFiXoNm2/7vmWBteNhCqC04HAl/Fg2KPQmOzVz Hhp26F6iDibC3L52NYsHEFuqWJdFPxsmBYehUiS1EkwBqDZq7Hds/Ay X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/usb/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/usb/Makefile b/tools/usb/Makefile index c6235667dd46223b646bbab5c82c810221750182..42362dcdf2743dace62a5385a7d= 2707c42bdd3c0 100644 --- a/tools/usb/Makefile +++ b/tools/usb/Makefile @@ -14,6 +14,7 @@ endif MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -Wextra -g -D_GNU_SOURCE -I$(OUTPUT)include= -I$(srctree)/tools/include +override CFLAGS +=3D $(EXTRA_CFLAGS) override LDFLAGS +=3D -lpthread =20 ALL_TARGETS :=3D testusb ffs-test --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F8723A63F9; Wed, 18 Mar 2026 09:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825655; cv=none; b=Jjwu2+eWrA25/kVHhjDZ0muVXeFaNfpNQkGOMdXnppkEl2btxrBFtg3KjSZQN9fDTtHGxo8D/0MZ1pHJFfQek6MQIJ2LccVmE/jvEFkUCt5Smecs/MKgMiiNuhc9hzyakke2QJqAcLWl9kRIGd1IFPufeuqm2z8AcfJlYLjJI08= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825655; c=relaxed/simple; bh=I+txdPEFIu4th5lgf2+eCGWjywMXv8xD0Iam5VIr81Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lvweP4Z2VCr8uocLqkbxsMd7vHggzRSZl0X7hRA9qQxCDx6OU3wTVpGliFKBsNPMWCJbj1s82pnmxaR9zoCdWfQRh4Yn2B+p9z6mYNFA0r5YKGWS4ueVX4hQJuiOjr4lPgZYjN762fu2wfrwzoFJ9ba/r9zqlqF514r0irMALUY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id ADC3F2247; Wed, 18 Mar 2026 02:20:46 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C3BE93F73B; Wed, 18 Mar 2026 02:20:43 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:08 +0000 Subject: [PATCH v5 24/26] selftests/hid: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-24-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=774; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=I+txdPEFIu4th5lgf2+eCGWjywMXv8xD0Iam5VIr81Q=; b=HZamFLZzzbrllUPxiJ5FCACbc8M8TdozdiMPnBpTIvvKrXVt/wIG+8rquDZo4nmrAnIhZhgSV Fbj8fkO05hgAFHLGDqTHRs6eEe/oHVPyNT/uGAKLfTRMXJgMJcDd4bT X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Benjamin Tissoires Signed-off-by: Leo Yan --- tools/testing/selftests/hid/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests= /hid/Makefile index 50ec9e0406abaf316fba232c5da1967e27d0fa9b..686c5f79ca592c2ce94e37b39ab= 5c3ebe8483f79 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -26,6 +26,7 @@ HOSTPKG_CONFIG :=3D pkg-config =20 CFLAGS +=3D -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT) CFLAGS +=3D -I$(OUTPUT)/tools/include +CFLAGS +=3D $(EXTRA_CFLAGS) =20 LDLIBS +=3D -lelf -lz -lrt -lpthread =20 --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 741583A9013; Wed, 18 Mar 2026 09:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825664; cv=none; b=F5O7Rv4V0zarDvjZCk4+GDUBnyMl2DmSzsQrhehllgTjG7IQIqEqBuaimsJO3yq64paQFyVN38QjdQxuedxs7m5yRzgFxCYuGbEQPkysLXcPZvZmIRNHa/NMvT4hjothEXv2RfxoVRrM2gY9/F4QmDHS5vQIyKvhUg71ennfmxw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825664; c=relaxed/simple; bh=x2h+4FB5LaYokMgKHEvZZeyJKpOwoKiSiosB1fOmqrU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XEzGxtL3XZn77DwuUILoZlnHxuL+Ge7EhqEoZNrYEPOHu7KZ2TIGa2eO5GiTsDbQKwyWjbo4Uag7a6EonOIKDVk7OY9dh1OeYHSOrHPrE/cscSSkJXsycuOJVH6GuhAsdV/ORwq+hZDuuO+76ZCZvpWZvqI8kb2Ntysi8zxw1Us= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E74DB2008; Wed, 18 Mar 2026 02:20:55 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0EFCD3F73B; Wed, 18 Mar 2026 02:20:52 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:09 +0000 Subject: [PATCH v5 25/26] selftests/nolibc: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-25-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=1451; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=x2h+4FB5LaYokMgKHEvZZeyJKpOwoKiSiosB1fOmqrU=; b=86diJBsidIsbxd+QyonKL+CQAz+Q1KZkYa+Qrua4pDJEbEQn+TlPK2abrAoVcTfIgF96GWV5d WBzDj0G+3rtD5RmgBkp0PHl6Vyg1jjiWuHQ0RTmF2UWTbXtUW0FHOYy X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Include tools/scripts/Makefile.include, which may provide additional flags in EXTRA_CFLAGS, and append to CFLAGS. Since Makefile.include already defines cc-option, remove the redundant definition and include. Signed-off-by: Leo Yan --- tools/testing/selftests/nolibc/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selfte= sts/nolibc/Makefile index 0370489d938b540721a4fb814ebb68c463760e73..7b65e6f9840b035c1d8580574fc= 3145318b278b4 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -3,18 +3,17 @@ TEST_GEN_PROGS :=3D nolibc-test libc-test =20 include ../lib.mk -include $(top_srcdir)/scripts/Makefile.compiler - -cc-option =3D $(call __cc-option, $(CC),,$(1),$(2)) +include $(top_srcdir)/tools/scripts/Makefile.include =20 include Makefile.include =20 $(OUTPUT)/nolibc-test: CFLAGS =3D -nostdlib -nostdinc -static \ -isystem $(top_srcdir)/tools/include/nolibc -isystem $(top_srcdir)/usr/i= nclude \ - $(CFLAGS_NOLIBC_TEST) + $(CFLAGS_NOLIBC_TEST) $(EXTRA_CFLAGS) $(OUTPUT)/nolibc-test: LDLIBS =3D $(if $(LLVM),,-lgcc) $(OUTPUT)/nolibc-test: nolibc-test.c nolibc-test-linkage.c | headers =20 +$(OUTPUT)/libc-test: CFLAGS +=3D $(EXTRA_CFLAGS) $(OUTPUT)/libc-test: nolibc-test.c nolibc-test-linkage.c $(call msg,CC,,$@) $(Q)$(LINK.c) $^ -o $@ --=20 2.34.1 From nobody Mon Apr 6 18:55:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E88C03AE703; Wed, 18 Mar 2026 09:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825673; cv=none; b=f4r4EpYWwfOf8UhDYQW8ehC9oXG+UGAVcNB7fnrGqU/EwQVAHJLj0BZLFASeM73al6KIdpRguo682Ud/NUlERMMY6RYnam0cO+N//A7t0xPDu8vbKf/P5I7rq19pg0xQL15VHqlXWBZf/PAXUWXRSCMeeRGvfR39d8r73Ae8dvI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825673; c=relaxed/simple; bh=u6vnl/Tc6siw5/z3VuI7EgUIJilNCagL/0epWPyB+xk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c17PJam3FSQpTdvN92TdNCeaVcPw5+/nZY+OI4gcj3ifPgLkQ7vfp0weDi2DIEezQClWqqsDZe+K0eWLXSm6rTQ5K+wCxIC523WaN4oQCtaP5y2tu6qtV5DC2GpSYipf1c3sLcCfJiE+ahneKia4LZBxOgMfqkNy+iNGTKNZ8ZQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3A38522D9; Wed, 18 Mar 2026 02:21:05 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4BD6A3F73B; Wed, 18 Mar 2026 02:21:02 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:10 +0000 Subject: [PATCH v5 26/26] selftests/sched_ext: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-26-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=901; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=u6vnl/Tc6siw5/z3VuI7EgUIJilNCagL/0epWPyB+xk=; b=D7NYsutW/NXxShdTUteIjA8Z+l/O6POwGn+5Xgj9yepAFnQR08U8SSTLbwwdrN+2BvTC5olpU +7ojN+qQqBmD2OFTToyy/n1ILKXFPjLg/sanqOrmM1zqAyHuSUo+/db X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Andrea Righi Signed-off-by: Leo Yan --- tools/testing/selftests/sched_ext/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/sched_ext/Makefile b/tools/testing/sel= ftests/sched_ext/Makefile index 006300ac6dff88a48104977398d8517753e7e385..2c8fbc9f8666ec4d6f75dbdd760= 2bd4f2b502aed 100644 --- a/tools/testing/selftests/sched_ext/Makefile +++ b/tools/testing/selftests/sched_ext/Makefile @@ -56,6 +56,7 @@ endif CFLAGS +=3D -g -O2 -rdynamic -pthread -Wall -Werror $(GENFLAGS) \ -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \ -I$(TOOLSINCDIR) -I$(APIDIR) -I$(CURDIR)/include -I$(SCXTOOLSINCDIR) +CFLAGS +=3D $(EXTRA_CFLAGS) =20 # Silence some warnings when compiled with clang ifneq ($(LLVM),) --=20 2.34.1