From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE24E33E37B; Sun, 8 Mar 2026 16:46:41 +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=1772988404; cv=none; b=NWBQSbNpr7uXI3llVRu2Dto4QQF4bL9+1rywqTVvyoBDnRsAnBJoy0JRRdIDOP/2u2i8MQnaRTGfvHaLsI3fphPf18Nu9zl7h+LsVO4I+w27zQdeCyFE5FNojeqcJq1VvXD5B03mWAY5HgxQR+06XFARGf6s6use7W34bTBUECQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988404; c=relaxed/simple; bh=712KRhl1LZfdCTXZmvNPR34WBq9zsji18wb+LZ6zDEQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CzFnHiQ2JgBVdxsPlrQg0EGFc8jFN2LocrqkReSludsDfllBEF1i25AzzGgVUMIR0J58T4Qk7EEX5Waxx/X4UiyZ1uAfpmvOxycEg8p3xG69YmsBK/i1blV25V0rz/d/fqFywD52q9NZVgGDV/INTDFnnsGbvw9oSNy59m28+Pw= 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 F26101C0A; Sun, 8 Mar 2026 09:46: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 2E8CE3F694; Sun, 8 Mar 2026 09:46:33 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:06 +0000 Subject: [PATCH v3 01/30] bpftool: Avoid adding EXTRA_CFLAGS to HOST_CFLAGS Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260308-tools_build_fix_zero_init-v3-1-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=1393; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=712KRhl1LZfdCTXZmvNPR34WBq9zsji18wb+LZ6zDEQ=; b=pg7r6+2xm3KimCvNFMKIoOY97REJgVqEedeVmogWQt57F/M7baTbws8LKxUuyA6sQbHMQSU7E XXmvTStl3TPBk+Z2Qdv7GRLBVormeDewc1oxXm0/ewJRr+2cQ9C68/C X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Prepare for future changes where EXTRA_CFLAGS may include flags not applicable to the host compiler. Move the HOST_CFLAGS assignment before appending EXTRA_CFLAGS to CFLAGS so that HOST_CFLAGS does not inherit flags from EXTRA_CFLAGS. Signed-off-by: Leo Yan Acked-by: Quentin Monnet --- tools/bpf/bpftool/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index 519ea5cb8ab1c0ee31acc67fc5f96b40e21005c2..3e7d8359e1b2a81a29a47544be8= 539e3b191a0e8 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -81,6 +81,12 @@ CFLAGS +=3D -DPACKAGE=3D'"bpftool"' -D__EXPORTED_HEADERS= __ \ ifneq ($(BPFTOOL_VERSION),) CFLAGS +=3D -DBPFTOOL_VERSION=3D'"$(BPFTOOL_VERSION)"' endif + +# This must be done before appending EXTRA_CFLAGS to CFLAGS to avoid +# including flags that are not applicable to the host compiler. +HOST_CFLAGS :=3D $(subst -I$(LIBBPF_INCLUDE),-I$(LIBBPF_BOOTSTRAP_INCLUDE)= ,\ + $(subst $(CLANG_CROSS_FLAGS),,$(CFLAGS))) + ifneq ($(EXTRA_CFLAGS),) CFLAGS +=3D $(EXTRA_CFLAGS) endif @@ -88,8 +94,6 @@ ifneq ($(EXTRA_LDFLAGS),) LDFLAGS +=3D $(EXTRA_LDFLAGS) endif =20 -HOST_CFLAGS :=3D $(subst -I$(LIBBPF_INCLUDE),-I$(LIBBPF_BOOTSTRAP_INCLUDE)= ,\ - $(subst $(CLANG_CROSS_FLAGS),,$(CFLAGS))) HOST_LDFLAGS :=3D $(LDFLAGS) =20 INSTALL ?=3D install --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09A5622A4F8; Sun, 8 Mar 2026 16:46:49 +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=1772988412; cv=none; b=IJxu3b2SJ1JneUaKocxP9/3S5Wu9qlYJrqtmGGqQX8Y7jHL7ns0u6WtDgotSksedZ4cU3ZFzNmoykI1TprfDd+QEg3pP5iKNs1dgHvzcCDN+C0Spr2SJNdJjIffDvA/35IhGl8wlb5WhNM0eldnoj1JS/MUrfpSzDWAGvqNE/B0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988412; c=relaxed/simple; bh=DS9wptZ8jThmZ/lpf2k8m7DOYoUI+aNA/rW5Mc3JbVU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m0lQPeXkc9vW6AfvJKJEO2+rIS1o22dNidhKZoN21ZynEr2eASB1Br+ubX5VYp0VL6WFrcKSKevFTq1ctjIq0/R3/V3RFeOGqSDiedroEbJB76hFw0anyI7qXPZRM6YHGsxyIDmUuWB+GWwfkVNM5gSAyqaaIFzI/5+yxLvsrfg= 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 3CCCB1CE0; Sun, 8 Mar 2026 09:46:43 -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 70A173F694; Sun, 8 Mar 2026 09:46:41 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:07 +0000 Subject: [PATCH v3 02/30] libbpf: 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: <20260308-tools_build_fix_zero_init-v3-2-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=1465; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=DS9wptZ8jThmZ/lpf2k8m7DOYoUI+aNA/rW5Mc3JbVU=; b=d9xKAfdNPWJwpch2bvQExPbCwjxXtXHZNmURM5MEn1YIJs5Fpa6pHxmgT/Tv77TNCMQKp1NXe 2OU8OngjUTcDBQ1nLo5e3uBQCuqTBVZSCQ8CDaGDh693DavaCNcLahj X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Initialize CFLAGS to the default value before including tools/scripts/Makefile.include. Defer appending EXTRA_CFLAGS to CFLAGS until after including Makefile.include, as it may extend EXTRA_CFLAGS in the future. Signed-off-by: Leo Yan --- tools/lib/bpf/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 168140f8e6461bd06db40e23d21a3fb8847ccbf4..76cc802375f67b9d8f589904bd9= 764040947e5dd 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -49,6 +49,14 @@ man_dir_SQ =3D '$(subst ','\'',$(man_dir))' export man_dir man_dir_SQ INSTALL export DESTDIR DESTDIR_SQ =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 -O2 +endif + include $(srctree)/tools/scripts/Makefile.include =20 # copy a bit from Linux kbuild @@ -70,14 +78,8 @@ LIB_TARGET =3D libbpf.a libbpf.so.$(LIBBPF_VERSION) LIB_FILE =3D libbpf.a libbpf.so* PC_FILE =3D libbpf.pc =20 -# Set compile option CFLAGS -ifdef EXTRA_CFLAGS - CFLAGS :=3D $(EXTRA_CFLAGS) -else - CFLAGS :=3D -g -O2 -endif - # Append required CFLAGS +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -std=3Dgnu89 override CFLAGS +=3D $(EXTRA_WARNINGS) -Wno-switch-enum override CFLAGS +=3D -Werror -Wall --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E3BA344029; Sun, 8 Mar 2026 16:46:58 +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=1772988419; cv=none; b=IUlPp0DoncUqjc1gmQQsrQ732TP9ZMowAceXIDSb+vEnO6/l3k9v1HlxQc+B3pG4CAK/+aoy1bnYtMl2aeFQVjDW+k++Qy1XHHZsgSec0WL0dkbO/adXFYWVX9i6H/GAimCnpg71O/wLpAudxEA1WFIaVLcy7qYYWhHc92x8zfM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988419; c=relaxed/simple; bh=ywVnBzn6WHB3T3G0T1ohQS9k98+GxSpF7WQOHmbiUGg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mtpq+E789ZSQm336PGeEOCcB3FEZ1CaWZFyNLRgTfFttQko6pHQM06XP7wov8otv3qjLhHxVmiyoKijUaCASR/Z+PyMisHtjc9BGAIRHo5NFYWRUsxtndt2n/vOdnJMQlMVtDopxeaiOxuO6TkfynYw9/IuuoiN2Y9unXnanIFk= 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 7E23D1D13; Sun, 8 Mar 2026 09:46:51 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AF7373F694; Sun, 8 Mar 2026 09:46:49 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:08 +0000 Subject: [PATCH v3 03/30] 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: <20260308-tools_build_fix_zero_init-v3-3-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=1678; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=ywVnBzn6WHB3T3G0T1ohQS9k98+GxSpF7WQOHmbiUGg=; b=KYteRcPL4z+A9CIKXnphWMNiTfQ7er/Vz6CXNlckJJCrry7WnnCWeMrHLbmcN72foPTxXhBZ0 yu1LTfjKPuTCnWwmQJS4BBSF/xT0TCuXt9hR6j6o0HgGwHueqjVamR4 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Initialize CFLAGS to the default value before including tools/scripts/Makefile.include. Defer appending EXTRA_CFLAGS to CFLAGS until after including Makefile.include, as it may extend EXTRA_CFLAGS in the future. 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 41aa7a324ff4d76351b89d7d7cf382df3fc14052..50efa97163fc089455161d6b81d= b13aa0ae41af6 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 @@ -60,6 +61,7 @@ INCLUDES =3D \ -I$(srctree)/tools/include/uapi =20 # Append required CFLAGS +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D $(EXTRA_WARNINGS) override CFLAGS +=3D -Werror -Wall override CFLAGS +=3D -fPIC --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9663C33F8C5; Sun, 8 Mar 2026 16:47:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988428; cv=none; b=HmkVu9BUTEvdltZ9dbYaFzDgHQoBYsltFEs0XSFDGJRZ50YkAQlBTIwJJ1DnYnbBw1/v9x4vT1k+ND61afGtpv0jLvGFDWinlLaB4Z9HOys0IX2b/FttfKR71k5Sb02c2dFNyevlLNlch2zSRgd1dD7LucrdN3iWqCxYqIW+GLY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988428; c=relaxed/simple; bh=RIH6wVGThbXpVTTaDLWXu9z2nLMDSOIbv+7lqfbbiSg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gN4+1uumkBeh3kkw7hVjKgV/2CueNbuJazrHrqcAZsiBSgSpw0MHXJUpINbazIB5DFtZx9dX8SlcXMAql6iwDr8fTt/e4NqRFHgA5x9Gl3hYCyst+zdecOFaUDe+FX7TKoa3CcG6EPXKZUSbieDaLGfn0oNV/OATCoT1mdSPhuo= 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 C06CC1D14; Sun, 8 Mar 2026 09:46:59 -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 F0FA03F694; Sun, 8 Mar 2026 09:46:57 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:09 +0000 Subject: [PATCH v3 04/30] 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: <20260308-tools_build_fix_zero_init-v3-4-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=1635; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=RIH6wVGThbXpVTTaDLWXu9z2nLMDSOIbv+7lqfbbiSg=; b=1qFR9b6wY57q/NLfTbAum5N+MWmuJwKQ1TpHAPHwYWSv8XVQHjF49S/JsoZFpt1pUoGabtkkI vrvZi6lpkYGBqWraC2Od5B3G32KhlEo8qLWcMJOmBOJf9eqfjADW/RJ X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Initialize CFLAGS to the default value before including tools/scripts/Makefile.include. Defer appending EXTRA_CFLAGS to CFLAGS until after including Makefile.include, as it may extend EXTRA_CFLAGS in the future. Signed-off-by: Leo Yan Acked-by: Daniel Lezcano --- 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 056d212f25cf51cd8c02260fbe2ef28dda5e4acb..1890779f1574ebd9015f3001b9b= b31d4bc0ae5ce 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 \ @@ -56,6 +57,7 @@ INCLUDES =3D \ -I$(srctree)/tools/include/uapi =20 # Append required CFLAGS +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D $(EXTRA_WARNINGS) override CFLAGS +=3D -Werror -Wall override CFLAGS +=3D -fPIC --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC3FC26B756; Sun, 8 Mar 2026 16:47:14 +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=1772988436; cv=none; b=ZW7xFiTQr4ZSqdb03hgu1VeAmsskKF7UNf1VzgncGQHJR9dXBa2uEZ3x9Sk+yOga1qpPtT9NqdmrjcLqiFotV1dH210LPzw5uSQ4avHhlQ6uROi2X8glIXUQVmwzoCPZE4VLiytWf4xCFzVtdyaUv7IU4G7/87g6CHYdcY5Nwh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988436; c=relaxed/simple; bh=u84NALfBSobnsJTJKqp6l5ztMxP7TuXpdDrlEVbD0Ek=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EYWPjxoaPLN74VHFlHv0P6zcBnZZtZ/op7ppVmzR05mclEjp69Iq85pBP8zJaDChPaMGaKvpWGfflOawCyAXNKfx1I0cYS2j6nt+dn9M2LwlN0CnqcaMcNySoXxRUSGjuZVNoG/UsEcOJg3Sr/dUhLFYK/6jW2aPH0ABHgdUc+s= 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 10EBD1D34; Sun, 8 Mar 2026 09:47:08 -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 3F7933F694; Sun, 8 Mar 2026 09:47:06 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:10 +0000 Subject: [PATCH v3 05/30] 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: <20260308-tools_build_fix_zero_init-v3-5-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=2628; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=u84NALfBSobnsJTJKqp6l5ztMxP7TuXpdDrlEVbD0Ek=; b=l3MJx9CI6SeHZ8V6/9hNvvIAUhGbH3e/Bu9fTUpMyHupA24V3i8wkE4W9iv0ZsaD2dzHI9UBW GZcUmX7pha+BFni6fymzbrTYdBaYNZ75mwkXJhudmKDfQdc5+6il7WR 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 Signed-off-by: Leo Yan Acked-by: Quentin Monnet --- tools/scripts/Makefile.include | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include index b5ecf137febcae59f506e107a7f2e2ad72f4bef4..bab3174565f0d1e40ec574a360a= 0fddcee641f7e 100644 --- a/tools/scripts/Makefile.include +++ b/tools/scripts/Makefile.include @@ -137,6 +137,34 @@ 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 }' +override EXTRA_CFLAGS +=3D $(call cc-option,-fzero-init-padding-bits=3Dall) +override HOST_EXTRACFLAGS +=3D $(call host-cc-option,-fzero-init-padding-b= its=3Dall) + ifneq ($(findstring $(MAKEFLAGS), w),w) PRINT_DIR =3D --no-print-directory else --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E375344D99; Sun, 8 Mar 2026 16:47:22 +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=1772988444; cv=none; b=qScbCuMaCex0KvExkz5zqkrrmBSJWUvVXhdPASNCeJl2vq3VhR+9a3oUUNymEW5ZmOtmTcYnC2D8ysMan/0V2TCGKhuru52ot4D57E8Xq6IQAueh+Ii+0AjmttQRaHZ7Licdh0nyHd6EO7GOu6unyeIt3e/7RJsiJgRvSJjBCMc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988444; c=relaxed/simple; bh=rXMLOw9cShxQAuhRPB11QPHRB7y4+mx9Jy5MYdWVjzw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LBh620PDRCzu0B9dWUWfmRXOELHZabi/V3pamNdkGEH3ekyWORepmdGRTh7zke7OHrXoskcuhq/KSGP9LduftIFD373GScSdMlqQEGnMRzpcekNa+QhWCv9PXbSRPj4VAWZDAqrJFniIvqMHJJByMPdFd3ZXa/EKs/Fv72r2RUI= 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 579911CDD; Sun, 8 Mar 2026 09:47:16 -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 81ACA3F694; Sun, 8 Mar 2026 09:47:14 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:11 +0000 Subject: [PATCH v3 06/30] bpftool: Append extra host flags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260308-tools_build_fix_zero_init-v3-6-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=781; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=rXMLOw9cShxQAuhRPB11QPHRB7y4+mx9Jy5MYdWVjzw=; b=cbtlct9goaPn9IVU1qmJj6Kx9P+2gzUqpJ+AjVww+wJ9hEi50ZLtJKfxkCpZUnIPpOpOc5tw3 5b7k0WKHpwKBSV70hMD+REKhCEcRlko1ZT0noupK6C5kPca3Fu2s8sb 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. Signed-off-by: Leo Yan Acked-by: Quentin Monnet --- tools/bpf/bpftool/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index 3e7d8359e1b2a81a29a47544be8539e3b191a0e8..762fcf0e62a189625053798ddde= af17d409fe248 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -86,6 +86,7 @@ endif # including flags that are not applicable to the host compiler. HOST_CFLAGS :=3D $(subst -I$(LIBBPF_INCLUDE),-I$(LIBBPF_BOOTSTRAP_INCLUDE)= ,\ $(subst $(CLANG_CROSS_FLAGS),,$(CFLAGS))) +HOST_CFLAGS +=3D $(HOST_EXTRACFLAGS) =20 ifneq ($(EXTRA_CFLAGS),) CFLAGS +=3D $(EXTRA_CFLAGS) --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7750323E35F; Sun, 8 Mar 2026 16:47:31 +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=1772988453; cv=none; b=ipPcrmzmLKZDaaFis7QBMEBnmJYhx2PFlXdLq5dKGQ5p9tHHS49FvJF37Mv+w43c6n/s3It1sY2nHZUaLp51spL+EkYgg+4d9TGIohY6gOGluyF514sH8dAWAs41+goiSNkdLMeE/czDJdGn5ZnjVj+EYGXnXXmJmW5l4T/TfKs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988453; c=relaxed/simple; bh=UN0Max7qbwkYOGlwk9cg0egNBdEm8uSkyaEHFi5qcp8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=B1YGpxdPzfbRfaIUvk7JKNZsrXnsLWgPzd3Vrpxg+2xqiYE5d09e5/q6FUW8CMP9bHeW5k3G+rzuGP1OKer5EeZBYX59GtTRwNwbGdwzlGOY2OyoeG5a6jR+MU2En+TEDgN+DFSZolYH++KBqx6HxyKkc1f2nQ4WGJkUb1yJee8= 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 9943E1CE2; Sun, 8 Mar 2026 09:47:24 -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 CA48E3F694; Sun, 8 Mar 2026 09:47:22 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:12 +0000 Subject: [PATCH v3 07/30] 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: <20260308-tools_build_fix_zero_init-v3-7-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=1040; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=UN0Max7qbwkYOGlwk9cg0egNBdEm8uSkyaEHFi5qcp8=; b=CySC+X2BeSvoumQf8fEihm0nmcdGGomOJuy15TwsPAAipcrRWfEg52dGF+VCAODYyQSs2D0an /DBqyyR8REXCbAebdBefQ5abEq2itkzImIiOuYMbKECeC4F0eYx7eCx 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. 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 a8dc72cfe48eec52bd9e2352c46c88f5d8047765..f4004ec148a19c784bfe3ee9b5c= c3901a3db25a3 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 Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8ECC73382E6; Sun, 8 Mar 2026 16:47:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988461; cv=none; b=bj6/uhYvkoXyuK2wzt0AjKmzVsqhR5w6/TffCkMTeINnxEpBiIke+llnt2xkDBqK8W5S/qPReDLgCzpu71btYQBqmrjRwCYl/ptl+SJ3hsF3IUJznRIcLAfLmeUynoXDJkCbJ2igt+n7fEKIF4IoCbqu7lScKWKU1sK2DUHJ+cU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988461; c=relaxed/simple; bh=9xh+XmLdxjnZ2EwCgGTIJoMqt8bQwMAFGKapk2sC+nY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wd13/cSpjenKoi2EBwkamgJZQ2PiecB7dqffO7qG9n3B6nXHlWL6l1YhJ7Kk7dY4Y+3B2mzwgy+ol/NXwQZohJcB0Wo5v6KFDKpQJvqumxwjmFDEq1EAnGHCJYhAYZaNfFHAsloqqDLDycFrjlcXIhxoRWjVAskK3buME1VcCrQ= 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 DC6ED1CE2; Sun, 8 Mar 2026 09:47:32 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 17AF33F694; Sun, 8 Mar 2026 09:47:30 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:13 +0000 Subject: [PATCH v3 08/30] tools/bpf: build: 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: <20260308-tools_build_fix_zero_init-v3-8-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=637; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=9xh+XmLdxjnZ2EwCgGTIJoMqt8bQwMAFGKapk2sC+nY=; b=YJWRLoK7QDxWDlGkUHbfhkd+aNPLLj1MlyEqu0TQAGGsvL95zPdtB9a8uEos/WqzJJ6m6+sNk fY0imK4h+elA9WwLLOzVsjnQ/e+Qg/TCtvFW8dQv3nN8qHjnc0xYqrq 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/bpf/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bpf/Makefile b/tools/bpf/Makefile index fd2585af1252669c59228af3a77320e449e1a1ab..f7d7978b4e2c1e592f980c2b815= 3608b9d821d89 100644 --- a/tools/bpf/Makefile +++ b/tools/bpf/Makefile @@ -8,6 +8,7 @@ YACC =3D bison MAKE =3D make INSTALL ?=3D install =20 +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D -Wall -O2 CFLAGS +=3D -D__EXPORTED_HEADERS__ -I$(srctree)/tools/include/uapi \ -I$(srctree)/tools/include --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B768A3446DE; Sun, 8 Mar 2026 16:47:47 +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=1772988468; cv=none; b=BJul71yeu26ugpVrvN0F7j/nZs2mIcLvxf1sG2WWbsMVIuTyDfJAs32p2OnskvNpWZyt6LP6Rrxj6L+8nAPxE75UyuTWRQIMxNvENgUXuN3pjpont/7kGuE8hwheWh8KeAVXXXo8KARVdf+BpEVJ9sMAbUQEsQW7PfCcnBoo8C4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988468; c=relaxed/simple; bh=0TpM015mdI0CN+mqigvDg23igDU/tcPA05QcOwRCOOA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=vAaia4I5J9JEa9O2T8wvlpywZ8vka66t+71Gz3sxYKziEYeeff+On/4EgzDaswezpJedZ2RmHAb2Kz8dpiaKrpBfIvpZvnKF4GxScZem4JeBTZXCN5Nw3zynZaq5LLog8HZ3PB+2Vl/fi8kllrbwFYsEIp3wqRfxAjc0rDT2n5Y= 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 247371C01; Sun, 8 Mar 2026 09:47: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 5B1593F694; Sun, 8 Mar 2026 09:47:39 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:14 +0000 Subject: [PATCH v3 09/30] 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: <20260308-tools_build_fix_zero_init-v3-9-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=1108; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=0TpM015mdI0CN+mqigvDg23igDU/tcPA05QcOwRCOOA=; b=swTxK0Z56AycB2pmoA6AgoqxxXbAFZj98haRr7vI/KYNZOcgT1IVLvI5XP49mZVohMwBujqkS 5hMmpfihkl9Ajy/7wzVREQRCr01qNQ42wrX4SUEfIz74LONLnaWZ/au 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..a86ce3d99e2bb1c005942d9c321= 91e6eaa55cf50 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 $(HOST_EXTRACFLAGS) $(KBUILD_HOSTCFLAGS) + # 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 Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D53D1F181F; Sun, 8 Mar 2026 16:47:56 +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=1772988477; cv=none; b=oXHc2tI0iKy4Ib5El91Y2EOb0pPdCC1VsTjG/8p/kvO2OBvv8nmul64nFziZzLdBb8unMlpefbd7z0RJBvH178JQ38N7mFATv3D6PymOmhmGP/ho1PEP9xZea3Bs0lQVyALUAdm0Mf/gtVTSedk+l5wP737P4nnnGdxq6Yle3Uk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988477; c=relaxed/simple; bh=NLRoj6PYnUohHgMLrwHD5pw1FErBux++2C3H00JHpGw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CeXj5+HW3nXiSlQx3L0R3pqVw3iXSyruQsHi6a0wF4ZuCq5gQ48HWG5Oqe7SmZDhlR9Ec1CqKfF7giEzYHL4ATVLe/VpMimTINz4Bni7ikDcbbvg1lIteujOfDXjflCoGCoW9SQ0QYymwHfgH5FGd7r+38AfHYK2/+ZttG2U/tU= 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 59DAD1C01; Sun, 8 Mar 2026 09:47: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 974063F694; Sun, 8 Mar 2026 09:47:47 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:15 +0000 Subject: [PATCH v3 10/30] tools build: Append extra cflags for feature 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: <20260308-tools_build_fix_zero_init-v3-10-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=760; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=NLRoj6PYnUohHgMLrwHD5pw1FErBux++2C3H00JHpGw=; b=v5y/M1eqiBrNNow3Aq7FwQ7aBpkmphGeA584hwokJLvy+pZyUnv8d//uwOEh1PanKDVYL7agA +eJpZ8AWIPVADa2JIJLmDEukRk7gVPvr0xRuB9cDAZRnkW4BApElGOm 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 feature build. Signed-off-by: Leo Yan --- tools/build/feature/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index 1fbcb3ce74d2173072748a417fc63bd9a5b13888..103d8b71e7a4e8d0979242cfc95= c1c0b946222b5 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -1,6 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 include ../../scripts/Makefile.include =20 +CFLAGS +=3D $(EXTRA_CFLAGS) + FILES=3D \ test-all.bin \ test-backtrace.bin \ --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73250346AC2; Sun, 8 Mar 2026 16:48:04 +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=1772988486; cv=none; b=hI7i1jqXjRgQhMIYSE2N/puvVqPnzwRW5MdswNEMGC4ujsx90mWBLnUckZ6fD+7rlQ7HmA3H0tLHn3gdrgc2T0xdnHHVH1r/4aqcOCt4gNBegBUtdJf0Ula+Si80Y3d39iRz97idfibalHCY4Vrhw92TzUBx1j59V+ty7XSqbKE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988486; c=relaxed/simple; bh=Ldva6x87YlQYltUy+7xacckcnd0JK3KvzRSadgU3M+I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TKw/kSn7aUj4CrWJ8lzG2gagVyO1iYUXdxG62Pa/TGbfwaTlEacEGHRYuxcYE5faJwuXhkd5H6UzE4s+cVwGJJQ216500r3V4lklmvV+n8Aqam19CeqyQuGebiIt6RXWlDG7S9AH6X5urY/0UWbWP1D9WKCXGijfZFgQOr2tGrk= 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 9810C1C01; Sun, 8 Mar 2026 09:47:57 -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 CC7763F694; Sun, 8 Mar 2026 09:47:55 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:16 +0000 Subject: [PATCH v3 11/30] 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: <20260308-tools_build_fix_zero_init-v3-11-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=724; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Ldva6x87YlQYltUy+7xacckcnd0JK3KvzRSadgU3M+I=; b=eteLbDcAudMK6X1J/T2GmOPSB3yMvfQmaZM8q8ZU3TQT7jxvtyGBF96iBuUGuMMOvpEFZ5rkG u9puGx5iFA8DbiKMnkIQuLKj1AuDizFZPi004XQrvzFJ5BcPC5pRxqS 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 Acked-by: Masami Hiramatsu (Google) --- tools/bootconfig/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bootconfig/Makefile b/tools/bootconfig/Makefile index 90eb47c9d8de67b0ccc74a8de0af3a7e0b97feeb..6bbf4dfdb5b56fcb2a43ccda18b= 59a270778267b 100644 --- a/tools/bootconfig/Makefile +++ b/tools/bootconfig/Makefile @@ -10,6 +10,7 @@ srctree :=3D $(patsubst %/,%,$(dir $(srctree))) endif =20 LIBSRC =3D $(srctree)/lib/bootconfig.c $(srctree)/include/linux/bootconfig= .h +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -Wall -g -I$(CURDIR)/include =20 ALL_TARGETS :=3D bootconfig --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B02A2346A0A; Sun, 8 Mar 2026 16:48:12 +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=1772988494; cv=none; b=Dwjum5yq/BvrC2fV78Vvii+tBoxRjfSmoGQvd4+cKD4naVz9VKT1cizVO55PhODMwbVNifLPovf5+MGb0y24aa92sfzLGqaIAnRjPLKV0xbpLy6iMR6O0Thr5iWL8DkMtzxTlTnhaqLCAUZtsnLZN6FneIazaHqRWoizhprmZ3c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988494; c=relaxed/simple; bh=BiICEwgnh75o/Dau8EVK8l08aGlFGik0AfI3UODfkRk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=F90LjBwvjl3ycMH65the1q2n7v7o08j6Ru/x0NI1bk3LQKPoZYk3k9N4/FtmYLGL9c9hQkYsKLZyRy8i5//Rv3WlmnIWgHqBjT70Gz+hfOd50Y8gHohZNI93BRdqaIu/q186ROjwjn1lWluRP89/yfY4RRSv6vA6/JDCf1NwziE= 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 CEEAB1C01; Sun, 8 Mar 2026 09:48:05 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 173BD3F694; Sun, 8 Mar 2026 09:48:03 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:17 +0000 Subject: [PATCH v3 12/30] 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: <20260308-tools_build_fix_zero_init-v3-12-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=692; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=BiICEwgnh75o/Dau8EVK8l08aGlFGik0AfI3UODfkRk=; b=UkayiGxfrgITF93bvnXO2u3oGhdSIzt5RbJ6LzWbdhZs2SIY48ex7o/gWjApLlBe48z+imJcS CKsaT4fK+n4DVB/KMROqFEZQNJlQnYQ0QJ2Io4w2alO3OvlUt9aGZFj 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..c0628677af3807bdc331ce2dba9= 2b4e5f1a25b68 100644 --- a/tools/counter/Makefile +++ b/tools/counter/Makefile @@ -12,6 +12,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS +=3D -r =20 +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include \ -I$(srctree)/tools/include =20 --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA8863446DE; Sun, 8 Mar 2026 16:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988502; cv=none; b=fXemgo2wrm11jR2mDUA1HqqSP91upPh+16YN3atCQWZTjActRLEcRkawhBjq8WGbWuzTZ+3ymLRrmnyW+deTHSKZDk0JmnvWYuWySNy/lbi8IRnNYy2C0p7jTP1QBKRPXSfYNDX3awonASA+ivqkEjwSaKI4hGWDDxabfAP23KA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988502; c=relaxed/simple; bh=7bMyN4ue7gx3lCxj3qqW8vnB2Wy/TTw67Qh++0M+bzY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CC3nvZiXYGuaaNcc00A4c9n3biW44YBCpX8vNnCYRydMMp6nlG9+XGNpr1bPn/9S3c0owVyhiJj0FLOSqQXwtLjtvG64UM4rZpLpQIOYaaPk2J3SlQspSUhJndM5jJKMab9VKwwzOUdFTXbHgyr4QLDfn6h/OjdHQk9Ej6BV7hs= 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 2046E1CE2; Sun, 8 Mar 2026 09:48:14 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4D23F3F694; Sun, 8 Mar 2026 09:48:12 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:18 +0000 Subject: [PATCH v3 13/30] 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: <20260308-tools_build_fix_zero_init-v3-13-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=674; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=7bMyN4ue7gx3lCxj3qqW8vnB2Wy/TTw67Qh++0M+bzY=; b=7k4/pOL1+UOtNC3pE9GSZfHc8B2+omc/sk6BXLIN0zGvFzUEL/H7exynQ03JPs/cuKEcizyaA 05rP5rxZoH6D18AJyES+ZeQIJeqwn59pCfF3W8EHFGxZsDo/ZdS7qu2 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 Acked-by: Qinxin Xia --- tools/dma/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/dma/Makefile b/tools/dma/Makefile index e4abf37bf020ca613b6dca340299198cb887126a..bdca05c69a8a12a4f9419eed8c1= df71adac4f26d 100644 --- a/tools/dma/Makefile +++ b/tools/dma/Makefile @@ -16,6 +16,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS +=3D -r =20 +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include =20 ALL_TARGETS :=3D dma_map_benchmark --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FF9F346FB3; Sun, 8 Mar 2026 16:48:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988510; cv=none; b=OgVY8+L6lHeebtbfUh7/15PaBjlBG1/VZePZ8caFJI0F8EWNeubO4QY+XDravFggiSpXtaMyzH9eyBFrg2KgOKZZmezWEvGD0EzcQJXnR19rHgzrSU8qQI3d5tpxKEoTQf6B2b7hRfy9i6Cun4DVjly8ACsXbzQ2mohXANMjthM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988510; c=relaxed/simple; bh=z+eb8JjRcMKWmOmDVgBPqMTO/VCb/LlZhICM41pXN5E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DizpI2VykOi48BH9EvrnsLNGqK/cL1gZSI/AEoJI00+FAEcXgHu1TPAsngMjRN91/cm85beG7hrDbZYGeU4mzPyQT+wNPWUBWC6Qj5xrmqLoR5CpeRtXL13aDnJp5jBKazUzJsboXjnguRZcs/B5cUbGNSWWa8VygFwhu4/s8eQ= 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 6483C1CE2; Sun, 8 Mar 2026 09:48:22 -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 923D53F694; Sun, 8 Mar 2026 09:48:20 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:19 +0000 Subject: [PATCH v3 14/30] 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: <20260308-tools_build_fix_zero_init-v3-14-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=706; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=z+eb8JjRcMKWmOmDVgBPqMTO/VCb/LlZhICM41pXN5E=; b=LeaNaEbxL3zKVg1xU9P3DfgfzU9TwlNFYlS+6teuiXgIXU0uygLzynZe/OueOi+fjrrcgSkEC fVBmrgMxXNmB7qZWIVF08ycTdHAE1oAWk/w0C1IbDqRtF84EKHbUGBU 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 Acked-by: Bartosz Golaszewski --- tools/gpio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile index 342e056c8c665ac075041ff7c7ca7ba94c691187..206fb6c91a569d64b1e4b906ada= 5ec866323053c 100644 --- a/tools/gpio/Makefile +++ b/tools/gpio/Makefile @@ -16,6 +16,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS +=3D -r =20 +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include =20 ALL_TARGETS :=3D lsgpio gpio-hammer gpio-event-mon gpio-watch --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A45934A3B4; Sun, 8 Mar 2026 16:48:37 +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=1772988522; cv=none; b=Q26iP4dzwp8I/9FTP6/65nMgnnHcgs+kwRDc1p2FpI5aAKZqP+8NP8UeCJPw8Ay7OrSpZq2AB6YQKJeJSiwpejxUwQlNfSXU8exx2zhm2jBuw0xNmUJEGYrhqb5H6P8trKDxqZQ9gHzeQni56G9/z2Ewdn3KunAXTbBG+bWDQLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988522; c=relaxed/simple; bh=fkf/zlqrIfnebG/RdFS0MlAsAXXN8IFUwXNXXxMzUGI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jmlJwFo7TppHrmX6OJXKmlFrdJTAqfbrS8MltR3VVK9/HKiBqtV8yAumvXjFEB04EH4AhL+smTWG+8zcdg+EA9p8hlmCdABhq85FoaxfTBy10tA1z+kqgWf5NRbXrj1QOTZhTpSlEq6tWWTBnGGZZZVylxELH6VTFH0xX5U9veU= 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 A4C991CE2; Sun, 8 Mar 2026 09:48:30 -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 D761D3F694; Sun, 8 Mar 2026 09:48:28 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:20 +0000 Subject: [PATCH v3 15/30] 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: <20260308-tools_build_fix_zero_init-v3-15-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=685; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=fkf/zlqrIfnebG/RdFS0MlAsAXXN8IFUwXNXXxMzUGI=; b=Yu9uqkc2uVWKlNic7iEKsNilQ1Fn0jLboaTqYJ2puHgxFW2xEwmYtY/tD+hTG7P8L6nhbZ9cv bUjwAFUJ0ZJBhjwFf/BOjPI2SnlHXqi8lZn/0QDsWzGU/DwL0tmgrQ/ 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/hv/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index 34ffcec264ab0fdf7075d25456ef012cb866796b..e39c16325b451ee7c2ddc581cc4= d168915472ed6 100644 --- a/tools/hv/Makefile +++ b/tools/hv/Makefile @@ -16,6 +16,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS +=3D -r =20 +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include override CFLAGS +=3D -Wno-address-of-packed-member =20 --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 229A23502B9; Sun, 8 Mar 2026 16:48:46 +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=1772988530; cv=none; b=hTlQGXAWMHh/lfMqHVLRUO8LGMLjdnIbinj5ZwBS15HfTTfrUtcRFQEXk+9BjEkS7wcXDW8TLFeQ92HIqseZH9pD/Asv33TjmHzTY8/eFlr35JGY6oy3hkEkIh6voNWOy9e7/VtSdKBUG+rrA7c0Gy4qnEkuTbd9/O/Ao6I4uHE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988530; c=relaxed/simple; bh=zZWJIC8VbpQuI1hDaElrE8baXqOOQWX8nVGfpiyFrK8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lrpiaYMGhcua+9+EKrXTxRdkNInErBHEsJbbkviS1+nhh6GW0xfoIiuA7kME7kUWt7NWs1lkPTAaAW8VVylqk1kx6FBM63WSFH/WX+gDCgvfj/IxIVlp4n2ZX860pzN3YJQT5NYQ0TOfm3BlZpdXWbyoMvPpOfObuDmQjwfYsek= 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 F118F1DB5; Sun, 8 Mar 2026 09:48:38 -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 232923F694; Sun, 8 Mar 2026 09:48:37 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:21 +0000 Subject: [PATCH v3 16/30] 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: <20260308-tools_build_fix_zero_init-v3-16-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=699; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=zZWJIC8VbpQuI1hDaElrE8baXqOOQWX8nVGfpiyFrK8=; b=7gThH40JGRdcqk9gkULdYe3ABJvdgegtXG6cu/q2nU8GYrhAiSJWF2Vu2ZU05hHnGuTOKUDRq DATsgdy+PjxCUG6wrDvhl3TOvxuJlwO+kfn+oeIHPpRXm6Ox/RP6Q7G X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/iio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/iio/Makefile b/tools/iio/Makefile index 3bcce0b7d10f42208765be83dac047faa2e0ceb1..c189af6286751d141348957e4d6= 3d33b87410381 100644 --- a/tools/iio/Makefile +++ b/tools/iio/Makefile @@ -12,6 +12,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS +=3D -r =20 +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include =20 ALL_TARGETS :=3D iio_event_monitor lsiio iio_generic_buffer --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4817D3537FD; Sun, 8 Mar 2026 16:48:54 +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=1772988540; cv=none; b=GgYcYQeZmrTNqGuhLSJ7R4D37G6oKfsxjsbA0OIiNy/wL4m8P1U+x2cRMfasROmf0652azkky7Y1ktF5VFo8E/LUbowsMlX6l6Urxgvj17RWXYzVkDmUBGSdEF43wscBglIfWe7s68mf6IyrIX92GjZ5K7EcxIXjXCscwAVDWi8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988540; c=relaxed/simple; bh=1TwTJl4Yin1l8YyO5tM8kMrq8QWHQKEtmwUYKJD+IYY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h8BX6OKD2sJXAg8F+t4UK47/LZqm6dSLKdSDyfe64RTvh9rbLl5HIC59h+/ChoQkZG9HEYolNANpUyMVDmMoj0zrCy97wdUcMj7CEAkH1XThCPEE3lktPzMnSyPvaK3b6bkFT7K+4AW0/IAkXutGHrF8MIDoyVEWZkjMwJxBRTY= 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 3F17E1C01; Sun, 8 Mar 2026 09:48:47 -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 6F6853F694; Sun, 8 Mar 2026 09:48:45 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:22 +0000 Subject: [PATCH v3 17/30] 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: <20260308-tools_build_fix_zero_init-v3-17-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=634; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=1TwTJl4Yin1l8YyO5tM8kMrq8QWHQKEtmwUYKJD+IYY=; b=cPicB8vZufyyYnQ7lD7ggIGeMJa/Z0LLVlpwCck2MYQVvqGgm7R6pPnt5PjujYmCM11FXbfP9 ZvfQiiEaFZ7DUjr9XMS4rLx/XQeZM/8I4PbOFA7T5yC5/nk/IwIk64D 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..742c1639db0a6f7aee59cf8f463= 4cb40eacd49b2 100644 --- a/tools/mm/Makefile +++ b/tools/mm/Makefile @@ -9,6 +9,7 @@ INSTALL_TARGETS =3D $(BUILD_TARGETS) thpmaps LIB_DIR =3D ../lib/api LIBS =3D $(LIB_DIR)/libapi.a =20 +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D -Wall -Wextra -I../lib/ -pthread LDFLAGS +=3D $(LIBS) -pthread =20 --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 622BA34BA2E; Sun, 8 Mar 2026 16:49:12 +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=1772988557; cv=none; b=NGrcUjJ0H8kMsW5HqaYxBAONn0D9uwaj4a5kULOJqQipDc+AIRgjpFL61eOxsiH4UattMLYOIuxVnWejPPUoomep4JC5drnlJ/MIiO/iH55P5PKuMiCjkEIBYm9Bwn3LwnEMaVMfzQOAocCD46x5hGSK2OtWpIShBfMN4omxRvg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988557; c=relaxed/simple; bh=+1eHuPUMvMgXuyMN6uOdzIYIpwsuKuiu5gQn19TAlZ8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CUW3Y9hWfvhkyOmPYKWBgZS/2OADDH/wLGykf7ktjyakufK36GaMHl5LEixIE+YpcEf45mohD3Gv/KlQ0ClT5KtCyBjAUqjDr0ncHBideCmKoke/4FDePJFLCIWmR0j4QJhAJCkUeAINoBjF83BuesM0u+tnF5KTqWg58Rth4sY= 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 841AD1C01; Sun, 8 Mar 2026 09:49:00 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B21AB3F694; Sun, 8 Mar 2026 09:48:53 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:23 +0000 Subject: [PATCH v3 18/30] tools: 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: <20260308-tools_build_fix_zero_init-v3-18-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=823; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=+1eHuPUMvMgXuyMN6uOdzIYIpwsuKuiu5gQn19TAlZ8=; b=WVHp/PVSA93B9ZiuYlKmtT4hgVNbkqIJUIpqBiwlUqYW2amEgF5cFgVMyzaMw2tpfvRIFp5aW hj1eTUzNXdDDlguovhxMNUTNyUfqraHhlmZQUxMLehV3vNO7MXHg88G 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/include/nolibc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/nolibc/Makefile b/tools/include/nolibc/Makefile index 1958dda988954d8a604b28f5feb75ebb67ee2e14..b7f0385ccba14fdaa08aab6192a= cf0296b47cdbc 100644 --- a/tools/include/nolibc/Makefile +++ b/tools/include/nolibc/Makefile @@ -105,7 +105,7 @@ headers_standalone: headers $(Q)$(MAKE) -C $(srctree) headers_install INSTALL_HDR_PATH=3D$(OUTPUT)sys= root =20 CFLAGS_s390 :=3D -m64 -CFLAGS :=3D $(CFLAGS_$(ARCH)) +CFLAGS :=3D $(CFLAGS_$(ARCH)) $(EXTRA_CFLAGS) =20 headers_check: headers_standalone $(Q)for header in $(filter-out crt.h std.h,$(all_files)); do \ --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 916EF355F4D; Sun, 8 Mar 2026 16:49: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=1772988553; cv=none; b=HXu8DiTc6LqegGC5NiBCUyqd71IU0HrC8XsNMpBLyW0befCg3RB84nH+Js1vj4Ahvypyt3f6WwrT8skxi+sQrZTOCXj0oOLmKLi9ejlWj3kZqPhw6vkGy3b5gldgAtjsbB4PiyoZrxcY9GSdcJuHbgF8fL+6f+n0XZtST48VMNE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988553; c=relaxed/simple; bh=Amn4P40BAlBk4Ag+n9eCcy5jzEAK4Ibu1v4I55f1mrQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h8CL2ylOZiNWGyT89WMJ3+fk5Nwi8NL/RACHTL+MpwkhOTMQsgfNoAXPza0Pi1Sc0TZ61AQzKWFOlKjCqJV1pJEVUm1Gox6fBLthaB3IYQz7OptfRCd7EZ5BiAEgVX+u3LfdS487HFjI4uT1/9qTW9CM+nQpooaiEX5YT7qeHu4= 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 C7BD01E2F; Sun, 8 Mar 2026 09:49:03 -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 01F633F836; Sun, 8 Mar 2026 09:49:01 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:24 +0000 Subject: [PATCH v3 19/30] 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: <20260308-tools_build_fix_zero_init-v3-19-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=803; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Amn4P40BAlBk4Ag+n9eCcy5jzEAK4Ibu1v4I55f1mrQ=; b=r/6D2rZLbD8+gjhhfKeB4uIfNj+wauYlADAoIqX9gL+a4U3+eqXyQbGvF+cpteH19xO/A4Pzd UQPkUml7fMLDs08WJ1o4wjZMU8/gNIXP0mwwaVO6cC+y2qbLzkkwkLS 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 Acked-by: Josh Poimboeuf --- tools/objtool/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index 76bcd4e85de345048bba0a6e0066c3cf61dac979..716e84cc33eaccb0e4ae592746e= b1888edc2f850 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 Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28BF635BDCA; Sun, 8 Mar 2026 16:49: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=1772988566; cv=none; b=k5kdDODuxflxk3NsWtPvfVuVFbu2sNB7jqxRC7eeC8OTAvW4aUITDTTPiXhUMTN95Q8KVZ+u1aPhLPlcWXlyhjE86fH4Wq+uLpttCdd1EWS2hvBKqNi8hL0Nk+7t4w/M+jmPU1eYGQw4D39SjSoWorj6Uh7cZVYv12uv5NMliDE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988566; c=relaxed/simple; bh=ZCsun82uXT/FEImdgCoWKmDsRUShv8CL4uyemFRgsDc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BxWBj8sph5xWdDu5hZadF9NrhlBf1P/1k5xfu1PQ9TQYqHX/iB8pRI543iR2dvuO6hbAaVv4QOhajc5g3++5QdTrKU9LEIiZUyyNMAeRK0QDGeVmmsGq7pCuR+3I81RKQQXPTOmWefUtPuPd7uCTatRURhGoFzoV9SxueU/0M2E= 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 130951C01; Sun, 8 Mar 2026 09:49:12 -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 4564B3F694; Sun, 8 Mar 2026 09:49:10 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:25 +0000 Subject: [PATCH v3 20/30] 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: <20260308-tools_build_fix_zero_init-v3-20-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=798; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=ZCsun82uXT/FEImdgCoWKmDsRUShv8CL4uyemFRgsDc=; b=zkuCGaYrOnHBnebwaqPw1qq/NCHxPwFQ+WxFFfQu7pufui5tld+LQ89ggkvxLEHTDvgP70QZD DlIiKq52An6AaqssO5wUj2fF3HHI6nWXe2Zz/nqbUJFsFsP6yfxt/Mb 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..4978c06828af7b0f47e533735ad= 82c962b7e0765 100644 --- a/tools/power/acpi/Makefile.config +++ b/tools/power/acpi/Makefile.config @@ -67,6 +67,7 @@ WARNINGS +=3D $(call cc-supports,-Wdeclaration-after-stat= ement) =20 KERNEL_INCLUDE :=3D $(OUTPUT)include ACPICA_INCLUDE :=3D $(srctree)/../../../drivers/acpi/acpica +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D -D_LINUX -I$(KERNEL_INCLUDE) -I$(ACPICA_INCLUDE) CFLAGS +=3D $(WARNINGS) MKDIR =3D mkdir --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3232935A93B; Sun, 8 Mar 2026 16:49:27 +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=1772988576; cv=none; b=BaRE5CWsq19cKIFyo/5vGzxBgOACeIYLGioxagoGDTtGHuYx09VMGgb9EqyGs0nluLcJnrIf1ENzEuvOpp5to248H/31Y83OmKl3x/Wfw31UymYv4RaMdvXny6JSAmx8O4vcx7RVR50zAR86x9BSwVFx0sqAW3HUA4A2BaGIT80= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988576; c=relaxed/simple; bh=JU3yiVSZHwVQ9lbVIQXDoR4TvCgrqv3AhO5aUZxUA0Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MavO2N6h8Vsa0wVzDKVqOHktFylt2l+WP0v5XRJB1Y6+TNvAUapmdYv+j2e9L4X0w+JUpK+84gNEqkBe8kH8aA66O/UOnR1V3ZTATWePooa6DqmF2lACXsi6Sa0PSgMJrDzHthQnqm2LNc4hE3RqYFLDiKCr+lbB2qMKA4eHWXY= 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 5D6441E2F; Sun, 8 Mar 2026 09:49:20 -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 8603D3F694; Sun, 8 Mar 2026 09:49:18 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:26 +0000 Subject: [PATCH v3 21/30] 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: <20260308-tools_build_fix_zero_init-v3-21-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=794; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=JU3yiVSZHwVQ9lbVIQXDoR4TvCgrqv3AhO5aUZxUA0Q=; b=+XachQKrE8UFVcz2/PPKFtIabNzNISJMpdk/uSQ60fnET0Sk9x6q/g6KzTIQhBJ9563OUL3KE yJN8J4n4SrqDfRezeto5xj1JqL6Yz5dlgF6LCzOhNVz8lEssR2hVDVZ 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/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..61d6e81f3cf1d6427addb4f31c1= 369ac663ba3d6 100644 --- a/tools/power/x86/intel-speed-select/Makefile +++ b/tools/power/x86/intel-speed-select/Makefile @@ -19,6 +19,7 @@ ifeq ($(NL3_CFLAGS),) NL3_CFLAGS =3D -I/usr/include/libnl3 endif =20 +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include $(NL3_C= FLAGS) override LDFLAGS +=3D -lnl-genl-3 -lnl-3 =20 --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E086350A0F; Sun, 8 Mar 2026 16:49: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=1772988584; cv=none; b=fJ/2OOwo4B3NPhvZhwoDbeRpY75B3taA7qqx9m0hhMwXyYE92ypJYX0Xde8qEJ2EogYh5sU8XdbokiZy4mavwZXbl22tqoB+SaqmymLpAqqKfAiHjZAxwb/RdOTdM/if2DgyAtQn/jeDxFkokc10K6M3SIZJegraPzRFJ9AXozY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988584; c=relaxed/simple; bh=0tbRsrAqNtvt02ZUsKz9aUOlZSI11eelsjKSZY3CjJM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Rb18YsBU8imqe38Git0NDueabmDPcY/bFkHK2ZKikCzft/1pIZh6sXQX8EKsa4qRzGKYxV4p8KgPpzSQb/BLCvqHUntummI1bxxtfceubaJbaO1WdpcDmEbkYyUjUq5PiBhxBRO3xUwZoURmGOmhieXw4+H8bHJKNmneXDBOEcA= 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 A161D1D70; Sun, 8 Mar 2026 09:49:28 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D03863F694; Sun, 8 Mar 2026 09:49:26 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:27 +0000 Subject: [PATCH v3 22/30] 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: <20260308-tools_build_fix_zero_init-v3-22-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=740; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=0tbRsrAqNtvt02ZUsKz9aUOlZSI11eelsjKSZY3CjJM=; b=3mxmHWREOmL86iZ4b0ra8EZUXNIN4MLw+y3ZeAIgDqLVdqknM7FKEpFufnDRBZrJRFwFF7ZBT E1H2HfgmoY7Brq4N2P08i9hqKzKIt6Bhpu38OdQNUDBOT9CsQtkb01D 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..7b97af037ae55981bc84d4a9140= 766fdf4c62a6c 100644 --- a/tools/sched_ext/Makefile +++ b/tools/sched_ext/Makefile @@ -89,6 +89,7 @@ ifneq ($(wildcard $(GENHDR)),) GENFLAGS :=3D -DHAVE_GENHDR endif =20 +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D -g -O2 -rdynamic -pthread -Wall -Werror $(GENFLAGS) \ -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \ -I$(TOOLSINCDIR) -I$(APIDIR) -I$(CURDIR)/include --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE2FE3612EF; Sun, 8 Mar 2026 16:49:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988587; cv=none; b=EQ3RcSYkt6n2nIVj6dfdKQcjbW6hHhI0/W3Ot6U9t1UIJ0cJXaLibevdm6gI2wmaviQ7JI/n5SgU1Hqg87lJfofgxKNTv3R+D6kmSWxcjtxW29Jy4yXpu5U8c4BL/VE2QMwDGV8MxSCg6A38pFihdx+ZXYIfGmVi9Msslq+gYQE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988587; c=relaxed/simple; bh=J1ogPFTmnW5O6ARh7oSL93hrZn+TDhAncS+2rwBJplA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kXGAL6BNf2+seGBBUuYs19L3wlUKo8BeWzuOfDNNB7Ni5DzRRF5Trq1x3z/xdlNOTVvccNhwZ9JbtH9DVlK9bCcApvy42YwVkIsh0+kq4c9aMWud1fV28B+nGLzuT2g9ha4SzTFWXqfJtogsHsfi1aY6FUst78SYMK6JW0cw4dM= 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 E2B341CE2; Sun, 8 Mar 2026 09:49:36 -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 202123F694; Sun, 8 Mar 2026 09:49:35 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:28 +0000 Subject: [PATCH v3 23/30] 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: <20260308-tools_build_fix_zero_init-v3-23-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=661; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=J1ogPFTmnW5O6ARh7oSL93hrZn+TDhAncS+2rwBJplA=; b=40xOyASivRJHgeiywchUIxRcqZqNtkn0W9qwmju3b+0HU2cIRTjnvI1wF5iadsSbGfgOlf9t0 caJLS8LHa/aDh9Ic2bX2Pc1t8UNl6hSJqabTlEHbpzrIgruxn25oFQe 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 Acked-by: Mark Brown --- tools/spi/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/spi/Makefile b/tools/spi/Makefile index 7fccd245a53515ab019529c8e5e91a044eaaa68b..1e3b3f91634cc2561c434c02f81= 2942fa881685f 100644 --- a/tools/spi/Makefile +++ b/tools/spi/Makefile @@ -12,6 +12,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS +=3D -r =20 +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include =20 ALL_TARGETS :=3D spidev_test spidev_fdx --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35AC336C599; Sun, 8 Mar 2026 16:49:51 +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=1772988598; cv=none; b=AD+OAT3ERoIzlJIANj1OniGqlU3OM6+YbhD4tACQEIDk8wALJlVzZm9LoAaf1T7Ob4V9HpBzjksym8aGqRnvnh2RpyHPDQ/YqUD/HeaZ/2W3/WItG+s4sV6RnKbuu7t3Xw8u4RzgoWeWFVxKNZokpz6HOZnR1yIg9m5ygeJaxPc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988598; c=relaxed/simple; bh=YVmQTIJurSjqF+sjeJd0p+AY6rAqVCNLGYyjE+3pn0M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WYHTrrj+5/tXbg35OaFhThL6BWcYoQse8xycDqNlrjKXU1uWuk4no5fqX3DLr+6QvWntC5cGDVC4lKqUM6dY7HjtKFicUwMhhBjBQECLfDogGcI3PRZ3jbvoSukYMf+PIEetB/zMEPbY9K9NaaZh0PkaZfZAJDpK6R8kAK6itas= 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 2D4191D70; Sun, 8 Mar 2026 09:49:45 -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 61DA93F694; Sun, 8 Mar 2026 09:49:43 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:29 +0000 Subject: [PATCH v3 24/30] 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: <20260308-tools_build_fix_zero_init-v3-24-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=659; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=YVmQTIJurSjqF+sjeJd0p+AY6rAqVCNLGYyjE+3pn0M=; b=CLTefzDBBcXh2N9cBehRNOry+sEHx/7Wt/4sUZwYwHmoiuQFvs/8rg+OFwofOKUtKlVGnNbpc YmA78i+OgOVBjQ5xPpQ5OTGNOPULqT8//JdCC4hHX9zk4pFAf516m1G 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 Acked-by: Steven Rostedt (Google) --- tools/tracing/latency/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/tracing/latency/Makefile b/tools/tracing/latency/Makefile index 257a56b1899f23837de533353e9c2cebdb6035bd..1468640117dd540b2976cbcafb2= 371ab16e104e9 100644 --- a/tools/tracing/latency/Makefile +++ b/tools/tracing/latency/Makefile @@ -56,6 +56,7 @@ ifeq ($(config),1) include Makefile.config endif =20 +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D $(INCLUDES) $(LIB_INCLUDES) =20 export CFLAGS OUTPUT srctree --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75B76375F67; Sun, 8 Mar 2026 16:50:00 +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=1772988605; cv=none; b=OGLroHHq1AusD15Jr4ixRXJXut+mgSuH5lN6SOi0167fDP3X5sjVOX9FNtBWAoY1vG0/2xoHVTRY45A0YmO8jWdI/+KOAIj1wrOO0aLD3ha1FWJGz+BbGWxPBCN/VZ/g8FdIagp0Lq3U9+C8Gh80qvA6D3cIsxTvnaseRZxepPg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988605; c=relaxed/simple; bh=aQDQhEmGOj/4xgyuOo7wTgcGfAdaILM48C6FWs5qRSI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Mc7Hgb0aGkvE2Ai7lj7pKP6WNr4NCgc6KWQ4xlIDxHs8Q4USHjwus16a8cnK/bvJysndxtfPQlAvh2MGyjbtM2kPW/pf0YmzeqklCdmatqCyEB1+TkvkkZFtOfAkPRKwQhCfRykQyhauYrfxBNLfHZsEMLlSdmGCAQ6IPJ7NSmc= 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 69D791E32; Sun, 8 Mar 2026 09:49:53 -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 A09453F694; Sun, 8 Mar 2026 09:49:51 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:30 +0000 Subject: [PATCH v3 25/30] 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: <20260308-tools_build_fix_zero_init-v3-25-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=706; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=aQDQhEmGOj/4xgyuOo7wTgcGfAdaILM48C6FWs5qRSI=; b=TYqp0riPivwOJo3/nknFfsEXJ36CXlBq1vJXJfwAT2udmj1IqJK3R7YzGgn6Ai6v85a+LU7Dv 1zoL5ZbSpHTD2VLkxfev9LXJrwXA6KE98sB8dAR7FSVsllyP73RoxDP 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..db2ff5b8e5ab7b76e424df32ed5= a9458daa5d516 100644 --- a/tools/usb/Makefile +++ b/tools/usb/Makefile @@ -13,6 +13,7 @@ endif # (this improves performance and avoids hard-to-debug behaviour); MAKEFLAGS +=3D -r =20 +override CFLAGS +=3D $(EXTRA_CFLAGS) override CFLAGS +=3D -O2 -Wall -Wextra -g -D_GNU_SOURCE -I$(OUTPUT)include= -I$(srctree)/tools/include override LDFLAGS +=3D -lpthread =20 --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 878873542CA; Sun, 8 Mar 2026 16:50:08 +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=1772988612; cv=none; b=TILC4kXIdZgczlECgE+2Ey1znju3ZiTjKVlmNuUgD6TobTCLWOFKl2x+nRh74LsHf9xnce7dARYNbeIuMeAt4ynTPYeV10o5hglV2YZ5Eb0RqWsd3dYtFHQZ4IS4UV5318sKyxcd7y8L4rj+zLA43F1u/gxzIC4HCwsRSFa8C7M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988612; c=relaxed/simple; bh=HjKy1yNbOgQLCbEPUFlzOk+uwTzZBAtD2E6nw3UWOug=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=giQ541b+sTt6UPW5lzfwTmDYW8qlx7B8dGLW5ZC9Eq/rqWY35/2gjL/84emOPnKLn+I7rJ9TZGEZmWSeUPKGiL/vXmT/NQkSh1wBChTTfobw6syXssr6AuhrUA6xDmXZnWXBBGM/m32im/9Ye7HIMxJfMRaLz8Zv7cqM4hldqmw= 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 B09161CE2; Sun, 8 Mar 2026 09:50:01 -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 DCF8B3F694; Sun, 8 Mar 2026 09:49:59 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:31 +0000 Subject: [PATCH v3 26/30] tools: verification: 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: <20260308-tools_build_fix_zero_init-v3-26-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=659; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=HjKy1yNbOgQLCbEPUFlzOk+uwTzZBAtD2E6nw3UWOug=; b=96zpi2G0sJauSU2S+gSRIvS2fub1iBrMVy1q9XuxhvFOhHO2vG3LbMNNMvSwqeu4ckzJk4618 8VQ+a2lUevJBLJ/k2WtfrG3xRbXJNfyj/GZhwxG/amgU0LeUZm00RdW 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/verification/rv/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/verification/rv/Makefile b/tools/verification/rv/Makefile index 5b898360ba4818b12e8a16c27bd88c75d0076fb9..2882f0e93dca03b31d790b42d2e= e3d8f73cc5c8b 100644 --- a/tools/verification/rv/Makefile +++ b/tools/verification/rv/Makefile @@ -55,6 +55,7 @@ ifeq ($(config),1) include Makefile.config endif =20 +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D $(INCLUDES) $(LIB_INCLUDES) =20 export CFLAGS OUTPUT srctree --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8C5D34D4CA; Sun, 8 Mar 2026 16:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988622; cv=none; b=naTGXM4Mq/GdxlFEeh+8D7FeLvtjpJRgRGPNDnAeBNEXn7nIJy+xVhJDQJZL0iTv3bVt5M1qA+zr5TyzaOgUV0sDxopRsy5YZN4/AC0MWwneMvWFFx/Fi8y3NKBfvcXrGQAwyrDG/8yIxE+4sTELI1Lgcvt3OVtFQC2GnyoN/6s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988622; c=relaxed/simple; bh=4jS6VhC1o17u3kAOSFbl/nskx5znu+8CYsSgrzPEvW4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nmlrDPxXRBZayaahpZTj5YJZq+kN4ttX0EEIsOBONp5KwaBXnPb1nb74fBSrapIEqoP5OPGWTsoq/dGrSJMKsios3EslB6GVZTm+d7EyEmSzXfmEvX09c3LAVHRxpgTI73IqLrXbRczUCPVZNIBpLTjDAViyBKSa8JykdwqIK3o= 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 018801E2F; Sun, 8 Mar 2026 09:50:10 -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 309053F694; Sun, 8 Mar 2026 09:50:08 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:32 +0000 Subject: [PATCH v3 27/30] selftests/bpf: 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: <20260308-tools_build_fix_zero_init-v3-27-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=802; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=4jS6VhC1o17u3kAOSFbl/nskx5znu+8CYsSgrzPEvW4=; b=He5d9nEDUf5L+pmtpZpqbqoiP2twA3IIn0Jwwz3Rkg2vE//5IvmnZeo/2FkQelpsDshG/pGP5 hU7yfDtzAnBA9w5M6YU5Bdti4hRw+irDusMQU1Z8e4lxM/IfcXXQUxx 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/testing/selftests/bpf/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests= /bpf/Makefile index 72a9ba41f95ebb825d25799c07ba3f0311243e45..29dfcdbe98c781b53f1e87dcebe= cf2027bafcd5d 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -49,6 +49,7 @@ srctree :=3D $(patsubst %/,%,$(dir $(srctree))) srctree :=3D $(patsubst %/,%,$(dir $(srctree))) endif =20 +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D -g $(OPT_FLAGS) -rdynamic -std=3Dgnu11 \ -Wall -Werror -fno-omit-frame-pointer \ -Wno-unused-but-set-variable \ --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A874387571; Sun, 8 Mar 2026 16:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988634; cv=none; b=OJh2kChSdjNQcIgiMQaFrHk4tUU/a4ihZLi+nRpz2+fLoNqzGUmCX0P4maZVu84w+UbtdZqGmq6Go23Z5+FOy/+yywe30kAQNVtEilRpQlHDaBraauva5tUFJjgiXpXjesNVem7wMj5y5XxgbXoi6X+Ln3c8oLUleQHRjrT4MWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988634; c=relaxed/simple; bh=WAiB3ehRmPaWBTOZGBi1Y2iD7qN9hh/u4cd9B1aqysc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iKTVVL2jL1mpnDWm+bSrQF9fTZvW+UCjvswB3r+65RZFd+MByBGtV2RlWJXXtAGKuD79oAqXZC+VP8Wh4tu1k5u9cakHn2tb0MdMFcrH/g9uu21TURUAQ6buJ1SRbn+Qk0OG9+hROXCJjnBNI48VHLWTN4eJksJNjZFUq4eBPo4= 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 43A4A339; Sun, 8 Mar 2026 09:50:18 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 73ED43F694; Sun, 8 Mar 2026 09:50:16 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:33 +0000 Subject: [PATCH v3 28/30] 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: <20260308-tools_build_fix_zero_init-v3-28-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=715; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=WAiB3ehRmPaWBTOZGBi1Y2iD7qN9hh/u4cd9B1aqysc=; b=ecb+KYfYiuQnAE0MuKOOLVTzW0Xw2mAdi4ZNHTtBacoaq3C8Pshry1ci0DH0jWDOXA2u3ebNC okreDpQqnO8DRZMDthzcBlSLDmbpnyrQTz0ua8jsE7gWuPqpr3eDTPv 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/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..d0dfa411af9b56ea3458184b8a8= 1ef61bd44b1fe 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -24,6 +24,7 @@ CXX ?=3D $(CROSS_COMPILE)g++ =20 HOSTPKG_CONFIG :=3D pkg-config =20 +CFLAGS +=3D $(EXTRA_CFLAGS) CFLAGS +=3D -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT) CFLAGS +=3D -I$(OUTPUT)/tools/include =20 --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D3EF3876B6; Sun, 8 Mar 2026 16:50:38 +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=1772988644; cv=none; b=qjW00BYH/FqaPGIKDNgXVBUCuHTlT42FiOeReDTlp3ivWiQw32UK5gf1/6E7l+SkBRU3W0jpjhNXKC3cJxUGlXXRiLoDzQ3abCdS/tPgTEiH1fR4v8aCYsIwpsf2WYQ4Lk2afhzbC215jmWZO4+53JCuj9BH77e1k91LhxS5Hz0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988644; c=relaxed/simple; bh=wI0ZzlaUqdmLeUr3Qt06FzGY5qETjJV/UiF3Xt9WLCQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MU0nJ2D3BHFNbuO/9ViFI9SQl3582zeqyepzmbndkOFIL0wO1M5dgEV2IheeJ+K+D4gxAsSlSAAFaWGpasxlLxcuwWjf1920QI3hxK3NqfReItkAfqnFet6ktZiisjCeqgVZNKqWAdJowZ2aUtnUMl0EMTEvTu48iZbq79a/rZI= 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 877F91D70; Sun, 8 Mar 2026 09:50: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 B80003F694; Sun, 8 Mar 2026 09:50:24 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:34 +0000 Subject: [PATCH v3 29/30] 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: <20260308-tools_build_fix_zero_init-v3-29-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=1041; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=wI0ZzlaUqdmLeUr3Qt06FzGY5qETjJV/UiF3Xt9WLCQ=; b=LTojAk5A3NPwdPhsoLAHFqffemtdulAGOxQujgjfC90DirFuro3zi/qVrRRJ8J3chqFLxpvhS xrYedoglo3HAhXpbYrD8xvQ/M1JLzfUCr61mNJbrmtPTJ9/mJfGyMhq 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/testing/selftests/nolibc/Makefile.nolibc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/nolibc/Makefile.nolibc b/tools/testing= /selftests/nolibc/Makefile.nolibc index f5704193038f7da935d57e0f894970b6e29b78da..e58b2f5eb2b231bb1c194db7365= fff7b4e244e5d 100644 --- a/tools/testing/selftests/nolibc/Makefile.nolibc +++ b/tools/testing/selftests/nolibc/Makefile.nolibc @@ -252,6 +252,9 @@ endif # Modify CFLAGS based on LLVM=3D include $(srctree)/tools/scripts/Makefile.include =20 +# Append EXTRA_CFLAGS if it is set in tools/scripts/Makefile.include +CFLAGS +=3D $(EXTRA_CFLAGS) + REPORT ?=3D awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{if (!f) printf("\= n"); f++; print;} /\[SKIPPED\][\r]*$$/{s++} \ /^Total number of errors:/{done++} \ END{ printf("\n%3d test(s): %3d passed, %3d skipped, %3d failed =3D> sta= tus: ", p+s+f, p, s, f); \ --=20 2.34.1 From nobody Thu Apr 9 13:33:32 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E58C3389456; Sun, 8 Mar 2026 16:50:41 +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=1772988647; cv=none; b=hC/fPOsYN7IEkfMFvJq7Hxi+aZ89nd0GN8F8AJB1XPj9gYLvNhatVxUuiFCaz3mPluFXyl7eXaBI2dTD+mmTvEvZE/ipcjoI4lDujM4Vls9RNrqwuykn8+alq1VL3pCDdsB3DeA/CepDOR2a9xE3GbgylBnjxUoq5eqojJB+M2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772988647; c=relaxed/simple; bh=6fa1hK+r0aPhZL3fayi+LxFYmgJr6kdDCoMOrNXGWCA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Flmuhq2waeTQgoD5RyErTrGmiba/pgsiGpGAFdaq8I/HPrgT02HxDvirzw01tZvWOtBC6PsqUS1NXwpzHa1iI6R9uHnDclhZzLTpBs5aqhNzdsQCcEreM66PYpREqLs/dK0iH9yuRWR9bhSkuwoc385T7nNPhn4jnOePUTvwvY4= 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 C8E551E2F; Sun, 8 Mar 2026 09:50: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 087133F694; Sun, 8 Mar 2026 09:50:32 -0700 (PDT) From: Leo Yan Date: Sun, 08 Mar 2026 16:46:35 +0000 Subject: [PATCH v3 30/30] 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: <20260308-tools_build_fix_zero_init-v3-30-6477808123b7@arm.com> References: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> In-Reply-To: <20260308-tools_build_fix_zero_init-v3-0-6477808123b7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772988384; l=850; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=6fa1hK+r0aPhZL3fayi+LxFYmgJr6kdDCoMOrNXGWCA=; b=gAKVQy5T5THX3Hwb3o86ZTGlxfO0FDVQewHiIZIpOeEtI72L0rRLygt1lC+DnZSWfq3gAPTdN o9UY9Ce/uECCLY7rgjJFBrY2hYVd1Og7K56s1ikShRDPd+Ni2V//V9/ 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 Acked-by: Andrea Righi --- 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..81d8f4a184245d8c330cf45b75b= d868b2a7aa7dc 100644 --- a/tools/testing/selftests/sched_ext/Makefile +++ b/tools/testing/selftests/sched_ext/Makefile @@ -53,6 +53,7 @@ ifneq ($(wildcard $(GENHDR)),) GENFLAGS :=3D -DHAVE_GENHDR endif =20 +CFLAGS +=3D $(EXTRA_CFLAGS) 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) --=20 2.34.1