From nobody Mon Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03FDC26B742; Mon, 23 Mar 2026 15:13:55 +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=1774278837; cv=none; b=SjrIbhN8GiYJNaIJUVk71OIjDecSqygTxbVP0vdGOqP4f/qXUZum9n7Mbo478t06NjNC4QPdRJqV2R5y9V7YYNlOS24Y9D4tY0xeShB9HuV1tC2LWGx3wJeF28bJ1k8WppqyooRB6VkG2qvcSHiAZa/uzy+tHD9rxn/cKfobbwk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278837; c=relaxed/simple; bh=QlxqPfGlmp00Gm1LThv7H+jhWuYECXWFEH8vLVpP9r0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kdNyPao7dhVny/GHn6C8wz9azqasOVkVFxuoP5NHxcNReZx1zSayCZjbuX9ZMo1fiM9f9wUMCPKQ1bUO7KAXYgL/LefN3jcLF3o4KiFJt0lh/fihDID3Fwz9u7T2s8KTJMvZIqzqe3vbcQPN8sMCaV6oXsBJYh1Z/WHuGThGtao= 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 6D593169C; Mon, 23 Mar 2026 08:13:49 -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 2F6B13F694; Mon, 23 Mar 2026 08:13:48 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:22 +0000 Subject: [PATCH v6 01/24] 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: <20260323-tools_build_fix_zero_init-v6-1-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=820; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=QlxqPfGlmp00Gm1LThv7H+jhWuYECXWFEH8vLVpP9r0=; b=XWmJkfytaEHdNoUOzZPWlpbaI+VUBe+bhBMbGgiBwOLnrf0PN3ECasJrcPW/vNBpW9MWd+JZI z9RitMgP7geDXgYTcXIyewRcd6KAA+CvDRVQN8hoxArmopTJ/PiMps8 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E51C3AF659; Mon, 23 Mar 2026 15:14:03 +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=1774278844; cv=none; b=Rh+V88gwcajWUc5Wv2TVAkLA8WeV0DK1wUAqVTbtLDVyQibxVeJUPZM+UEdv0xkJwfKzJ1UGEmbpsMWOCw6LOIwBSlZJLUWmDCdJauyU/qLzGhKfXcZwXpkRxxzGYavFvJAV5b/TXAUrUgAx1bb3arKeqWoCYPGXiM5KsVwBdws= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278844; 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=Ed6rk2LDR0bcv9fsVr7WM/L5/7z3IqNWQ0rih1daI9gVoX0+lD1i7zIrM5p1rEAiNborhfuaDPzUSbJIIYPn1+E1TGNlVlEfd6pwZtXUvi81L4n5CG+KVx1DfxQaevAt6k+fr895A3ZxRccvbHObJU60KrQ+A+y8vDuIJ3+BReU= 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 E46751713; Mon, 23 Mar 2026 08:13:56 -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 A60503F694; Mon, 23 Mar 2026 08:13:55 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:23 +0000 Subject: [PATCH v6 02/24] 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: <20260323-tools_build_fix_zero_init-v6-2-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=809; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=+9++KEwNlOxG/SfjKjCjUr8ot7BiZ+JJm87pV/Atazc=; b=iAyCk6GmnB5oPu/7e57c3BI60JcpvywyshrCD4yzYZmY551S47yJt5Vr0NYf/hDHk3EPYQmb2 wDmDN8N1A77CGQKecgfFlhg1uPO3gzP0uQy63VOXMOcrvKzR1GKrj6C 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E12D33B27FF; Mon, 23 Mar 2026 15:14:10 +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=1774278852; cv=none; b=gayxp2ZHl2gI4s+NGN1zvZ/q3OMIGe3PuA3xqYTNgYU6Ej1CjRg/fvT0CpEImUNF5/ob0w8yB0uVh8WGdVOlBVDjqKqVfXBKyAj83NZZ3X/ahBOmdLwxSxfHmRC59kR8Y9Arphy9i/e+6urQhJ9iCEemYPvx/kWSt6AR5WQKz1I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278852; c=relaxed/simple; bh=HHiufcx01zjsi7OxV3Txr2WMedIY5n8R+m3Nlsc8pBA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U6HDkrdkJBAMS/C/34OdyPoOcCfv7gW6Swgvly0U7jipUjiWGKba+dX/BK6hAt574BRPKu+s2TCjKH9R3DFKpDg/hGI8lPCi/RAMVCEQiRHiw26qF/C7ELS0dStUImVSDGavlgv+RZo0H2aNKFpOAkDmhLCTX1vag+p0P0cJL2o= 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 658031756; Mon, 23 Mar 2026 08:14:04 -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 2847E3F694; Mon, 23 Mar 2026 08:14:03 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:24 +0000 Subject: [PATCH v6 03/24] 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: <20260323-tools_build_fix_zero_init-v6-3-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=2051; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=HHiufcx01zjsi7OxV3Txr2WMedIY5n8R+m3Nlsc8pBA=; b=i5YuBBtCcjN1uSCuCzVdTeJuZwYbEKy1ip0iqLL9JBH9QSprjyQ+sZSq88rp3ychtYGBMb/wg t/tEyFSSGe5Bt7cKeVJwlJDUFEA0ltnt1H3dnNdQzXdgzd7nKnEAeto 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6362C3B2FE3; Mon, 23 Mar 2026 15:14:18 +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=1774278859; cv=none; b=kyH0Q8Vp7WLsCJqfcAacowk34FLv/9XMhxJK3vP7XgZhod313/qRjxSklyMxaap290De4PRpYTlb5IWjDN6ALMcOOFfPGoFW1Ggh6qsAdXvcG81NzEgCCXYJtAtWEtYRyiLhJGtiOEOTKD+MDuuaKM/ikrQlxmAh7XyHyXHJjpg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278859; c=relaxed/simple; bh=BFehMj28QR2IYXlxOIJtUAyqZ+kYk51QCcp6lZ5W+HY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QV7Bvq+4R6uU2B46+g8veMAr4dNf3WPjBuAZEZ3+ELa9lJV5MZXzjT/zJv7Md4bbKDaeF+s8v+7zm9+geF/6tM7GRErXCECHzLSCuJEncqz7cVwaXWyNLxKmB9vJD7onEzN0d3Gr5/8iWnoFrQc3ul7U/Lsc+wrcSW10zDesL5Q= 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 DAE8B16A3; Mon, 23 Mar 2026 08:14:11 -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 9DD9A3F694; Mon, 23 Mar 2026 08:14:10 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:25 +0000 Subject: [PATCH v6 04/24] 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: <20260323-tools_build_fix_zero_init-v6-4-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=1994; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=BFehMj28QR2IYXlxOIJtUAyqZ+kYk51QCcp6lZ5W+HY=; b=XEE2aMp5aLmjQ3GsTDbXJ8ihF3x6Ydn5ONySXwAJA8UURgi2TXFvBPTMZHqRXxmCFbTO+8+44 WI5ZeM1VOxDAlDMWOVUmj6agnbkKnTCxarMVjo8V/OLA/LqJhGrZDN7 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF40F3B27C5; Mon, 23 Mar 2026 15:14: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=1774278867; cv=none; b=YPhrVuYv61teJ+ynXV8pSuPKVkFa7/fc738gbE6PRlfPrE68CLDQgN3pOxCkHZyXFdlqP2qOm8HOc0M84apxqLBgW2QhRaElw4AtRcGMscIG2kY7EpFFBbe+bThKor7GZtXV4Md1Vk/msAohFtNfgN+3B9u9xjOCukFi+bd/JuU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278867; c=relaxed/simple; bh=NWqH78wsmi6y4jjQ8qhIYxcnenhctkfjAsE0nlrnoMY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OdRwWkewNDvVvdWdsoZHNlfIWF6jSe1YTDz2vC+lVOok32W3PTVAFdK0l1EhIdYfupp+0qHyLuqrfhRCjTuHXe3+slfUJWZEToOyczWjWTyqibr9JLdvZuyy4XkkhDdsf4Py77zXpkVYu+pnq7YOSoI/5l4yaO3gsUWM+XXr5Hc= 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 5C68F16A3; Mon, 23 Mar 2026 08:14:19 -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 1F1C53F694; Mon, 23 Mar 2026 08:14:18 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:26 +0000 Subject: [PATCH v6 05/24] 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: <20260323-tools_build_fix_zero_init-v6-5-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=2805; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=NWqH78wsmi6y4jjQ8qhIYxcnenhctkfjAsE0nlrnoMY=; b=uAbiJgiU8GdnWOe3pCWxM2eI48EQZuBvYeSWhzkjrJrxGT7kwPkzj0zjYyqT4cP8FqgLsv7H3 vPfgQHnTjJ7BxICZctPzWv7lzq1Mn1aKU9B49p4oqZ/pcYFxl6ZEkT/ 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E83D3B388D; Mon, 23 Mar 2026 15:14:33 +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=1774278874; cv=none; b=k1CFW89B8SlIB3fAPApfwtlGIZPJCu2fvv3/CCLO0indgdA76MGHRAr+y26GAMFOTbcqCqjb1dVj71klDLSNtMYnOeTU+fsGUId8GgDln/BHjuvq0eWgwy7bf3pA4Pf/kuJrIZ9PPOEHJBo+pEayuDT7hpNGzxT+I8gZeTJG9Sc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278874; c=relaxed/simple; bh=W1Q9TUYmS2oOVNsuC5F4lc4Ge7O9HF7hQY/yiHfp7+Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AY4PJExXsggbQs35mlsJktrFNgPov4CdDa+ncz4R7mweS9exZxS0S5Q43M5wQ9liDxhVGlEqqqEb67x47ZEwNzpAfQnoWZD1eNF/bhE/yYvcLldkH11ccWXrKMKZsccdfQJtLA5tDJv4nyD2SSIXrz8lpmzISotR5LK8C/qhWhQ= 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 CE48E14BF; Mon, 23 Mar 2026 08:14:26 -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 955903F694; Mon, 23 Mar 2026 08:14:25 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:27 +0000 Subject: [PATCH v6 06/24] 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: <20260323-tools_build_fix_zero_init-v6-6-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=1086; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=W1Q9TUYmS2oOVNsuC5F4lc4Ge7O9HF7hQY/yiHfp7+Q=; b=VKxf2x4lQ5V9QI3Lp8hxHXx8hro7JjUA38XzXffmG+OPTZJXLmCAzI2k/1TmSPAc19JJyaWgf B2GYNZlkIWSA3f9m6nHcxkEdOgMPWFwTM4VqD9y0wocYD6oQrTjtceF 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E83A83BC69A; Mon, 23 Mar 2026 15:14:40 +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=1774278882; cv=none; b=i3agjAjouAzO4FVPUyrGfo4Pz/wYeCNlDLmFcw7CeOAwdQ8wM9TwKop6qESIORA+2sdp5DN4cy0vFgjC3OHzba5sVmB6tee5K109K4aud2g5+IWIOYljWZ1taJzGlNNIEOZfPcopp4B67z/xL1y0a3K+TFAm+MojpaFs3RDTw08= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278882; c=relaxed/simple; bh=G2cI6gno4ym5dTpFGJCwLPZT6MUzcUe+/hvBAAojmWk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H9yuov2MkYQzP32KmK2YvEETPcWyPxJ2yByqg3mvMxQC9KlXrdvq7ysXsjG1P7c8zFlMuXIo31+9XlHABUQeF0+tBbhgF4JSkh2IVgJJ59VEQzmIKi2D4liABwvy/ZdWEH2utx3BBUks+PCsY39rkrpGqY4zJf6zzpGobvRNRG0= 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 52B44169C; Mon, 23 Mar 2026 08:14:34 -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 155923F694; Mon, 23 Mar 2026 08:14:32 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:28 +0000 Subject: [PATCH v6 07/24] 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: <20260323-tools_build_fix_zero_init-v6-7-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=1108; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=G2cI6gno4ym5dTpFGJCwLPZT6MUzcUe+/hvBAAojmWk=; b=5QKebDBeAZ/pc2accguDTj5Sfm0RY13rOKw4uq6t7UVkkEvooa460dzl2DMYhTZBmGqvxqe28 x4ISV3PEB4oCUXW8jVN5Y4pPA1urohAOAaiBQAL1Z+j+lBN3vyXF1s6 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98A6D3B47E6; Mon, 23 Mar 2026 15:14: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=1774278891; cv=none; b=peQFuSykKr+7GJgmuK4hi+A/1wMkQIB8Lfjv0j4Jwyqzvj4PIqDNkzTjmlm5uCP3UQ3IcY/bNgXp+sfBnIoCuNNHduJxKlPKEbepMMx1u6oyO8VrOBTW7BLtZeGr6wzIbrwc6SmyxywVljIsumfsJHupxUfYAqbNyrA7y6/n7W0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278891; c=relaxed/simple; bh=k31Kk/i0K4ZvTRnARLSwM6pAc2QmOSVp+PsTzUqEpMA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VNNvEDmOF1SH9gXUmFGA1mLXBKuFa8Q4jrx2vr/YXOSYL6BPkYgZStZCUWLbX/TMP4s5Q7sKkRsD62Y9eScyBaHWvBmD2HEOpcYRD8715KSXQQ+fIk6XiICzzlhE6jV8hZuH23X0rC1bVZ/FeFUIYhoatsbsGBskrz7yZhmIoEE= 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 C5A20169E; Mon, 23 Mar 2026 08:14: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 89E163F694; Mon, 23 Mar 2026 08:14:40 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:29 +0000 Subject: [PATCH v6 08/24] 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: <20260323-tools_build_fix_zero_init-v6-8-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=793; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=k31Kk/i0K4ZvTRnARLSwM6pAc2QmOSVp+PsTzUqEpMA=; b=Qxb4b3llxk7sNKxlk/t16DkoxFOqQI3hmIGKJxRiyaB6Nnn+vNZnmeXLXu1rvK+gRy/hUhEiE 1mOZH/W4Ei0BSMCg7EG2P/pMrIcJ2Eg2XuQdCvq8uOBxG0Qftser+uT 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03C7C386554; Mon, 23 Mar 2026 15:14:55 +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=1774278898; cv=none; b=EKmLw1QL98P6wsAvwVOpO/Sh1b6OkNljHJ4qJbGros7n4aIPIw0wYnuGiMaFklyi8MnT3lvKzCD8MozhvDNbc4mT1UmlQ2BA11OiEAT+pI/XVXCkOn7sNC4iSviuXPGpbjGNIyUZ+5QJ2ooQQj0OME0V6BlVwD6OFMLEHTJcUGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278898; 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=EVkQhFCiloLsZ5dOYXPBr/v6NIclhxoI6kg42fIG4HWzAn3AzHxzqSxTMQh2h84QaTZ9jFevKbsNzwAlGanqZp/HooE+Tpr7SjANiH5bLI+i3hP8+RQoqNoyUyOqDcRU9e3iB9cLB5BXpbbevpgHsTtUDLTDzVxkwpWjKzfdWm0= 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 442251516; Mon, 23 Mar 2026 08:14:49 -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 0A6C83F694; Mon, 23 Mar 2026 08:14:47 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:30 +0000 Subject: [PATCH v6 09/24] 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: <20260323-tools_build_fix_zero_init-v6-9-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=728; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=8OSCWf/mIU6b3XiEwF8s9we+Qi0eYqNHuTh8/Qvzcfc=; b=kkal7atVFBmH9mgX2fEAAZW930JkGVo2byY04MIRChq4CmMj4ToGTvkOHsE5kE4gmBFA2fBjH X8fGtwXBS+8D0dUlXvs8ioZueaVhxWr+pQryAS9BtUdr56fk0azggZi 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5825F3B4EBF; Mon, 23 Mar 2026 15:15:03 +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=1774278904; cv=none; b=Wr+J4QfGz1V/Z2A/2CMJoacu0oo60zgsQ6NZSZ2m8Cj3oMZVLPHkNy/dCC/66TgqzNAZo4TY7pUmwy+x1xFf4zJaw/VfmVMcSxwhu0VQWkSC3UKp5eJH4Db1DGZ7UB5h5Z3G6gp7v1EKWvB+j/4QiH6yNTkBYtF3aWY19D9udIU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278904; c=relaxed/simple; bh=u0baSWrAsWfZfQ+02tVwtELldH7JfFDkqdw4XEPinVI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uJwpOyT2SF8l3qPyqqvA6lsmxNojmwDum36sws70cSfY6JZE8v4ctcy265Er9ic27Kd1Pkp5CcT4zNfpm+r+JQuLlsSZyVSzxawvm/oRvBpXu8SRliXzNCcAguCsdr915bfbPQbUhFVy5M4TxwnPU51bKnNz6l/45ly2yL3Vkr4= 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 BD4C21516; Mon, 23 Mar 2026 08:14:56 -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 7FC073F694; Mon, 23 Mar 2026 08:14:55 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:31 +0000 Subject: [PATCH v6 10/24] 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: <20260323-tools_build_fix_zero_init-v6-10-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=709; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=u0baSWrAsWfZfQ+02tVwtELldH7JfFDkqdw4XEPinVI=; b=P4ooLvAwGMUOmAUbyRW31QkZi144IGAzCAb5nR1lhCPdmNwd4KNUhJC9IcuAVnxbSAMX3ddmQ n3PhSPp04O7BPt4yow5qS4ZNVNCgrLKnTONSs7Bl7vauDZwYKacO+HX 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFBF73B52E2; Mon, 23 Mar 2026 15:15:10 +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=1774278912; cv=none; b=M7Nm9NG2uhzZg3MPYFKOP5DXIcy5RWWmJ5huqTAENexiCg4PW9CF9/LKlSz6GKAsrNIcMoba8FkFBtVgJ7JIdKXAsflcQifq2sF3AoC7vHYroNzjbY/bWxtNoeXE0bYE9zXqCOTs1/Cwgz2zjL9YOdZE0+fjM1brYaCIlgN4Nhg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278912; c=relaxed/simple; bh=J24uTRo5JzVWWMRzOuokKmYRbu145MN2/Re9B/pDvrA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NXZcq9BfxgoHv9/I8AW/6AmjYWlNm1mzJp0hIiMAt6tTobkY8VU1S7QiX/UYJYZF9keur8SJh+nnO0nJIs8ND+4dsgrhptF/ntufBA9l90H4KU2KU1NiFjfqOWs4VusL8U2brgau4C2x2Vm9itAwqK5vYx3R7JgHTyZhrGF5xAU= 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 589411516; Mon, 23 Mar 2026 08:15:04 -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 019903F694; Mon, 23 Mar 2026 08:15:02 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:32 +0000 Subject: [PATCH v6 11/24] 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: <20260323-tools_build_fix_zero_init-v6-11-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, 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=1774278819; l=766; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=J24uTRo5JzVWWMRzOuokKmYRbu145MN2/Re9B/pDvrA=; b=Y8IDwqtwEfLIchHle+1ZLOoaqvMqFAFIiLjdcorTWZJpebVHPY9Uq8b1gxNXzSZgBXr0nHLN9 S6s1Z/RR6n6CifebyW03xuqDbfDrZiY8I7GAMkY69IcAyusflH7FjF4 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5990B3B8933; Mon, 23 Mar 2026 15:15:18 +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=1774278919; cv=none; b=U1R5Y69Tl4BbD6eDa9ZKjrao1RHw2dFVSjJ6ykpJYVwFMOS1DFFxxYUkMzdGv3H+FJ0p6BuQOvS3I7H6P0TGYvVkCz/5wmeBGaS1r6qG7+eqo6QcwESowqupgzVnVxe1FVO7zkOUCEOn/EN59NzVxS/Hur8LMJ1KkDtE6ZYQ0/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278919; c=relaxed/simple; bh=hGyktyHY0K6JN8j/3c0flG6pW5kwtw4MxiSqaD6tx9c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tkulxkLsHN+Vf0ZC26Chk9BmnrFA77fm0CXlliLxhkyBwjt6unpHVH/v1fApvFQna8d6KLjFBYbJErSRxJcIlCcisOiG1HyfdGEwoPu+xJ8vIdegYAaRB6zAmPpljgVottf+9hEIU415FMPXVn5Z1NGxQPRrMuO14QfUsnjhNl0= 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 CB31F1516; Mon, 23 Mar 2026 08:15:11 -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 929CE3F694; Mon, 23 Mar 2026 08:15:10 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:33 +0000 Subject: [PATCH v6 12/24] 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: <20260323-tools_build_fix_zero_init-v6-12-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=734; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=hGyktyHY0K6JN8j/3c0flG6pW5kwtw4MxiSqaD6tx9c=; b=WOE2oEpy1UtmGJX2RxLUX2O0qIjj3Z96PqH5koNoiIyQZ9NuPhGbvX+Z9eBX7LCUzU+HkF4Ys wqiRCBbdmO3B48p6/PA9tHq6D23ACc2JvyLQHX4p0ORRv3lJtA0B3gT 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 126593B8959; Mon, 23 Mar 2026 15:15: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=1774278927; cv=none; b=OkEMOFZlvr4Ud1L9cdZ9TkoHZzNr3evqlj6Qzv0NnwaRAiNiJBz8L/WwRGFZC6oESlUaonhCViX5zDQJl3r67/o2btRHqh94BJEXY2aQN/cSn0JGIu9hBtswrTY+BKgXq18FbVpR4UzHayjpxhgOlKU1kQo+P6tUh7k6ec5gZdI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278927; c=relaxed/simple; bh=6G4vN+GXgnQlcP90g7lh8vWn+j+ruBrObEc+8/RBeag=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FbXQhvJNif9Xda4cCTy1uRjaD1c/pTb7Vb2CRdq14VvbXA1oGIegZX/0xGjUjVBa5d8nCEw0ffkpa7thqiSAuVQHbykMofv526/xjalWNypc2MUjeBLPTISqPcaAOfQvZQknoks8+HbhqnCkGB/nJY/NQTuZWYTC4PHzd5k5nFA= 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 6B3ED16F8; Mon, 23 Mar 2026 08:15:19 -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 11D713F694; Mon, 23 Mar 2026 08:15:17 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:34 +0000 Subject: [PATCH v6 13/24] 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: <20260323-tools_build_fix_zero_init-v6-13-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan , Jonathan Cameron X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=747; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=6G4vN+GXgnQlcP90g7lh8vWn+j+ruBrObEc+8/RBeag=; b=ajsOYXdmMl+9YLIwSGxMA28PBdYoB7NBp1aJkIrguj1Z7wKP2LY3p0BKT0HwskomKyQoFFIXz S2DFF4Z2OZLA4SsyKrZs/8rjO8JoMSXFCwAgqylpiRI6xZ5yE+IYJOW 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: Jonathan Cameron 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AF933B8BCB; Mon, 23 Mar 2026 15:15:33 +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=1774278934; cv=none; b=NWUpIKL4D/8mAIzeLmDp9Am+0xMqR8yNzwHzc+C8HWHAXmWaWZsKODve9eVsgD86c6wCoq1pxAE8ZrfUdasJ9jc7/6nwAU+2+PaJ0bEtqsoEc+fBP0/nupgfJ5NlAkyH4q/fB+oE44NKLo6yJjdAgj/hmjQfPpGIGQMIM4lKPno= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278934; c=relaxed/simple; bh=wVjQowvxpAB2zn18RKm3JYBDwmaeJ2pheT83qKWdB5M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E43sOZccQAaPIka9iC1iS6Y/govfnaXemFCzB8BdhkrgBevhwHSasqYdjZOrlFjhhgOneTQCzIO7qwZbWEyDugltsQFPnxJ9OvMOnDmBQlhVn6a+D4p8th7fBILh9EzBLSaJ1TdzTYYPPNWsR8yKKmKgvvLSSIsIIJ4wa7Y95z8= 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 0442514BF; Mon, 23 Mar 2026 08:15:27 -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 A11263F694; Mon, 23 Mar 2026 08:15:25 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:35 +0000 Subject: [PATCH v6 14/24] 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: <20260323-tools_build_fix_zero_init-v6-14-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=615; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=wVjQowvxpAB2zn18RKm3JYBDwmaeJ2pheT83qKWdB5M=; b=oNeBA7U/x8oktMU8vS+s/k35LNHgC8erAOUcNczOm9WeMNOWUec2f8/GKflDFysFsa2i0fK5T nuZ2mkCMGC4AB9ogYS86ojYCKSxCocqRupwSo8cxdmwJtCfVLBggWeu 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB4D83B5301; Mon, 23 Mar 2026 15:15:40 +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=1774278942; cv=none; b=RZZibTF8VISTcHgwU8kRtXm4RKXgGaDCZSFf3xgxDgRi6v3Sa0nreYdTtn83damjbRDzcDCx/bluRr6VKQCfVCBw618NAYQbTIY/10MkaZx8H0134zOPYCxxJWamnA9FX6Lvz8w8+WheMbmk4qua8f0BqEYiRQ0O484tCIpluHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278942; c=relaxed/simple; bh=WrTOUbk4CcOghtzOj6w4eBn6soi/8Xdlw6skjA/jAYw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Tog/1WGnEPqlT6d2TH+R4qqvjpOjNrY9btf90zwpGGMnZD/BRkzan3Ch1NdAdz67gO6pkgwLOOmaYYnUOJPRWwPrhxwwWlJJcejZZr/quuHd4/ihBxaf4kXac/yV6KHzhjwN9vXnVKrGF1pWm/Tz67uZ4ynZPELV/op0V19S178= 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 7C91716F8; Mon, 23 Mar 2026 08:15:34 -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 3FC683F694; Mon, 23 Mar 2026 08:15:33 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:36 +0000 Subject: [PATCH v6 15/24] 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: <20260323-tools_build_fix_zero_init-v6-15-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=851; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=WrTOUbk4CcOghtzOj6w4eBn6soi/8Xdlw6skjA/jAYw=; b=uViuYjR3hjg5F/kom7iC/zC721Sk6OZ322KUD0s7DgBTtAGQPqPW17ere7zsHmxbQM10T5hf1 1ad8VEhlUAZAiGkAwdQakWV4NHoVede0Tim7Z67d+gkKknP2FfbmatX 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A48A0241C8C; Mon, 23 Mar 2026 15:15: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=1774278949; cv=none; b=raoiR6L47otfV60gzA8aWQkDWoI48EXMHcaW4gccIOZCe/Nd8M402EjbDBqpjroxQctocTpqU+D5ALu8iuZfcM9TaWaT0cxUu7TZCdz+9DTQ7XQlQui+o4Lsv0jfNlQCJ2Vr3wMdH/VCmvrNGH0OS2JwVtqw+gqONFfxb6lHNCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278949; c=relaxed/simple; bh=+JjISCoCiswO66KwqDpEEqU/V/TxnMe7dGCpZMrmE4A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Cpk9Mkj5Q+3cDjxQVsHN+nZ+UBcbWfg0g88JbXj7yYhp1xhI2SZkvQwy0UVHEJe+UlPS+WiIG0puDxf0toBST68j2gqCpl6b4IqP/ugu+JM/M/c5LkWXO15VxJN8Tl2dWIxAG5hndQeGiwV1/A1x4gm+qaegFSKkaSK7PFFsja4= 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 EF16014BF; Mon, 23 Mar 2026 08:15: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 B4DEE3F694; Mon, 23 Mar 2026 08:15:40 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:37 +0000 Subject: [PATCH v6 16/24] 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: <20260323-tools_build_fix_zero_init-v6-16-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=763; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=+JjISCoCiswO66KwqDpEEqU/V/TxnMe7dGCpZMrmE4A=; b=BV2inBxFGZicei3UcpV85BzrpN8sJvjh2Hrn2tsIROhKK8AHHYnj98qh0vddkI1WPerMKetLT G5TD9/PirJZAK6leSeoxrLrWvJ9a1vYJHGoy+Ev9Tqtm69xM7ZQQt4o 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ADCA3B5846; Mon, 23 Mar 2026 15:15:55 +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=1774278957; cv=none; b=jajkHWdtAPIHXgrYI6PalK0H51+mVPG69o56Ed7ptuBblmiH/C8zeaeD2kf2ubGV9GIFcqWpXNs7yIUXSHWdHYGB9DjgKLcIyu2IQGlF3/5V3SQrfwm5i7g/5Ia4PfmWXkMHxaPxkgHyUbK0dO1tdz5SwizWjqE+BV9UG3ZcQ5U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278957; c=relaxed/simple; bh=Rgzo//pe6jtJkqHszW5b83Q1eWN+jdj6CyAqKjTaoAM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pqwNfJWd941T3NdS7XgLgd+UWytE3ORZIeVahlULAqgLyj+hXpHI2egQQZm4KHErqeH62CHvJT34Nlf/Mo7SVAPKfy/KldhVU4+YS/l1JknhjgTypb2vq1wFtX2X799KRcfZCGRO08lPQT2FDEvV7gvPWkNiB2b2fmAA34KpTdU= 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 7114816A3; Mon, 23 Mar 2026 08:15:49 -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 36AD63F694; Mon, 23 Mar 2026 08:15:48 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:38 +0000 Subject: [PATCH v6 17/24] 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: <20260323-tools_build_fix_zero_init-v6-17-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=875; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Rgzo//pe6jtJkqHszW5b83Q1eWN+jdj6CyAqKjTaoAM=; b=dC0orAXUZFICldGEECQ3mZdLnN+sOuPYiYkeuxifDQm1d+lRJcleroXVuF575nAzlS0wUrSG7 +7hS1E6cp8IAFT/7VXUe8Y6pv7/2zMNiqntiGQ2Bfkjw2T+RhjFC9kB 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 593C33B5851; Mon, 23 Mar 2026 15:16:03 +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=1774278964; cv=none; b=qHSg+GBSRKlnl/97gRZd7PNBC4A0fyxzuyqdpsecALD4DZU/ZxH5TNbKiqiyaQfHMtcJGOvzKVv/QlFQ7HM5qp5KZT1OIuofafnfWwzJPTrC7TFeZGCV6D45lKocDYAbh9XxOxEE3YpT4lmjHk9mp0tTuLlpLIqjuBT+sPXXUVU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278964; c=relaxed/simple; bh=SeDVOquLmPwaUVXLNSt91lMfLrGLKxvtIpmiK9hIWkI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QnNwujkS6xWk1aJrcGUJSS2kV1ZY90h9XlAspq9U8bhT/mHEQG6CgBO8xTcyWi+vwCisDbUYt533NYD4j5bBgu4bJWzzecci4wn9G+V1yM94RNslStUNi6n9OgLAd3htYzKyP6xNwSUhl7tFABW74UYFY73JJD7Zhid53vL6Alk= 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 E80C116A3; Mon, 23 Mar 2026 08:15:56 -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 AB1D73F694; Mon, 23 Mar 2026 08:15:55 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:39 +0000 Subject: [PATCH v6 18/24] 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: <20260323-tools_build_fix_zero_init-v6-18-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=747; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=SeDVOquLmPwaUVXLNSt91lMfLrGLKxvtIpmiK9hIWkI=; b=XbOH8U4SgYMnR4D4P1dEjLkWzygH0VqjqjqPMLG5NZXhNIlDXdu0nAjADVvHEsUEwi+dDJJvf y2QQqXocVyXD2CI3Xee6XC4SMQxWvvQcVFwc8weiRei0mB/YCGzmdld 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D21BD35959; Mon, 23 Mar 2026 15:16:10 +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=1774278972; cv=none; b=e/rucVN06BkwkW+IMaMtuDYWJJaErRmEwsMDPtUzFkmLmSyf1AzzyEjRzJsC8rGAGWePcz31vjhxUcl7KK7pp0q54RKoOIfoXeB5gB2ejr/OaFblvpZRJx6wfrBeeKp1aETSiOFTkmriEnI3rt4+nmqVrDKSPOvqr/3tu/uTIcU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278972; c=relaxed/simple; bh=Y3fYUfec7IdYKkZMHnIhchrzP1QeLhY68m77wtq8xP4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=imdcNZy02PwTsUaPQkhfupk/M0S6AFkoJmSByjfcBhdf4pJqTsKyr8X9fCEKjLamo2mw9Bozi5q6HsFzebw0XYnGhZj3E0KgEnrf3vvD2D0X97B8uoelTMqoXl4ggiEfXxVMx9mgs9nqR7JnxhcLKGSoUCS1TyUoEjPnhgnko5I= 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 69F2A169E; Mon, 23 Mar 2026 08:16:04 -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 2CCFF3F694; Mon, 23 Mar 2026 08:16:03 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:40 +0000 Subject: [PATCH v6 19/24] 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: <20260323-tools_build_fix_zero_init-v6-19-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=694; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Y3fYUfec7IdYKkZMHnIhchrzP1QeLhY68m77wtq8xP4=; b=FRfk6OWswbBQlE1btIALpU+HnTCUq8UfhIl8gmHWajlLWzmM+TR81MQ1oxpAmwTttHFNcwcmO ArJ4C688uxCABZ1yFlTFRsKEY/WWhVMOi8K030pd2c2s82Wqth04TgP 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D9CD27A107; Mon, 23 Mar 2026 15:16:18 +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=1774278979; cv=none; b=hJbHHK5SHbwsnND1KiGPeBENhrQQXjWCePWwbvG5u/HvLKdiXEtIe1B18iEoeE0KFSm1Rwgc/jLg5CkFLPDOsw6OV3CDxtb0cRq48/L9QlVuqnCiSyGnpFuqNlsGXSthExZby7hBD49P6PKJfZeY4u9YAgta0fCK4cCJzUAKqUU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278979; c=relaxed/simple; bh=kBrxjsAsoUP4ghwPhyQYeg8vEMKcbDL/VfSOIh63ImI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FpGKimE/6s6c20PcDd3i3+fuZinJ4D6rPR67VR1qFbmgdISSOow2VimeAW/QX8I8aRqZtmiVM9Z8kxhPYQDm+1RuaZI18XYHs69DcVD+z6JuCDDhm2ymaQBmF3+wZDNKuYibEDoPWElz+sI59dk73KzvSayhv7iEtu/5b2A/9Uw= 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 DD9AA1516; Mon, 23 Mar 2026 08:16:11 -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 A21813F694; Mon, 23 Mar 2026 08:16:10 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:41 +0000 Subject: [PATCH v6 20/24] 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: <20260323-tools_build_fix_zero_init-v6-20-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=691; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=kBrxjsAsoUP4ghwPhyQYeg8vEMKcbDL/VfSOIh63ImI=; b=US2YFc91VNCAlisAt3N5H+H1Z/jhDBP3IjrG03gxCcEGZYkT8RjyZzVlws0DmA1PXajv+UVNH fqVZaKzqSK9AyOFmS/bDl/JXP4ibu0709QCXCmXs5Zs1As1TQkybeBh 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB967280A21; Mon, 23 Mar 2026 15:16: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=1774278987; cv=none; b=MH0KA3uX1Ql9t/UEZoJcY1guH62c0ajBaOo2Lfe7DDMa02DBWOsc1Pk3OrxL2Zg2ExqzrPX3HVyp9gdfzaaVK7nvS6efjxQwHuplRlp9uqgV2E4M5cqvQvVmZo49XFEMwa1yY347X1ebZ4EwasL7DufaNnJ8cGw9D9qymghV+0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278987; c=relaxed/simple; bh=mYlThUq1iAN/tIV3PsjLtm1fJPfV0aj3FB6Qm/569bA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=auUUUF2HjVt8z8IpjaDhkOQh2GmQ2LJaJIN4dkD6uRQgTjytifZQNiSPOgIkyOs+oDPBoSK/BiMdhkKt7XG8wN23oJrf1iEeO6roJqkH7mlRtok5haM0R+lS0IzPw/sY7AvO54Dw4EmKLreXXjxrvHYqUMAMMjEjr4i86wKJYpg= 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 5CEEF1516; Mon, 23 Mar 2026 08:16:19 -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 2217C3F694; Mon, 23 Mar 2026 08:16:18 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:42 +0000 Subject: [PATCH v6 21/24] 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: <20260323-tools_build_fix_zero_init-v6-21-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=672; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=mYlThUq1iAN/tIV3PsjLtm1fJPfV0aj3FB6Qm/569bA=; b=wQIb2LEezLVPhhORPRAMjqrNfGud8fpirkh6Tq5LBSAiCj/nOz0TWLjDxFqgQ7Bt0V2A///D/ Z7ezCTViYPvAkjGzR8DNcVWMdL4T0amLaDseungyUCOQQEswWsSlO4I 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44FB2242D7B; Mon, 23 Mar 2026 15:16:33 +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=1774278994; cv=none; b=LS4/uUu886IQ9RIETYYXFJreWcJj9JyWBxJ5vwhY5trrU/19DoAQdEtHY+Fzlio6YXOBgOU8hpB40OWVsdRno6oFc519BuCnZ+EpQX9JXPKnfTrkNZ+p2F0RYXbg5957mu9HnovK8I9OumUowM0WGHB2U+20BsAaREIgsdLhX5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774278994; c=relaxed/simple; bh=I+txdPEFIu4th5lgf2+eCGWjywMXv8xD0Iam5VIr81Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SgzBh4HG6hnA380UEDaMWA5tjXIksvV53G7/HtEvklT9xRwpkNduPvp5HoP8f0UC8CPpZJvh6/pIQ3BMmiBkgyiWxrMB5J0AJ7WGSTSgEne5TCFg14biU1TWk0mw8aRJ+btSt8RkMQyfOXTNMzABgtrDRoL+EO/lRnDnq1fhAq0= 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 D5B9F1762; Mon, 23 Mar 2026 08:16:26 -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 986363F694; Mon, 23 Mar 2026 08:16:25 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:43 +0000 Subject: [PATCH v6 22/24] 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: <20260323-tools_build_fix_zero_init-v6-22-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278819; l=774; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=I+txdPEFIu4th5lgf2+eCGWjywMXv8xD0Iam5VIr81Q=; b=hb4RhWnLqxTqUKNjXqWxvFIS52DWxZDQCtvXiOjrKHbj5BnTRzm0YZa69gt8Ali76Atpb/QoZ Z+oUHNrzfIgDnO9VQugdYQTWC9MOVAelh1iWQZyShVWeuGenliWlqk0 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE07024CEEA; Mon, 23 Mar 2026 15:16:40 +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=1774279002; cv=none; b=sGT5Twe9mcN59T2ZUOa/OPaI45GXEW+K38zLFM5JhLBJ3M26ekOUUqjSTNltc9P/6YywiZrRfl7XuA+9NtRI4Zp2ZPeUnKXTHSkTRudgogkS3+jKq1nnjIamN3zMt8WZjT+Cr7nFcvFBEMtPzOqH7YxyVBQaRezLn73wThVeR0Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774279002; c=relaxed/simple; bh=x2h+4FB5LaYokMgKHEvZZeyJKpOwoKiSiosB1fOmqrU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OIPnfYVHEw5/PsQaYR/GmWeORioGq6YJZipGQcV9azDRWYzUQnVaIxz5XkNPCie0yBcP3w18MxMfTJuQ9x9mM7tXhp3fmUGJN6aOdW3qDV4l7cJlfsuXgPMd5wj/SVsjDbsfPua/9rHLX6oCWLS4+P7JX9jzDU/UittzszEYRlo= 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 59A0A1764; Mon, 23 Mar 2026 08:16:34 -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 1B43A3F694; Mon, 23 Mar 2026 08:16:33 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:44 +0000 Subject: [PATCH v6 23/24] 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: <20260323-tools_build_fix_zero_init-v6-23-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278820; l=1451; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=x2h+4FB5LaYokMgKHEvZZeyJKpOwoKiSiosB1fOmqrU=; b=MKKXy9SEcoZJxQzkjVrrKzEYI+D8jwICYZuUeZMdhBGXUd4B3u4T3C3XfP6D7LyZbG7D1UBDW +TXzERNzjEbBsH/tl687Em0hAzjIhY3ux9VoHVFdRZorneeYTFU+dex 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 Mar 23 19:54:06 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 446F9257828; Mon, 23 Mar 2026 15:16: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=1774279009; cv=none; b=LMlDW834VpyBL2rmt10WyCqy11kO4VO8v+VUnONMiTfNRtF6L3hhZXVfgI265CqyUlF+l8ksk2M5fPQZnZ0caaOndzcq37UO6hf8r4lnIc9RX45SeBnUA5AVokCt6LkGU0LLVuMx+okXfKqJe7T1jcFEJ/NS7IXtJBB5OhrQ3R8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774279009; 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=BgRizvyKrBkDLqiBuGy7gP6/wDrM+MyGwGTwumtzGDJuEmohdC5Qftk4Eu1wYh9myIbO8vwz0+woxrwDhdkIu6EYjuoy7DziKydLvUs/9uRlxVx6mcLjEmqLAB7WSdfMPDpfqU2R7//FcFQn/iYJyjB6U76qD4Wq5RP6Gs8CewE= 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 CEE28169E; Mon, 23 Mar 2026 08:16: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 9102A3F694; Mon, 23 Mar 2026 08:16:40 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:45 +0000 Subject: [PATCH v6 24/24] 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: <20260323-tools_build_fix_zero_init-v6-24-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@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, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278820; l=901; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=u6vnl/Tc6siw5/z3VuI7EgUIJilNCagL/0epWPyB+xk=; b=JnB8boJ/shijbI7Frbs+lXr4odCLHkM9IsCoC1pD8gcG/dHqVN/GVzbc0+8EoIOQxhHz59nI6 7YpKLa49EdBADtSb7aBBTX50pASK+NL+6KhSPC2qtt+p5qCos10gaMl 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