From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC81E3F4DCC; Tue, 2 Jun 2026 14:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411264; cv=none; b=egPwy5V6NoYz6jaUggK7XgF473v0FLF6K8lfrgoM/ArKiLGTkfrhj/wzvfJQzUwt7Es7K9rYCz3UgkQgIdM3zRGmfPLa1EYDC482vcxGiOZPejjxKFUj1X/sk6ZkQ0Xp2Cm13sY07zc8G7LwPK07fnjCBVJC0nDBZsOOlgoSB8g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411264; c=relaxed/simple; bh=QlxqPfGlmp00Gm1LThv7H+jhWuYECXWFEH8vLVpP9r0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fojkfxODxrggQcopZsoJkjBSU2oJASgiLAb6icSZuOPuliY3Z/zccw9k83Yxwolmd8NHV43gyxq0O4ELovstW7yVrEEFF3woC4qYnKdKVmQcrPIiv0RMifRDxfN3nh/MoHbmQBorHutaQrYw/1rJtKqeP5q/WjnDwgo7rjYPXDM= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=ayxsf905; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="ayxsf905" 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 5FF59356D; Tue, 2 Jun 2026 07:40: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 7AF933F632; Tue, 2 Jun 2026 07:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411262; bh=QlxqPfGlmp00Gm1LThv7H+jhWuYECXWFEH8vLVpP9r0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ayxsf9051bKATXLWYciickz5xV/NmjX61PswUBYMo5P2frP8ceQ9KcsydHG+AWI6n XwwgnDqDfsC528+wz9WBO5v0WI509x4t4DrR4/8cLG5UjFNDqDYJmW1FceIO1lFIH/ gWu1c7dk02u+UmCAL0C+8VhsZfApUJxVgHaTjI4U= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:35 +0100 Subject: [PATCH v7 01/23] tools: lib: thermal: Fix typo Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260602-tools_build_fix_zero_init-v7-1-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=820; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=QlxqPfGlmp00Gm1LThv7H+jhWuYECXWFEH8vLVpP9r0=; b=G+PRaGOtfPbxiDUvLvogPwmjgJCFI6th309XZDnnNoOQurDBKvjan//iwesAZRnpGFXAlRbOa LEAIYgta0W6DkI2laGOTbvphSQ13xX1PXiZkpt4/JYOoYLEUEWrSW6c X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= s/CFGLAS/CFLAGS Fixes: 47c4b0de080a ("tools/lib/thermal: Add a thermal library") Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- tools/lib/thermal/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/thermal/Makefile b/tools/lib/thermal/Makefile index 41aa7a324ff4d76351b89d7d7cf382df3fc14052..09d8f4ba6a0ab7ab9c99ac7f64d= 52d0268bee340 100644 --- a/tools/lib/thermal/Makefile +++ b/tools/lib/thermal/Makefile @@ -66,8 +66,8 @@ override CFLAGS +=3D -fPIC override CFLAGS +=3D $(NL3_CFLAGS) override CFLAGS +=3D $(INCLUDES) override CFLAGS +=3D -fvisibility=3Dhidden -override CFGLAS +=3D -Wl,-L. -override CFGLAS +=3D -Wl,-lthermal +override CFLAGS +=3D -Wl,-L. +override CFLAGS +=3D -Wl,-lthermal =20 all: =20 --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DFAB3ED5CC; Tue, 2 Jun 2026 14:41: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=1780411274; cv=none; b=eTP2pHZjjKFQpWOWkJcsK8FnurHbdwgYH3Y5PdzKiRWs2pWO5DbVzpBR8I9hVb65mYLFHQZlVFYkYvZbsQ/IppsS6QD7DoZlzYYgGiZjTG5C+GVZkvGdt/XuKZ/m+dNlPx6c13fa46nOtZGO8G+GItrMM7RZIgbp+tTIsb6Vs6Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411274; c=relaxed/simple; bh=+9++KEwNlOxG/SfjKjCjUr8ot7BiZ+JJm87pV/Atazc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YRlm/uQewRlJbrpWvBMFCNQnOZzlbu2jjdiWThNXZZTAbpveuek/I15TLQBHHdI3C/XjjZ2vSlQnNuAbzyCUQUoodvt1vP20DtKPvRevdJacCzwEIA32awlG1N0IyjseXoTzeGgbxXmcRSCPBN5Q8Pi5ixbHWiy6rnTrnjwAIIM= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=LCYq91/0; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="LCYq91/0" 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 7EA0E3576; Tue, 2 Jun 2026 07:41:06 -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 9C5EB3F632; Tue, 2 Jun 2026 07:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411271; bh=+9++KEwNlOxG/SfjKjCjUr8ot7BiZ+JJm87pV/Atazc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LCYq91/0B5oFJ1IAkNfhTX6E8y2UgbRqkKpAGbFRnK1uNg+Ig3y9rpX42k4ssJHRo htCE3hgQXh/byGIZIM1lAlJ2huqgViUpK3mhKXnziOCSzeWcLdzdtpOo2/CK6dB0g8 H9f+3yy8n92JfUKxFOslLMrm9ShBrJJp6gG75J3Q= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:36 +0100 Subject: [PATCH v7 02/23] tools/thermal: Fix typo Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260602-tools_build_fix_zero_init-v7-2-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=809; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=+9++KEwNlOxG/SfjKjCjUr8ot7BiZ+JJm87pV/Atazc=; b=YZucx+D5fcyi7lvIx/6uoz4FSOGGJ/ywVabUnjBbIMG7BYx2UNIiTr61sLfVfXHpWcXnqgLSH MQQNPmqAqkkDUY+/qH3Msub/AYefXDqXWlLvrhTVWi7wxU881vkLO7N X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= s/CFGLAS/CFLAGS Fixes: 3b7c5e8adf9c ("tools/thermal: Add util library") Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- tools/thermal/lib/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/thermal/lib/Makefile b/tools/thermal/lib/Makefile index 056d212f25cf51cd8c02260fbe2ef28dda5e4acb..8c9a37f999b826855dad11c0d95= 74b41d5b24244 100644 --- a/tools/thermal/lib/Makefile +++ b/tools/thermal/lib/Makefile @@ -60,8 +60,8 @@ override CFLAGS +=3D $(EXTRA_WARNINGS) override CFLAGS +=3D -Werror -Wall override CFLAGS +=3D -fPIC override CFLAGS +=3D $(INCLUDES) -override CFGLAS +=3D -Wl,-L. -override CFGLAS +=3D -Wl,-lthermal +override CFLAGS +=3D -Wl,-L. +override CFLAGS +=3D -Wl,-lthermal =20 all: =20 --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77B783DA7DC; Tue, 2 Jun 2026 14:41:21 +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=1780411282; cv=none; b=Szqk19RKOqzEbwFlBpkxwpFZ+rLDUMBQYlfLXY+0RjHuUssEb115pZxQx5OYwGORw3MzGThDpE3E2CEjX+zQIGyzFQ+sDie1rfedRGft2UT7tnSIxHwd+xH8qfc0SQfT9gRl6qAA++whLgeSbeiztziE5KeZBMqurWZWPrk1sP0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411282; c=relaxed/simple; bh=HHiufcx01zjsi7OxV3Txr2WMedIY5n8R+m3Nlsc8pBA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FS1eXbDSeq4c71TkLNNGSSR+8mbQtE4cTXZzCoVi3TqInh0fiFwFul5bfdWnzhbK7Ar3uA2Wlc1Cw2Ef4HW9uPPDyumwI25VnQc80M/1cX6p1TDVk+y6EsBwErhelMWrsrYMQdaeaa7994ICINJ8Wn564k0QGECcTXGokFBPgjc= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=KwcwbtNT; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="KwcwbtNT" 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 927E3356E; Tue, 2 Jun 2026 07:41:15 -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 B805D3F632; Tue, 2 Jun 2026 07:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411280; bh=HHiufcx01zjsi7OxV3Txr2WMedIY5n8R+m3Nlsc8pBA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=KwcwbtNT8aixczaOegLDaEhlkEtxPlDvciSfVrmMvbqRJuqSE0RhSvqyjEPB5oA/p NXtEf4iCL1zuYqKPmX9mVHAbR/8cCWTHjMRVwGRJK728hk/suoekbD5vRiu6dYAn18 KQz0HbhXNng0HRU/jkVr7Gv1tPOHSd+h+cqBfDxU= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:37 +0100 Subject: [PATCH v7 03/23] 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: <20260602-tools_build_fix_zero_init-v7-3-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=2051; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=HHiufcx01zjsi7OxV3Txr2WMedIY5n8R+m3Nlsc8pBA=; b=ncA0k8UPBw1yVdeOZX6+s4cEVEcDklxCjWVacInOEP575mT+TNq4r6yTa5cAUdwj5G5ovxSbU YpWhXLumAzvDNCYN2doqtMsaMUXi5DdAnz6ATK7v28guOl8E6U89jF8 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= tools/scripts/Makefile.include may expand EXTRA_CFLAGS in a future change. This could alter the initialization of CFLAGS in the thermal Makefile, as the default options "-g -Wall" would never be set once EXTRA_CFLAGS is expanded. Prepare for this by moving the CFLAGS initialization before including tools/scripts/Makefile.include, so it is not affected by the extended EXTRA_CFLAGS. Append EXTRA_CFLAGS to CFLAGS only after including Makefile.include and place it last so that the extra flags propagate properly and can override the default options. Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- tools/lib/thermal/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/lib/thermal/Makefile b/tools/lib/thermal/Makefile index 09d8f4ba6a0ab7ab9c99ac7f64d52d0268bee340..b55fa42cefa47628b7f2fac32fc= 08fcd82580a0e 100644 --- a/tools/lib/thermal/Makefile +++ b/tools/lib/thermal/Makefile @@ -23,6 +23,14 @@ INSTALL =3D install DESTDIR ?=3D DESTDIR_SQ =3D '$(subst ','\'',$(DESTDIR))' =20 +# Defer assigning EXTRA_CFLAGS to CFLAGS until after including +# tools/scripts/Makefile.include, as it may add flags to EXTRA_CFLAGS. +ifdef EXTRA_CFLAGS + CFLAGS :=3D +else + CFLAGS :=3D -g -Wall +endif + include $(srctree)/tools/scripts/Makefile.include include $(srctree)/tools/scripts/Makefile.arch =20 @@ -39,13 +47,6 @@ libdir =3D $(prefix)/$(libdir_relative) libdir_SQ =3D $(subst ','\'',$(libdir)) libdir_relative_SQ =3D $(subst ','\'',$(libdir_relative)) =20 -# Set compile option CFLAGS -ifdef EXTRA_CFLAGS - CFLAGS :=3D $(EXTRA_CFLAGS) -else - CFLAGS :=3D -g -Wall -endif - NL3_CFLAGS =3D $(shell pkg-config --cflags libnl-3.0 2>/dev/null) ifeq ($(NL3_CFLAGS),) NL3_CFLAGS =3D -I/usr/include/libnl3 @@ -68,6 +69,7 @@ override CFLAGS +=3D $(INCLUDES) override CFLAGS +=3D -fvisibility=3Dhidden override CFLAGS +=3D -Wl,-L. override CFLAGS +=3D -Wl,-lthermal +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 all: =20 --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C58E359A81; Tue, 2 Jun 2026 14:41: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=1780411291; cv=none; b=KUJIkBZ3Ab4O40pLSvQMgNqVbfV9p9+IbZdlytH2vIWJtce649iVSXJK9jzPWDYA0BzLpxjNPRkAK7dZLyXrzRAec1CdMnm2HxwoDFvUnM6Giksqqeve0LULWCS0YLdxNAgPneaHupHL1DuHjV91KYR9eeub+CqVGkAd4Bi3h8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411291; c=relaxed/simple; bh=BFehMj28QR2IYXlxOIJtUAyqZ+kYk51QCcp6lZ5W+HY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KjZNVKRLZ/SoibBI7l4WBh42oBaa2F47KLGBnFUn6IMIj7v5ZbDTfpAymYRb8rS0LKrRrpSI3IcNEsO5xYi0BlnGrYIx29IMNaUufuEbFT6cDZ/l+QAXhnNoy7cZccSSevkUbV7Dgia4TNHkPeR6mJvI+rb6IOSVbSbY5+Phg+0= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=rAnScVtJ; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="rAnScVtJ" 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 B8880356E; Tue, 2 Jun 2026 07:41: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 D07AE3F632; Tue, 2 Jun 2026 07:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411289; bh=BFehMj28QR2IYXlxOIJtUAyqZ+kYk51QCcp6lZ5W+HY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=rAnScVtJOH7FkyWDRDrTF/dsfxlykPChQbJ+Y6O6GQGGPTjtX8y1ASdxVjlCkgwR7 6IZNOCzJTuwG2NDL0HBi7Wx8+Vlu44gp98/yOOE3YlKpYQE8WxooO7d500+SmX5ITM jgiJsHn7+kVSUgiERMZODRU0HxePWSNlcpBT1BKE= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:38 +0100 Subject: [PATCH v7 04/23] 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: <20260602-tools_build_fix_zero_init-v7-4-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=1994; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=BFehMj28QR2IYXlxOIJtUAyqZ+kYk51QCcp6lZ5W+HY=; b=PGGTdqvcjJTXbrdI37469J7YKtSMq6K7A0+Y/Hqc3vJo/pgFVDGGj7kwhuE3ZUXjbboylXRXZ K2juhBnc9nNC3giIH/RaTTiigqCsbufCsrjlowlh7ewQuMqUP5v8N+Z X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= tools/scripts/Makefile.include may expand EXTRA_CFLAGS in a future change. This could alter the initialization of CFLAGS in the thermal Makefile, as the default options "-g -Wall" would never be set once EXTRA_CFLAGS is expanded. Prepare for this by moving the CFLAGS initialization before including tools/scripts/Makefile.include, so it is not affected by the extended EXTRA_CFLAGS. Append EXTRA_CFLAGS to CFLAGS only after including Makefile.include and place it last so that the extra flags propagate properly and can override the default options. Acked-by: Daniel Lezcano Signed-off-by: Leo Yan --- tools/thermal/lib/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/thermal/lib/Makefile b/tools/thermal/lib/Makefile index 8c9a37f999b826855dad11c0d9574b41d5b24244..333b711bc7f0f9610e165ff7dc7= 2c42980c59c99 100644 --- a/tools/thermal/lib/Makefile +++ b/tools/thermal/lib/Makefile @@ -23,6 +23,14 @@ INSTALL =3D install DESTDIR ?=3D DESTDIR_SQ =3D '$(subst ','\'',$(DESTDIR))' =20 +# Defer assigning EXTRA_CFLAGS to CFLAGS until after including +# tools/scripts/Makefile.include, as it may add flags to EXTRA_CFLAGS. +ifdef EXTRA_CFLAGS + CFLAGS :=3D +else + CFLAGS :=3D -g -Wall +endif + include $(srctree)/tools/scripts/Makefile.include include $(srctree)/tools/scripts/Makefile.arch =20 @@ -39,13 +47,6 @@ libdir =3D $(prefix)/$(libdir_relative) libdir_SQ =3D $(subst ','\'',$(libdir)) libdir_relative_SQ =3D $(subst ','\'',$(libdir_relative)) =20 -# Set compile option CFLAGS -ifdef EXTRA_CFLAGS - CFLAGS :=3D $(EXTRA_CFLAGS) -else - CFLAGS :=3D -g -Wall -endif - INCLUDES =3D \ -I/usr/include/libnl3 \ -I$(srctree)/tools/lib/thermal/include \ @@ -62,6 +63,7 @@ override CFLAGS +=3D -fPIC override CFLAGS +=3D $(INCLUDES) override CFLAGS +=3D -Wl,-L. override CFLAGS +=3D -Wl,-lthermal +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 all: =20 --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56A3F3E8C6F; Tue, 2 Jun 2026 14:41: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=1780411300; cv=none; b=EB5jV6KyCXo2PgCtoyOSOmkHmJXN5zFWWY2mSKcIpf68OP9hBFUF4hnmu5afjGokij4J2WAjlJkusxdmdvrHymeTCP2cMVrhCt3KJrY1eKvw1tyo6FU6zXEA+XLeL6hW4MsiHiEwqYItqPS3PnYBxRPaz2/huJbDYWBBP/q7sls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411300; c=relaxed/simple; bh=m4kJKzvaPDAO9fJFcqnRUG2SiPoHRPidnsJMAsbS3kg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l4dBaLYEsGkcMlGZ37owFqrMVC1WdTnHpAojjLctTZ8qFC+ur60Anv99h+vSvvipd8zgX7xRzhKotqq4uVizw/hFYIpGKBFgy18jYlSt9fYfOZ0qgd6TUdq4fxX9GQahFBZYHJ+mQKHaMjeDYlObhIv70aqrpW6OM/qwxElzAh4= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=b8viuyep; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="b8viuyep" 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 E95F8357C; Tue, 2 Jun 2026 07:41:33 -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 024F63F632; Tue, 2 Jun 2026 07:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411298; bh=m4kJKzvaPDAO9fJFcqnRUG2SiPoHRPidnsJMAsbS3kg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=b8viuyep91HbSLzl2aYLgzeWooZouO2Az0IT9yAJEZWDx1+y+xxPZ7ejjfYnISnp/ M5V9cTKkfB3yVP1CARs2WHJbWB4/PGH07vpzX/fAifc5H97b8nwqTPLE6EhvSAOFF0 H/mJs02700noUWirlb/76i/BTN7V+k1ir9/YMCYk= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:39 +0100 Subject: [PATCH v7 05/23] selftests/nolibc: Use a dedicated cross cc-option helper 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: <20260602-tools_build_fix_zero_init-v7-5-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=2684; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=m4kJKzvaPDAO9fJFcqnRUG2SiPoHRPidnsJMAsbS3kg=; b=ibk/8HXq1ZUzks3LTe1UOTFfd1yOC7Itai8hvwEGAt68NGwEseUNk8Ld2QThJVZmBsbZU7h2i 7Upy6TbRu0wBl2JdMRwJ8rcIHegvdxZwQOEtf6QZmFCvsYPZzmAlY8P X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Makefile.nolibc uses cc-option for architecture-specific flag probes such as -m32, -mmultiple and -mabi=3Delfv2. These probes need to include CLANG_CROSS_FLAGS so that Clang tests the option for the selected target instead of the host. The file also includes tools/scripts/Makefile.include. In a sequential change, Makefile.include will define its own cc-option helper. Rename the nolibc helper to cross-cc-option and use it for the architecture-specific probes that require CLANG_CROSS_FLAGS. This keeps the cross-build checks explicit and avoids clashing with the common tools cc-option helper. Signed-off-by: Leo Yan --- tools/testing/selftests/nolibc/Makefile.nolibc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile.nolibc b/tools/testing= /selftests/nolibc/Makefile.nolibc index f30bc68470cceec2b61805af0a4a9f2fb2de7c57..e88b1c15445f3c64dd78cc7edef= 5c9670a389b50 100644 --- a/tools/testing/selftests/nolibc/Makefile.nolibc +++ b/tools/testing/selftests/nolibc/Makefile.nolibc @@ -23,7 +23,7 @@ include $(srctree)/scripts/subarch.include ARCH =3D $(SUBARCH) endif =20 -cc-option =3D $(call __cc-option, $(CC),$(CLANG_CROSS_FLAGS),$(1),$(2)) +cross-cc-option =3D $(call __cc-option, $(CC),$(CLANG_CROSS_FLAGS),$(1),$(= 2)) =20 # XARCH extends the kernel's ARCH with a few variants of the same # architecture that only differ by the configuration, the toolchain @@ -211,13 +211,13 @@ else Q=3D@ endif =20 -CFLAGS_i386 =3D $(call cc-option,-m32) +CFLAGS_i386 =3D $(call cross-cc-option,-m32) CFLAGS_x32 =3D -mx32 CFLAGS_arm =3D -marm CFLAGS_armthumb =3D -mthumb -march=3Darmv6t2 -CFLAGS_ppc =3D -m32 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) -CFLAGS_ppc64 =3D -m64 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) -CFLAGS_ppc64le =3D -m64 -mlittle-endian -mno-vsx $(call cc-option,-mabi=3D= elfv2) +CFLAGS_ppc =3D -m32 -mbig-endian -mno-vsx $(call cross-cc-option,-mmultipl= e) +CFLAGS_ppc64 =3D -m64 -mbig-endian -mno-vsx $(call cross-cc-option,-mmulti= ple) +CFLAGS_ppc64le =3D -m64 -mlittle-endian -mno-vsx $(call cross-cc-option,-m= abi=3Delfv2) CFLAGS_s390x =3D -m64 CFLAGS_mips32le =3D -EL -mabi=3D32 -fPIC CFLAGS_mips32be =3D -EB -mabi=3D32 @@ -226,7 +226,7 @@ CFLAGS_mipsn32be =3D -EB -mabi=3Dn32 -march=3Dmips64r6 CFLAGS_mips64le =3D -EL -mabi=3D64 -march=3Dmips64r6 CFLAGS_mips64be =3D -EB -mabi=3D64 -march=3Dmips64r2 CFLAGS_loongarch =3D $(if $(LLVM),-fuse-ld=3Dlld) -CFLAGS_sparc32 =3D $(call cc-option,-m32) -mcpu=3Dv8 +CFLAGS_sparc32 =3D $(call cross-cc-option,-m32) -mcpu=3Dv8 CFLAGS_sh4 =3D -ml -m4 ifeq ($(origin XARCH),command line) CFLAGS_XARCH =3D $(CFLAGS_$(XARCH)) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3CC83D8916; Tue, 2 Jun 2026 14:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411310; cv=none; b=iq8/QuLWLvZ915NUDBOBRKv/L5xpmjTj0QHhG/5Cn+9vVD5v51YWW1va3rXzNph6SGURI4h9GGDHv9rfFGPTcEJULaxjhLJ4pkHk5EOeCvIAG/2GLfuXGJRpgybUJXS6t+8l30Uv9+djc7EDP43INr1GNIL2G4JJ/eI3aURWlC0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411310; c=relaxed/simple; bh=Zfjmx54wmhTOTfKHgSUz3oiIARFJkpv7bwoefkoudgY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=m9rfPl9GvbVaBF4ax0KZg8WSIE0x0o0vcdAh7REtIY7eHSx1TRsZYUXI4K2QO79Eo0TJcQmJEct+zcrFJgv9ZdU8sWxT+R99jaX4UCHvYaDEdwok7UD7qjvR/If0r1Lt4nYxIytv1pxfoGzTjx70bZTuf8etqmZlVmMBTmPTMw0= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=ECaascSU; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="ECaascSU" 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 2A0F63572; Tue, 2 Jun 2026 07:41: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 2FAA93F632; Tue, 2 Jun 2026 07:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411308; bh=Zfjmx54wmhTOTfKHgSUz3oiIARFJkpv7bwoefkoudgY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ECaascSUTini9Uvtuu9RP9YsoABhc96n69zxXjfsNAyHEoeEn72dZ4Zme3sWq+uHH 25lZyKZsiiO3uevYUver77T69sYbNgxKBj42N0E1PRHPZWdL3k6C8NbCHjdFvLDqJT 3LMsAH4zKeuhdK3J//nYXu5hBI8mHECXbt/tl3Ic= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:40 +0100 Subject: [PATCH v7 06/23] 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: <20260602-tools_build_fix_zero_init-v7-6-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=2805; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Zfjmx54wmhTOTfKHgSUz3oiIARFJkpv7bwoefkoudgY=; b=mIIWHhIvYgqIFU/Qm0rMvVHra6to4RUl7AgB1uOmIhhVFFBhaLOR1nnsnk/BEYOtQdzp0jpI0 FrsNtQDKg4YB2DhLLGonT0hs9Hj05gGpw+wlvHkIu6Zj3dTTYACL49O X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= GCC-15 release claims [1]: {0} initializer in C or C++ for unions no longer guarantees clearing of the whole union (except for static storage duration initialization), it just initializes the first union member to zero. If initialization of the whole union including padding bits is desirable, use {} (valid in C23 or C++) or use -fzero-init-padding-bits=3Dunions option to restore old GCC behavior. As a result, this new behaviour might cause unexpected data when we initialize a union with using the '{ 0 }' initializer. Since commit dce4aab8441d ("kbuild: Use -fzero-init-padding-bits=3Dall"), the kernel has enabled -fzero-init-padding-bits=3Dall to zero padding bits in unions and structures. This commit applies the same option for tools building. The option is not supported by any version older than GCC 15, nor is it supported by LLVM. This patch adds the cc-option and host-cc-option functions to dynamically detect compiler option and append it to the EXTRA_CFLAGS and HOST_EXTRACFLAGS respectively. [1] https://gcc.gnu.org/gcc-15/changes.html Acked-by: Quentin Monnet Acked-by: Namhyung Kim Signed-off-by: Leo Yan --- tools/scripts/Makefile.include | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include index 41971a68972dda218714d6b95b1d9d92349285c3..17d24cf84051ae99eb5b4c4bdfd= a43cd187891f6 100644 --- a/tools/scripts/Makefile.include +++ b/tools/scripts/Makefile.include @@ -139,6 +139,36 @@ else EXTRA_WARNINGS +=3D -Wshadow endif =20 +# output directory for tests below +TMPOUT =3D .tmp_$$$$ + +# try-run +# Usage: option =3D $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise) +# Exit code chooses option. "$$TMP" serves as a temporary file and is +# automatically cleaned up. +try-run =3D $(shell set -e; \ + TMP=3D$(TMPOUT)/tmp; \ + trap "rm -rf $(TMPOUT)" EXIT; \ + mkdir -p $(TMPOUT); \ + if ($(1)) >/dev/null 2>&1; \ + then echo "$(2)"; \ + else echo "$(3)"; \ + fi) + +# cc-option +# Usage: CFLAGS +=3D $(call cc-option,-march=3Dwinchip-c6,-march=3Di586) +cc-option =3D $(call try-run, \ + $(CC) -Werror $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2)) + +host-cc-option =3D $(call try-run, \ + $(HOSTCC) -Werror $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2)) + +# Explicitly clear padding bits with the initializer '{ 0 }' +FLAG_ZERO_INIT :=3D $(call cc-option,-fzero-init-padding-bits=3Dall) +override EXTRA_CFLAGS +=3D $(FLAG_ZERO_INIT) +HOST_FLAG_ZERO_INIT :=3D $(call host-cc-option,-fzero-init-padding-bits=3D= all) +override HOST_EXTRACFLAGS +=3D $(HOST_FLAG_ZERO_INIT) + ifneq ($(findstring $(MAKEFLAGS), w),w) PRINT_DIR =3D --no-print-directory else --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D35773E2ABF; Tue, 2 Jun 2026 14:41:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411319; cv=none; b=f/6JeWCoyzM/wfVgfBfFkvk4tAz8opHz1pHJIHj7q/ccy01fxb1LmKKQL4V1br0lviyK/JLk/JtxcBToOaflazXDNiAn26UGo6N2jw3ltBTAkPvjwypRgiNbSss4r0Ik9rIy1inqABHwGG29YjEdMcJcfFOnHJd9G1ToTEN7kMA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411319; c=relaxed/simple; bh=spQuIH0Wg3vYRrqn2E5IS9/I7WyL8Gy/SZwlLjj3Qho=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eSKSCFZyHR9roRA97uWfk41BFApcGNba55wUBs+L5PLgKw5p0ghDICsqcEjUeThU/WoJhA39NfWCd4oqTpjQ+4Dy8bOdncHJW8mICW5jsVzQCi6QQdNgivSiVQWZUNWjdflPlK/lcp3SVyQfldkdGgRCGBW0YuLAPQN7qA3UuNU= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=EG+c/uB1; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="EG+c/uB1" 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 53F683574; Tue, 2 Jun 2026 07:41:52 -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 68A033F632; Tue, 2 Jun 2026 07:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411317; bh=spQuIH0Wg3vYRrqn2E5IS9/I7WyL8Gy/SZwlLjj3Qho=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EG+c/uB17oI42wQ37lTnsy7jKJS1HE/7d7of7rlOS6PW00GO+NwrYZgPWE2NpdIw7 4LJekpJoO3RElVk9xkCfC86l88zGa8eeERylwjQx/aAr3KPmFIhtSEJJZ2tM9L/+8f W0e8stFqYdx+ub7gOqiPjwLA4MFRMAFceAjr61pI= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:41 +0100 Subject: [PATCH v7 07/23] 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: <20260602-tools_build_fix_zero_init-v7-7-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=1086; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=spQuIH0Wg3vYRrqn2E5IS9/I7WyL8Gy/SZwlLjj3Qho=; b=E9TwDuYmeRGHq94LEKv8p51n2VSXgKnue8u1p6OhU7mWHrYDncKGMa2VHUloM/S4uhrUKa+V6 iZUfJNJTbbOCo7y0YsXjQp790wd/Cv34GrJWYawLtneBUezAS/ituEI X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append HOST_EXTRACFLAGS to HOST_CFLAGS so that additional flags can be applied to the host compiler. Acked-by: Namhyung Kim Signed-off-by: Leo Yan --- tools/perf/Makefile.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 333ddd0e4bd814e9b935e9f706e640baccf49b7e..17c27b876551922a537dc0e1000= d396c43ff9e12 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -17,7 +17,7 @@ detected =3D $(shell echo "$(1)=3Dy" >> $(OUTPU= T).config-detected) detected_var =3D $(shell echo "$(1)=3D$($(1))" >> $(OUTPUT).config-detecte= d) =20 CFLAGS :=3D $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS= )) -HOSTCFLAGS :=3D $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) +HOSTCFLAGS :=3D $(HOST_EXTRACFLAGS) $(filter-out -Wnested-externs,$(EXTRA_= WARNINGS)) =20 # This is required because the kernel is built with this and some of the c= ode # borrowed from kernel headers depends on it, e.g. put_unaligned_*(). --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C30D340D9A; Tue, 2 Jun 2026 14:42: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=1780411328; cv=none; b=rCFvopGupgAfX1zniSfe9wtQ9Hz7TwFodCYFfsYQZZtUHgmOZAGebexgrZK/c2XAlbnalk1ImwAUU/i7hdv2tesKmsXSaVoHbVVD1FbO7z3mYp79h/ufpqXEEoOkaN6qCIYWE3kd/CYfjfWEsqdG9omhX/nvJ8T/TiL1TuTcs9c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411328; c=relaxed/simple; bh=htZbWwa5Gdk7tv9jGCiKr3dJMcl5OIZKDDrOhcVl33k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FQXc1jiHERunX3Y3dinEUCrmYMfH0ByLroVW9vt+ycEhIv7dzz7RHdywQ3fzpBsqh+V/5sRvBXDhitlu9HnU2Ku0Fx20N7kcz8qAqf7dFDzGJQWXI5loHR5oLpFubHnMr0QNtEQTDQ6KoU0ImAyDkIZZGDQPeo4zRxsMu7btOLk= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=Wo1bxRSJ; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="Wo1bxRSJ" 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 8A56E3574; Tue, 2 Jun 2026 07:42: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 8D48C3F632; Tue, 2 Jun 2026 07:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411326; bh=htZbWwa5Gdk7tv9jGCiKr3dJMcl5OIZKDDrOhcVl33k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Wo1bxRSJ8A1ZTr3nZgklb9IdyE0N2hVdaXzxUtV+5sxKRxQhkVMxHL/nEusJy5811 hadgTDlnWr0jnm+GVJKHkX5U/THcs3P7glyVuvOn1oE/aMfV5pNTlbK+CgvB14cuDU ojasDevFtC/MaNw2HKQJcOLSmER8QOck0oYANsTE= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:42 +0100 Subject: [PATCH v7 08/23] tools build: Append extra host CFLAGS for fixdep 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: <20260602-tools_build_fix_zero_init-v7-8-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=1426; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=htZbWwa5Gdk7tv9jGCiKr3dJMcl5OIZKDDrOhcVl33k=; b=+SWSpV9Rwitfnqj+GmuN+VKrOJrZAfwEWYCitXYiw3Ni+mA9aBPD87WK9S42cT6GcW36bEccJ QlXK15fFrVEA3qiCR0a/b8kB0NPhQYylqYanzeTJ/ewZpuodn6pLBLt X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= tools/scripts/Makefile.include can add host compiler options through HOST_EXTRACFLAGS. Make sure the tools build uses those flags when building fixdep. Create a local HOST_CFLAGS variable from KBUILD_HOSTCFLAGS and HOST_EXTRACFLAGS, and pass it to the fixdep build. Signed-off-by: Leo Yan --- tools/build/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/build/Makefile b/tools/build/Makefile index 3a5a3808ab2a1dedd40f35ea322913e8a0788130..2761f80df7611c4731ef1d4529c= ae7dfe279bad0 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -40,18 +40,20 @@ endif FIXDEP :=3D $(OUTPUT)fixdep FIXDEP_IN :=3D $(OUTPUT)fixdep-in.o =20 +HOST_CFLAGS :=3D $(KBUILD_HOSTCFLAGS) $(HOST_EXTRACFLAGS) + # To track fixdep's dependencies properly, fixdep needs to run on itself. # Build it twice the first time. $(FIXDEP_IN): FORCE $(Q)if [ ! -f $(FIXDEP) ]; then \ - $(MAKE) $(build)=3Dfixdep HOSTCFLAGS=3D"$(KBUILD_HOSTCFLAGS)"; \ + $(MAKE) $(build)=3Dfixdep HOSTCFLAGS=3D"$(HOST_CFLAGS)"; \ rm -f $(FIXDEP).o; \ fi - $(Q)$(MAKE) $(build)=3Dfixdep HOSTCFLAGS=3D"$(KBUILD_HOSTCFLAGS)" + $(Q)$(MAKE) $(build)=3Dfixdep HOSTCFLAGS=3D"$(HOST_CFLAGS)" =20 =20 $(FIXDEP): $(FIXDEP_IN) - $(QUIET_LINK)$(HOSTCC) $(FIXDEP_IN) $(KBUILD_HOSTLDFLAGS) -o $@ + $(QUIET_LINK)$(HOSTCC) $(FIXDEP_IN) $(HOST_CFLAGS) -o $@ =20 FORCE: =20 --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43F6F3EBF24; Tue, 2 Jun 2026 14:42: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=1780411337; cv=none; b=NXI5OvEQdvfRcotJgM+Nbo0WT3tUe4CCE1FQEpbfrGbSxw2uhPGlaxDkquSHgFSfV6dKWXoGyfXPeOTAPpupku8dMMZ/zLqi6K+fQf9AS2RkIjCT2N1+D4Lpyy6oU1NX8R2zEnZReu1nFw6pbzG28jPyV2w+44Dkc0Hs30ZWXAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411337; c=relaxed/simple; bh=k31Kk/i0K4ZvTRnARLSwM6pAc2QmOSVp+PsTzUqEpMA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s2WCysoq6Y67AUHDCK0hGxEwhAHvV5H0q0gD+PnaPgwIWv3e+ZVVTl1PevuyVOGVFAT0fGy3SNY9Cxd9boHGgjt1C5rCkGVy/eyFREri0P6fbkusfZhUIplhPcA7Sce45o5yhuAP3W6uqfzQH148yz92Ld61LfAJpbisQrmyPUQ= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=Vz+hoQxV; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="Vz+hoQxV" 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 BBB85356E; Tue, 2 Jun 2026 07:42: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 C5B7F3F632; Tue, 2 Jun 2026 07:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411335; bh=k31Kk/i0K4ZvTRnARLSwM6pAc2QmOSVp+PsTzUqEpMA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Vz+hoQxV9haLeHi4WF60IZHNh/D91ceh0ry9mihtkEgxf++92xkmRorj4iortCnNT qWVfewRdWK32TXXRg4Nc5Tyl1vUKTKx6GHz0Oo+tdbmrELlEPbVz5f7MoaImY+xd6f hGgfTB1OH5x63kglFDeoEmranqQtq/ap80EoF3p4= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:43 +0100 Subject: [PATCH v7 09/23] 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: <20260602-tools_build_fix_zero_init-v7-9-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=793; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=k31Kk/i0K4ZvTRnARLSwM6pAc2QmOSVp+PsTzUqEpMA=; b=4S6pBaYdsVw5Zi7DtkaNGdwlbwk5ZEK2RH5vIidM9zxQiw7DLau1ZCfo/uiPoNdPLH1gUjPc0 xkMFmAHKNknCg47ajxC4GTOB2hvNIovaCEPwAFMJtp6Pc8AsCjySjm6 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Masami Hiramatsu (Google) Signed-off-by: Leo Yan --- tools/bootconfig/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bootconfig/Makefile b/tools/bootconfig/Makefile index 90eb47c9d8de67b0ccc74a8de0af3a7e0b97feeb..4490df707585acf356153b78cb8= 7760f622a6190 100644 --- a/tools/bootconfig/Makefile +++ b/tools/bootconfig/Makefile @@ -11,6 +11,7 @@ endif =20 LIBSRC =3D $(srctree)/lib/bootconfig.c $(srctree)/include/linux/bootconfig= .h override CFLAGS +=3D -Wall -g -I$(CURDIR)/include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D bootconfig ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80CA23F1AD1; Tue, 2 Jun 2026 14:42:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411346; cv=none; b=YH9o9d2quShPKdre3XIFtj9OTfTbjF6D55Vy4F+cnb7ZPCiR9xZ4kLQ2s/rdEydmK+TU4AxGzey4SGf11J/A/IaSoqpblplmtJqMn3Qoqq9vldie902b56WpNnwe7LJFA2qrwRXYFWByd4ouWqz2kjnq6OiA/dtiooNVSyOI0lw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411346; c=relaxed/simple; bh=8OSCWf/mIU6b3XiEwF8s9we+Qi0eYqNHuTh8/Qvzcfc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QQ/mSmnnCwGLiHTgBsv2SvBYoGar9DclSQSOpB4aFPf29ApNMu7Kn9mli6QkLa9VL1iZz4hJWDl596RvdE7swsfF8YKmWz1Un0gcLSaLdaQ5qApxN/JlR+e/z4x8nbczLo1JdQyOptLRUkbatZNTpibGiGO72CeFfi7tv71JoV8= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=BKnqgOQ6; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="BKnqgOQ6" 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 E776E357C; Tue, 2 Jun 2026 07:42:19 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 073463F632; Tue, 2 Jun 2026 07:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411344; bh=8OSCWf/mIU6b3XiEwF8s9we+Qi0eYqNHuTh8/Qvzcfc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=BKnqgOQ61j/uuwJ9OYK8XgKXNHl0eFhWuStC3YEUh9xJ0TJh9a+72XjlWDM8PrTDh q6f9G2c9aiOn1P8mdVdnpRiDCQct9zT8bZlvYgJ/aFDzYQPvtsi11lNPg9byh83C6C i9faGHBwH07Qi4EPD2BskJ/eWjM0FmlOsdZLtdn4= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:44 +0100 Subject: [PATCH v7 10/23] 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: <20260602-tools_build_fix_zero_init-v7-10-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=728; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=8OSCWf/mIU6b3XiEwF8s9we+Qi0eYqNHuTh8/Qvzcfc=; b=xOBx+vXj3e3iAjcpz+egBfzEKOhlvsYvlvCwm+MCDym47fQmrfETqm2tEpDuvo+1g+5Ny6r9c /GVRUZdz8K1BSBEVAjfiOdpqCBqBYeron0J5Z5JnVZapIkMXFg3qcMq 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: William Breathitt Gray --- tools/counter/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/counter/Makefile b/tools/counter/Makefile index d82d35a520f610260abb43f6ae28e56d73268231..1495c0e03d9c00653a24bc92b24= d83340dbb4909 100644 --- a/tools/counter/Makefile +++ b/tools/counter/Makefile @@ -14,6 +14,7 @@ MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include \ -I$(srctree)/tools/include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D counter_example counter_watch_events ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B507F3E3170; Tue, 2 Jun 2026 14:42:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411355; cv=none; b=QgEGnKOC8GlHFFjPtduClk1mW1v9tXruz3FZBoAGnLsS0EhmV3CNIdx2u0pcJ6chV3aKxuecko/aCy/KRDiYFoir4Zz4E/KQ1ivfb53O/+Si28VbhLO7skEu/rHwyt/DDkG67v6yMcbVdVgcQzPESHkSsN2ShmHvL5OkMaQhGfY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411355; c=relaxed/simple; bh=u0baSWrAsWfZfQ+02tVwtELldH7JfFDkqdw4XEPinVI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XI3W1jEKPontg4+ZI/9q3A0DGQwWKyowqhu1HkRpT+xYqCJVOLl0LmNhu5QRbV9+vlzL2rTNN2zGTx/sbLQWMZGb85Jnnwx9IRPtFVGZ17XdzLPxoRwyWsCDaix/xAZcO5Y2r4mPlO+MMY1tPk20EU5u8+MJlpwt/lJQfG99Vdg= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=dh0uR5QC; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="dh0uR5QC" 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 14FDE176C; Tue, 2 Jun 2026 07:42:29 -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 2D2263F632; Tue, 2 Jun 2026 07:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411354; bh=u0baSWrAsWfZfQ+02tVwtELldH7JfFDkqdw4XEPinVI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=dh0uR5QCDGdz6B8xnPKOxdicDt4MpLnhvUDn/+AJcfQq+9vFmFgZe0hAQxSibUr1V 6jUauYDMd0ll3+cYqydun/QJ8TROt9cpZsoZLKTHX0q/cISfazCXfQGdoF1oeSXUvN D9SaUJe9UiXgh90lBWiVLreN76FMbpKxDq4x1qTU= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:45 +0100 Subject: [PATCH v7 11/23] 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: <20260602-tools_build_fix_zero_init-v7-11-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=709; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=u0baSWrAsWfZfQ+02tVwtELldH7JfFDkqdw4XEPinVI=; b=NzhMLei/ZM/qazZqptobl044++vMRWArZKjQWmoQeckjfDJv1lf/+h1htduQxFC3gYPD8fOC/ YdFh9XGYTOACgcsnzAOO5eHdNDO+eeX5hgkCZVEIAKPmJtIDmX8PlOL X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Qinxin Xia Signed-off-by: Leo Yan --- tools/dma/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/dma/Makefile b/tools/dma/Makefile index e4abf37bf020ca613b6dca340299198cb887126a..86d3d2e361110b664b885c0e942= 3660a2d5e8221 100644 --- a/tools/dma/Makefile +++ b/tools/dma/Makefile @@ -17,6 +17,7 @@ endif MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D dma_map_benchmark ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C359D3F0A81; Tue, 2 Jun 2026 14:42: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=1780411365; cv=none; b=S1Z3AJKd+6qa/vBpBYUEVQLeFkcwia8MI1f5v3bwB89gBdT0ZGWibe1F4ajI7obexouOhwKPyIyAMne+Z8cefbivp6ALFlOnIffdJtuV0ZqkZwBLdYkR0qO1V4zOttbFiQYhw7tBe+yJPn7w6gxw4mc/pfSRAk1kgg94e3C9P/g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411365; c=relaxed/simple; bh=J24uTRo5JzVWWMRzOuokKmYRbu145MN2/Re9B/pDvrA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZvjBB3dKypoTaEBTWQHUkPAB24G0HxVlvrQRMp7ICW5F4Tsj2xLUdr3cnMqIDx8DFBLgpHyAXRCRXYr7QWhoXwu3zabjv3iRDvCPGrAKk3SG4DEoEaEBGb55x7GDPTslBPWQ2KaZ6KuDb22sOwO4LbeusVabYBzWrRArwWUNqqM= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=BpQoVMpF; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="BpQoVMpF" 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 62AD0356E; Tue, 2 Jun 2026 07:42: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 53F313F632; Tue, 2 Jun 2026 07:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411363; bh=J24uTRo5JzVWWMRzOuokKmYRbu145MN2/Re9B/pDvrA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=BpQoVMpFQc9lqsUkjriBrYDnS1TSILhDp8trvmT+aAlUiqJ/kCkK9bxiKUmdRW3uJ mLd42KlY/Yk/T0xSraBsrRo5w0qTPIi9JZIFAi+GdtEHDX+9cEzSP8f2+0hwDutkSQ br1wlVIaUwwTgju5yyP3gFbWXASETAdCsA1TsllI= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:46 +0100 Subject: [PATCH v7 12/23] 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: <20260602-tools_build_fix_zero_init-v7-12-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan , Bartosz Golaszewski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=766; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=J24uTRo5JzVWWMRzOuokKmYRbu145MN2/Re9B/pDvrA=; b=M6ovBVc5/c8FB9ulT2KpYvTRWFg4P/bdGVCsYP2/kH1Cz8HEQAPBNbP9bHoI1kiPTDcOEwQwb a2tbXL/s1wfDl2xFnQ9dA+8bxTZqK7jenhxO5XwmY7a0efgK7xDHJYM X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Bartosz Golaszewski Signed-off-by: Leo Yan --- tools/gpio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile index 342e056c8c665ac075041ff7c7ca7ba94c691187..05a0057ec361626f41ca87e5295= 691364f03d2cb 100644 --- a/tools/gpio/Makefile +++ b/tools/gpio/Makefile @@ -17,6 +17,7 @@ endif MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D lsgpio gpio-hammer gpio-event-mon gpio-watch ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 133E420468E; Tue, 2 Jun 2026 14:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411374; cv=none; b=uPeG7Zvj2W0j75OjADt5TzDsxB0Xjp07ARvIm//HCjB9+3S07AeFKu0clrqRqGcfIr/mS+b289lLxA5i69dzn/2PwX8llI1zq8Eor61kok9KyPlZjb2SUTRqcf9+cfuSISSKNGz1mTACmMQQo6F+q4SMj9kjS4TYp63frxE3DZE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411374; c=relaxed/simple; bh=2HoqdzVaKyMOdHF+5ZyEJJUITN7f8BhS5qzwI6ubjPw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TdIpna3Xre+yxZ69S1zCwu/6DLcm3oUv8Qj69crOIbRVkFIR9hy9rD3rGKQZQoUkjqxUgfXuhHSqdJ40SF9h5ERRr2n5UJ71bTrsVTSjpQoeGgQvugD0aFv8wXrM3Vk7Doxso1kbeE/IbZNnWx4fManHdABWPWVcSFYcp3OoHtk= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=lTu4v/HF; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="lTu4v/HF" 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 80E03357A; Tue, 2 Jun 2026 07:42: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 9D7D73F632; Tue, 2 Jun 2026 07:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411372; bh=2HoqdzVaKyMOdHF+5ZyEJJUITN7f8BhS5qzwI6ubjPw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=lTu4v/HFTpjOfSEvoNxvln5r1WVvThxLL1wUrakXVR7gd55bPkQY2iWEnCh6z0tYd zbeJwwn0U8G0tAxLYGtAqQQ7yCnySQAm556jA90qS/nfQfXoKUAIUjiT+YHNG7mFDh wkpMdL455xUDTGqiH5ahUeyTWfI/7UbZlAi17bQg= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:47 +0100 Subject: [PATCH v7 13/23] 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: <20260602-tools_build_fix_zero_init-v7-13-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=747; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=2HoqdzVaKyMOdHF+5ZyEJJUITN7f8BhS5qzwI6ubjPw=; b=ex6dIZZzXwUm/U8W/8K/maO3rF/F7qJ9Y6DwAzhpgQtrgSKFpsxLJkZ7G8MHIkQoI/hLv2AYX EKAUE4cGorTAasStSCAG/rMLD32TjnFkkDj3YzQ2101TY9gc6OBjUvT X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Reviewed-by: Haiyang Zhang Signed-off-by: Leo Yan --- tools/hv/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index 016753f3dd7f61e88d91dd5dc939ad66f8485acc..9a141d1a80d7b0e2b971d5a4adf= 67e2e7a65d3f0 100644 --- a/tools/hv/Makefile +++ b/tools/hv/Makefile @@ -18,6 +18,7 @@ MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include override CFLAGS +=3D -Wno-address-of-packed-member +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D hv_kvp_daemon hv_vss_daemon ifneq ($(filter x86_64 x86,$(ARCH)),) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3504A3F1AA0; Tue, 2 Jun 2026 14:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411383; cv=none; b=mXeGUsTo9B6nOzGelC0+3mdlsC5J1B303AbnSUmoZKDomynwwqRbqsVMxu9cmzlbtv/P/Ddk6tClr/1WdLVxv8fJKfDKV63UCIYt/iQ0LLbj58Ogv7k1Wbdqg53HF0GiyWUeWbiEPR5jYNlNmGsU2j5agQjrsFD2CEXeAx3uXf4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411383; c=relaxed/simple; bh=6G4vN+GXgnQlcP90g7lh8vWn+j+ruBrObEc+8/RBeag=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TEhKaOVBgPmuIJYXsWrSi6kZpNA3ZZyXVoLmg9UVwwHftKgHzMNwdF/SJIkp7Ea5HZvSHyPwdk//gr7Ec4Qo8/efzX7ew20Pqw8kjGOXM8NNAC5kvfmCVoV0mxf26RL69hAjjkeVDEq6E47OPQ1qFybjQltte21W5s+QHyJ0Lfc= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=HrUV6F2z; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="HrUV6F2z" 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 9C854176C; Tue, 2 Jun 2026 07:42:56 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC40B3F905; Tue, 2 Jun 2026 07:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411381; bh=6G4vN+GXgnQlcP90g7lh8vWn+j+ruBrObEc+8/RBeag=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HrUV6F2z5WH+h+k2tyNbgT02GyTcdaD3jY08h8E69+2eWQcQrz3FDKRnPNZuhGV2O cbtPCcsrcz+0+O1d+i7bO/ehjTbK3TAJ0iH/kVL4EJCIvrTcqBhzZHur1Knj2W34yj E3+enf/IrUZ+0yIDw92s4Az9aalgqHm3/JWu8NKM= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:48 +0100 Subject: [PATCH v7 14/23] 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: <20260602-tools_build_fix_zero_init-v7-14-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan , Jonathan Cameron X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=747; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=6G4vN+GXgnQlcP90g7lh8vWn+j+ruBrObEc+8/RBeag=; b=v/YnBl3bdY6JySqyipbpHujVvGvWF3KPhxwDHA9NFUyHPS+XnQp908AdNfIMngMhxCnpEyAJM 5lb5DgYKhBMCmnc/CjHzzChnUqrybo0BpF6Ce6/iIeH8FSmxWopZYvq X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Jonathan Cameron Signed-off-by: Leo Yan --- tools/iio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/iio/Makefile b/tools/iio/Makefile index 3bcce0b7d10f42208765be83dac047faa2e0ceb1..f0428421792d1cbe5ff71b01b67= f23eb908fa714 100644 --- a/tools/iio/Makefile +++ b/tools/iio/Makefile @@ -13,6 +13,7 @@ endif MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D iio_event_monitor lsiio iio_generic_buffer ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2584D3F787E; Tue, 2 Jun 2026 14:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411392; cv=none; b=XOZyLZ20lzp9Fz8/wDIfGdETpwg9VZEoLEx3wprO7gpGD1Ew2nwUIZ0ypH/bOiVT/OE6Op4WrY7nFabrBZGM8O4DwSKsgML7Dsgmn2hR316TPdACi+WUniQls3pp5e5bXiGjzTbA/g1+m2fhUrHWqiYZAVWtkk/u4c5O1ELSeKQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411392; c=relaxed/simple; bh=wVjQowvxpAB2zn18RKm3JYBDwmaeJ2pheT83qKWdB5M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b/vDENNVKx21vXfDoKEEc+yz8MLnHzlfjNlx6NdMUUxYrlCZcD1FR7zd5NjShcXOY7df/amyejTHeAKJUCifISPkV7XK2vWSpTUBeLgJTSae1pgvAGmNuwUFkc8Dmz/WWHBEbRKAihz4P5/4Wpk3wuYqtwBSpgsT5MIViwHQwNI= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=SYnbiD18; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="SYnbiD18" 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 B9DE83582; Tue, 2 Jun 2026 07:43: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 D7AED3F632; Tue, 2 Jun 2026 07:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411390; bh=wVjQowvxpAB2zn18RKm3JYBDwmaeJ2pheT83qKWdB5M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=SYnbiD18YSC5RtRt3kCU1cxA4nBFT4SckeFPb+XF+wS79bJ027RIHQ6hKSwiQrYmr qS1PvMJyxmZp/MvznCKXSA87RBBg11+LnE3uujq5jFWumQ+IZUwyl91isvydPmZi4d F0/mB7CqXqifmvZMg58inXRGHgVI12N4oUpj9EnA= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:49 +0100 Subject: [PATCH v7 15/23] 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: <20260602-tools_build_fix_zero_init-v7-15-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=615; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=wVjQowvxpAB2zn18RKm3JYBDwmaeJ2pheT83qKWdB5M=; b=570E7PV6NtyfJm5ALZp2PMkm39mr87poKx+ebkJkO+lUpLtPSDTqXejfM1LQT3jDiHKyN0CKO 7Sumsl2o77uDGIw4bOvki3zDL97steregg26W/UY9o9swH/rz96g2xJ X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/mm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mm/Makefile b/tools/mm/Makefile index f5725b5c23aa261994b5b42f37c443bee2edebf2..d48491da2edc95fca57c0707c42= 961fde7b02072 100644 --- a/tools/mm/Makefile +++ b/tools/mm/Makefile @@ -10,6 +10,7 @@ LIB_DIR =3D ../lib/api LIBS =3D $(LIB_DIR)/libapi.a =20 CFLAGS +=3D -Wall -Wextra -I../lib/ -pthread +CFLAGS +=3D $(EXTRA_CFLAGS) LDFLAGS +=3D $(LIBS) -pthread =20 all: $(BUILD_TARGETS) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42B443F1AA2; Tue, 2 Jun 2026 14:43: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=1780411401; cv=none; b=VjjQUWAhS+FRy9UVHjMtm+WxnEOBivSj1ZalNizeqV2pheCyGqXd+YNCQwzkH6OQJ5ejILv6RzatGffEHY/NYLb2d6zNrOtbPKRaygUPmubdKc2+LT2ratvQO1UpNCZqSVyuawXFmF0QiGAmc0bEG55heV0jrTUJWq5bgeHBC74= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411401; c=relaxed/simple; bh=jfPMQMukoDZOL2OvxeLdX83+munt2aPbdkWuPZ1sqGM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TJG5gu4ibF+GUESPGgfmViUih8zTsYG3fjt4JwOkzLcjNMawxPmTexL7XAll/hfYVMY9ma7jq8sd3TOOGqrjIzB1W1dTWuHSn+uNM6g27xhPJ2Wfcve4oqq1SEkg7hxQldAtmdS9jVvK53o7c2+nXxsjnPVXNeTGc/hL/sGA5qs= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=RGcWXYat; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="RGcWXYat" 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 D32E73573; Tue, 2 Jun 2026 07:43: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 00A543F632; Tue, 2 Jun 2026 07:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411399; bh=jfPMQMukoDZOL2OvxeLdX83+munt2aPbdkWuPZ1sqGM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=RGcWXYat2NM8LPQrAF5MQ3I2F8tjxJMhsilOBlR8V2qc8MKkfS3VV65E0IWkmHQ4t UelqzXs2AP5Lkk8wT8vbEIqZJd1Cpk8lrTwkH8sZ0DN0U8TDWc5qiYPGd/ym1Zr1jO JqD0awy88GlRXYLL6xVNEK4A7qjIlwEGyz7ak/mo= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:50 +0100 Subject: [PATCH v7 16/23] 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: <20260602-tools_build_fix_zero_init-v7-16-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=842; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=jfPMQMukoDZOL2OvxeLdX83+munt2aPbdkWuPZ1sqGM=; b=yySehyugf/1SO1lNOh/His1EzgG82GjsloGp7XZFdQ7OSz0wFSpH3T0jnpsaX4lhJa5gmCNVP jNLH5FEbrdTCRrJbwKM/iI6NESXZR0xZ7umiPgR2La9y0UFUfKliVbt X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append HOST_EXTRACFLAGS to HOSTCFLAGS so that additional flags can be applied to the host compiler. Acked-by: Josh Poimboeuf Signed-off-by: Leo Yan --- tools/objtool/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index b71d1886022e9b3d9fde52bf73bd502aa20d173e..182d0ab47a6ce8925ec8618f337= d2664965b6c9c 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -11,6 +11,8 @@ ifeq ($(SRCARCH),loongarch) BUILD_ORC :=3D y endif =20 +HOSTCFLAGS +=3D $(HOST_EXTRACFLAGS) + ifeq ($(ARCH_HAS_KLP),y) HAVE_XXHASH =3D $(shell printf "$(pound)include \nXXH3_state_t = *state;int main() {}" | \ $(HOSTCC) $(HOSTCFLAGS) -xc - -o /dev/null -lxxhash 2> /dev/null &= & echo y || echo n) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A2A83EC2E6; Tue, 2 Jun 2026 14:43: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=1780411411; cv=none; b=ggoUakkZP1xVdYETvDWictvF77lV5X0cYyo5gN9Irc+ahWjfObxTzYOlQztkMVzz0KLdjOzV57j4Bgq8GA2Cqg3bYsdemzQ4VlznDdoy4y2TRZh/0ft80Ha4MZPTCLBOzmyaXaGkSHdPAF4IR/JW+mI7zce6gM1gZ64TmJDhvgg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411411; c=relaxed/simple; bh=+JjISCoCiswO66KwqDpEEqU/V/TxnMe7dGCpZMrmE4A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GJZz0bCuYMZ5KF5YyaL12wIqJDtU5Idj6ALf5mIa40oDs+7cU0xI/0mjMVpS2X0AeXGN229LWig2ZSonrYscWLnyEdgHvij7ib5O89Qm1jd6/ezBrVw8TSBXhP+pXL4jrV+1YUP8XThA6MeXnvW6gtoGeH+ttwPDfinoL5RBrwA= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=V9ZX2jCD; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="V9ZX2jCD" 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 05C57356E; Tue, 2 Jun 2026 07:43: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 1CD593F632; Tue, 2 Jun 2026 07:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411408; bh=+JjISCoCiswO66KwqDpEEqU/V/TxnMe7dGCpZMrmE4A=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=V9ZX2jCDyP9qjkOwDtwtzKOGrcoTW3D73X0pzYCV3g2NIC79MJMHkHO2jBAOhmsQ3 ccq8giJ4waiUIG7yLRj40A78SKpO0NOwpqoengJ7wCjnFjGJuSoOYmcKFrMtZjds6m TPAfDigmHg4Y4RcMeTmCxNt2nlcJps3R2rGomNtY= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:51 +0100 Subject: [PATCH v7 17/23] 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: <20260602-tools_build_fix_zero_init-v7-17-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=763; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=+JjISCoCiswO66KwqDpEEqU/V/TxnMe7dGCpZMrmE4A=; b=7LjJSh8MJwdaVLXDHF/0kIuW1U8oyVBDXhz04hZ7GdsAiozMYrKA1G3vu5zLSJY0UKLUnYgyL 41EofHyHJmWCeZDUKTneh//aee2xdKv0fWkiSeNUMwRy7cXOLVrmMke X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/power/acpi/Makefile.config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power/acpi/Makefile.config b/tools/power/acpi/Makefile.c= onfig index cd7106876a5f39dfda38e286c54c3a7c268b34a2..11088deab42ee5a793f978feb9f= 4f7bb7024c48c 100644 --- a/tools/power/acpi/Makefile.config +++ b/tools/power/acpi/Makefile.config @@ -69,6 +69,7 @@ KERNEL_INCLUDE :=3D $(OUTPUT)include ACPICA_INCLUDE :=3D $(srctree)/../../../drivers/acpi/acpica CFLAGS +=3D -D_LINUX -I$(KERNEL_INCLUDE) -I$(ACPICA_INCLUDE) CFLAGS +=3D $(WARNINGS) +CFLAGS +=3D $(EXTRA_CFLAGS) MKDIR =3D mkdir =20 ifeq ($(strip $(V)),false) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0C223DA7DC; Tue, 2 Jun 2026 14:43: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=1780411420; cv=none; b=Kk8j/FXZJfVHRpBeT7xHah6Y2vOPUzJA0lr6CDKh0sUahqPfx6RsKXAUi8hUSTAwsjRT01u/EJqs0XkqQYDIMJL9bQnONyP10lMAEDSLAvSZpWDiXkMBkDcZwP5rtZOT3jRRVJKOZjGEvz5WTTa/euE08fa7xMNf+NMzLEt+xCU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411420; c=relaxed/simple; bh=Rgzo//pe6jtJkqHszW5b83Q1eWN+jdj6CyAqKjTaoAM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oIIhxaDXAj3DQoR2kW5P3GSVxtp7qlwCgsmucJbtbSnPexyGMvfmZycVmSPhg7pZ/9W0uMetzT5tX/+4H4rKQxrDj4W3MH/WyfogbX+Yvo6+7AJPVQ45qJozK3o8qtSDmKOXHiovIZZdwYESAyvZvEa7MJkF0Qehlr27yA0ojKI= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=pu2mErIl; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="pu2mErIl" 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 20289357C; Tue, 2 Jun 2026 07:43:33 -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 426323F632; Tue, 2 Jun 2026 07:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411418; bh=Rgzo//pe6jtJkqHszW5b83Q1eWN+jdj6CyAqKjTaoAM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=pu2mErIlETlKHePojpTDBmQv+OCBPtwSJOeNJH5uqXwCBWbTk/zaQdq8DBl9WUtrs a0cJW+Dcx5i7gjWD8Q4p8DTPDklstoNN73zDq6+V8ymYQRnyEgkubnMIiN4NyO1CK1 91kAQN2dNg469y2DTiv+oro3NQ0FwM8EMXJjAqg4= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:52 +0100 Subject: [PATCH v7 18/23] 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: <20260602-tools_build_fix_zero_init-v7-18-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=875; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Rgzo//pe6jtJkqHszW5b83Q1eWN+jdj6CyAqKjTaoAM=; b=K4KjB5B/6qu0wBagESK7qUG19b9DPQWYmPbIDwLFgkikktisMP+9G3e9S8EugNV+r2G+JYVcm ECdhoXc2nvHBPLpWj975hmFht301lse3qnJHEx1jisjHNwdZsXOXSUV X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Srinivas Pandruvada Signed-off-by: Leo Yan --- tools/power/x86/intel-speed-select/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power/x86/intel-speed-select/Makefile b/tools/power/x86/= intel-speed-select/Makefile index 6b299aae2ded89c3a70a3649996e258b98001ee7..5947afce9fde7c054647fa3ee0c= 661b60b863f29 100644 --- a/tools/power/x86/intel-speed-select/Makefile +++ b/tools/power/x86/intel-speed-select/Makefile @@ -20,6 +20,7 @@ NL3_CFLAGS =3D -I/usr/include/libnl3 endif =20 override CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include $(NL3_C= FLAGS) +override CFLAGS +=3D $(EXTRA_CFLAGS) override LDFLAGS +=3D -lnl-genl-3 -lnl-3 =20 ALL_TARGETS :=3D intel-speed-select --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE36C3F9F50; Tue, 2 Jun 2026 14:43: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=1780411429; cv=none; b=bGul63o81XTk6ute0gp22Pb3q/AwRRYrn3tSiq+XzLifL+1ynjUXLy545RXaRbRZw1APlSKuaPhHh5Qw603f6zrJ9LwYIVepLozc8Nen9xnGqDHhTZGQsOz/bHs1NKIzszn0V8ULmka8oGsFwibSKe8l7rIKYkjsII/rpKBwTPo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411429; c=relaxed/simple; bh=SeDVOquLmPwaUVXLNSt91lMfLrGLKxvtIpmiK9hIWkI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AwsOUEyUH831+Kft+kwNwfaRucEYF1LhZNzgPz5UJiSqK/xa49HtkjUcXGmFG+ExKtrl98dtNtdKE/kRaagdbg8IgJKfr+xDVLWz8VKy3D6RybsWOipEGctwdjShnx0Yr5DuxwI/2kVUIDrRdqFXWhvPjX9Ct0ZgunOWYsfeEz4= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=nbhNlwCT; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="nbhNlwCT" 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 32B5D176C; Tue, 2 Jun 2026 07:43:42 -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 5A8723F632; Tue, 2 Jun 2026 07:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411427; bh=SeDVOquLmPwaUVXLNSt91lMfLrGLKxvtIpmiK9hIWkI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nbhNlwCT+sq8LikFfSedPeU0EiRt/HxWzV+bAdbi6FshCVgav4FTpIX93zip0sD3M cUiGFNwnGqT5KdqqAD26KQi0KJJFLO2a9EgrYsAKIwj5wbdTYT9FcYRbLRR14IU3EE c8s600PDR34hlT0AeAoEl6UIYsI4aXu9qk9SWCJs= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:53 +0100 Subject: [PATCH v7 19/23] 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: <20260602-tools_build_fix_zero_init-v7-19-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=747; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=SeDVOquLmPwaUVXLNSt91lMfLrGLKxvtIpmiK9hIWkI=; b=pW4UpFId0iJLTA5hKsCfOuQFPWS+EIDidVQva+ghsWBUzVQECsWK+JvxG71vcw2qWDbb4BDXi YeDCBl6c8IBDwG7NeUJtIUa6RgUpIf1A6n557O+5J/5trgbpCQlZvdi 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: Tejun Heo --- tools/sched_ext/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/sched_ext/Makefile b/tools/sched_ext/Makefile index 21554f0896923fa9c2e5b98c85d65d964152e592..e0d705b2fe0ca763fece5137ea4= 3ccb776d18012 100644 --- a/tools/sched_ext/Makefile +++ b/tools/sched_ext/Makefile @@ -92,6 +92,7 @@ endif CFLAGS +=3D -g -O2 -rdynamic -pthread -Wall -Werror $(GENFLAGS) \ -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \ -I$(TOOLSINCDIR) -I$(APIDIR) -I$(CURDIR)/include +CFLAGS +=3D $(EXTRA_CFLAGS) =20 # Silence some warnings when compiled with clang ifneq ($(LLVM),) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACC173C3C13; Tue, 2 Jun 2026 14:43: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=1780411439; cv=none; b=TfYLx8QbNS5V+Ta2QyZ+wuaEqwFMz4wMCk/DEe2ZM7gPEi+aYBTvIXtfMKfl+y0IZbxP8iWUwjWvcuK+BpgOI5+YdkmoA5MY8TjLCawnURgbKeDLaGX2DxDnj+1CCztuamJqHL67OYg5HK+SOKKYbwu6Bd6gZ3tF1hj7pdTQk40= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411439; c=relaxed/simple; bh=Y3fYUfec7IdYKkZMHnIhchrzP1QeLhY68m77wtq8xP4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ngtTBcXjPmNzM7k9TbMq5KmCVsHoQTUriOusjD4mK0AWMQqr5m2ngXXUiBVQJLi6tZp8/zgvVNf3cbFrXk0tmpDJmm9cztVHLdHmRpu/l6sYbWiey2qnSlQrQbkuXr3RionBIXD6fpxo49XJtP+pPzUEovVSnuxkTv+U++hWwnM= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=llfRU6uX; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="llfRU6uX" 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 57DCD176C; Tue, 2 Jun 2026 07:43: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 6DD5C3F632; Tue, 2 Jun 2026 07:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411436; bh=Y3fYUfec7IdYKkZMHnIhchrzP1QeLhY68m77wtq8xP4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=llfRU6uX4BL5DhR7Ybw13BMDqrXSZUVxE6Mj/ojjL98Qas0gjiwEK3ZMW0pBBFofL rCNLyx2YprnoySbg2KRwXn0Xe9QrSM9+OFBjdG1xZXIoiKohcbbYZq/gXdL3qM9Kju 1uh5MPsY6Ch7RDGt+pSaNIYpOqdRvUTpRzzdbnpk= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:54 +0100 Subject: [PATCH v7 20/23] 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: <20260602-tools_build_fix_zero_init-v7-20-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=694; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=Y3fYUfec7IdYKkZMHnIhchrzP1QeLhY68m77wtq8xP4=; b=PPfZRvDs34blc4EtsDCiKwUg/Womc28L7gvgEkYT0Ci3F2SyGsgFwAXAlDjs6uusQ/+nJpkPt zr05AG2QcC2DQzwJVRN1CuW9xa4QTsnfhr94YllaNM8bh2lmi24FOp1 X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Acked-by: Mark Brown Signed-off-by: Leo Yan --- tools/spi/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/spi/Makefile b/tools/spi/Makefile index 7fccd245a53515ab019529c8e5e91a044eaaa68b..82f9bc6365911b962422633147b= 108fabc70a2db 100644 --- a/tools/spi/Makefile +++ b/tools/spi/Makefile @@ -13,6 +13,7 @@ endif MAKEFLAGS +=3D -r =20 CFLAGS +=3D -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +CFLAGS +=3D $(EXTRA_CFLAGS) =20 ALL_TARGETS :=3D spidev_test spidev_fdx ALL_PROGRAMS :=3D $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS)) --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 121CA3346A6; Tue, 2 Jun 2026 14:44:05 +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=1780411447; cv=none; b=ZfiHjmgPoKETI7nmi4zvh0EKC1/NHDGzKFkUYicbpACCPOvLjoAaadgVm94mWXwxRsBXlxTDnnAobn95ZEsHMJ2UGJ52kfGYa/PC/Ae9LWWohZ00cN++F2BaG/UMoQ6hR9ezFdRHeMWADTrv1UFZflNkn2TNJ1LWIFBrulcJEio= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411447; c=relaxed/simple; bh=7HsaQQEd9byHgeBpqLD8p3PiRNvH3/eu7bdmhjP9ZdE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qacHl37xvE9eaEDmNj9GmURWRceN3ehtl+UpKef5BYNfleJ4va4ZT6mYY3Kro/xtJ3Fl1rYb84p7bN/+Xqueb4ppcTM+zUnXzDjYRyW6wzyJfu7qJpZN7o/qXAQ1Gd0L3gwrPYjtCgjS3GSLxyUeuRdgiMVxsPzVLfuMeGPzPDw= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=iXTi85Xe; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="iXTi85Xe" 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 81105176C; Tue, 2 Jun 2026 07:44: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 9539B3F632; Tue, 2 Jun 2026 07:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411445; bh=7HsaQQEd9byHgeBpqLD8p3PiRNvH3/eu7bdmhjP9ZdE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=iXTi85XeVgmBVoWDXwDXO0eS0ITzsR85iCfnoms3WiRqhmDb5YlFum+ZktuTzcBZd ClNIMtd3CmuAGeRbn2D2+hD1E8LdiYJPgdX1h/LbxeHwtvrlReRbDWJYb2f4EkNZAa gtb0+/47ZyS91A5AIKNOFRB0Pak34pS93evQ568Y= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:55 +0100 Subject: [PATCH v7 21/23] 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: <20260602-tools_build_fix_zero_init-v7-21-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411243; l=1070; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=7HsaQQEd9byHgeBpqLD8p3PiRNvH3/eu7bdmhjP9ZdE=; b=Yc1qJenYyV8IBF9tM0sVtdrwApWiTqsOFE4CLthLtYlLj8freyANYTTbymrg3uVtoEsfA009e HSbkzOlJysdBfFW31CQchgBgYY9sRGj7uvdymu8smpPNlur8fDzq8ZL 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/tracing/latency/Makefile | 1 + tools/tracing/rtla/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/tracing/latency/Makefile b/tools/tracing/latency/Makefile index 257a56b1899f23837de533353e9c2cebdb6035bd..d32a6a13753035355f0e3a05bf8= 8870b8aa55f64 100644 --- a/tools/tracing/latency/Makefile +++ b/tools/tracing/latency/Makefile @@ -57,6 +57,7 @@ ifeq ($(config),1) endif =20 CFLAGS +=3D $(INCLUDES) $(LIB_INCLUDES) +CFLAGS +=3D $(EXTRA_CFLAGS) =20 export CFLAGS OUTPUT srctree =20 diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile index 45690ee14544dfb9648dbafe5132b8c46a44d3ea..c8df8cb9baa0ce8671d94977e82= 591cb63d18b67 100644 --- a/tools/tracing/rtla/Makefile +++ b/tools/tracing/rtla/Makefile @@ -67,6 +67,7 @@ ifeq ($(config),1) endif =20 CFLAGS +=3D $(INCLUDES) $(LIB_INCLUDES) +CFLAGS +=3D $(EXTRA_CFLAGS) =20 export CFLAGS OUTPUT srctree =20 --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 088293E2ABF; Tue, 2 Jun 2026 14:44:15 +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=1780411456; cv=none; b=u539fYNp8sxrhSZYXwF4T4lbvfoQkA64WdbADUn0BZJWxPs2smjSwB4a0M759ziAbYelcP+LVXwcPMyQ+mSUP3R5g26zd4YzTWfF4RyeDC1ZaIjVvvvaIK0PcYuHJ9GmfOWxV47i+A0Ym9M1rKCl/GDngOHmwOHOiVDo5PL1FMw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411456; c=relaxed/simple; bh=mYlThUq1iAN/tIV3PsjLtm1fJPfV0aj3FB6Qm/569bA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nPjft/dhSV3H/Px44zSS1z66evw919t7nDSU8RLeoJ2FRWnygTFUFMtFukh0FXZ0pKMqFhHtnLsELAN6o3cB4kIgjj0XQkW/+L47yxxTVwV+2jVli6NE8Ap243y71gUJso/nTz0C5TIA8e7wvznmGi5Xpp7hQHAEGMClh0juXjU= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=kqI1NCqu; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="kqI1NCqu" 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 9B7B9357A; Tue, 2 Jun 2026 07:44:09 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BBEFF3F905; Tue, 2 Jun 2026 07:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411454; bh=mYlThUq1iAN/tIV3PsjLtm1fJPfV0aj3FB6Qm/569bA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kqI1NCquPKWNTXuRZqX4PZOuMahkkKENnv50nK2LKocnaMqX0QVhiKCX6IB5j3mIi vwM46unbxwHozfK0PK6Y+r9m6IR1ChULjg5TFgsBZ0xhPmNOyJCgAftObm1ZRX4jTe o6QnELuK0+cjtllmP/6oQtwqM3TEjkWUcdVbzFtM= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:56 +0100 Subject: [PATCH v7 22/23] 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: <20260602-tools_build_fix_zero_init-v7-22-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411244; l=672; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=mYlThUq1iAN/tIV3PsjLtm1fJPfV0aj3FB6Qm/569bA=; b=eCJ/9Gg4Hcn3j7HQGFkdq4/6P+CV+CPUFSB0wPXpsH3JrHVvW2Afg01GrLwVmM9jaR4kGXfHz 9lTE9qS5vEpCWS0sl42MTh1nHH+G/jtqAevSHxE5iEGfXXr2stRqI7y X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to the compiler. Signed-off-by: Leo Yan --- tools/usb/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/usb/Makefile b/tools/usb/Makefile index c6235667dd46223b646bbab5c82c810221750182..42362dcdf2743dace62a5385a7d= 2707c42bdd3c0 100644 --- a/tools/usb/Makefile +++ b/tools/usb/Makefile @@ -14,6 +14,7 @@ endif MAKEFLAGS +=3D -r =20 override CFLAGS +=3D -O2 -Wall -Wextra -g -D_GNU_SOURCE -I$(OUTPUT)include= -I$(srctree)/tools/include +override CFLAGS +=3D $(EXTRA_CFLAGS) override LDFLAGS +=3D -lpthread =20 ALL_TARGETS :=3D testusb ffs-test --=20 2.34.1 From nobody Mon Jun 8 04:26:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41C153E2ABF; Tue, 2 Jun 2026 14:44:24 +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=1780411465; cv=none; b=sKzsJckyPOKB0ORcoAN8ACRm0YpyEFDIEjpUPm61BK43iRdXpZjcqxWTjBKeB+N5v/0ApytfxjGlGx4N2RVh/wjeNFz95JSfjBKSCgDn0OqVBj/RppjhT1wKFHH4CxIuOurQo5uLmAPHdLZxqCm4ofNpdcTR+tnh5AcOCMnoPG8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780411465; c=relaxed/simple; bh=RJCrBBCoyZk9ItWKXFzBfBNj6qLZCgM5gXRLbvh4BLQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=goAOVpdXZyjkMIqxOFUWViOGoMy+RVRsVPHXEUSkD6Q6isG1AxTQDm0WbKSJ3MpR+OicFRxzSPXvQIt9oGep/3/h0//ZGmEdISsfjoCgABRqHvqKMjbMCs2hPzc3sufowh8bsKOgVEA38+2fXSQqF3WbnfaRZ9gc2eraDERgQUA= 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; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=R0QATQHb; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="R0QATQHb" 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 B1C2F3583; Tue, 2 Jun 2026 07:44: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 D4A423F632; Tue, 2 Jun 2026 07:44:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1780411463; bh=RJCrBBCoyZk9ItWKXFzBfBNj6qLZCgM5gXRLbvh4BLQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=R0QATQHblGPPiy3kp6Q5tAPadpnFPjNlqMVkCAsG9P8rbyOuQlPa/ms/x3W0sTP4h ZZn87mnp5fV5NvOjR+PRkan/Zp8sr2vNZDO1CCaWZLTbsJCvzbxpsAd95HzUb6gpun O5UtzDblPfwyv6O6mrUy/clfu6Mu/N7GMjn1mayg= From: Leo Yan Date: Tue, 02 Jun 2026 15:40:57 +0100 Subject: [PATCH v7 23/23] selftests: Include tools 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: <20260602-tools_build_fix_zero_init-v7-23-631baf679fe7@arm.com> References: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> In-Reply-To: <20260602-tools_build_fix_zero_init-v7-0-631baf679fe7@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1780411244; l=2967; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=RJCrBBCoyZk9ItWKXFzBfBNj6qLZCgM5gXRLbvh4BLQ=; b=ZBsHnWtddM9EPK4vOZCFQnT2BRRbzqV/l20fZeNv0SKuhTgIRrjaYsk3WPUneNKIEsPClA2aE 15d0fESm4uqAHtOd1IzTrYVI4Ump+K+IIyR9y+jji9gi0a1p8YBIIMb X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= selftests/lib.mk has its own compiler setup instead of using the common tools build helpers. This duplicates part of the LLVM handling prepared by tools/scripts/Makefile.include. Include tools/scripts/Makefile.include from selftests/lib.mk so selftests reuse the LLVM prefix/suffix validation and the provided CLANG_CROSS_FLAGS. This improves Clang cross builds, especially when CROSS_COMPILE is set it can derive --prefix, --sysroot and --gcc-toolchain flags from the GCC cross toolchain. Keep the $(CLANG_TARGET_FLAGS_$(ARCH)) target flag as a fallback when CLANG_CROSS_FLAGS is empty, and append EXTRA_CFLAGS to the selftest. Signed-off-by: Leo Yan --- tools/testing/selftests/lib.mk | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index f02cc8a2e4ae322d65a031178013270922611c42..e2e2d8aa57280ffd37bced18ecd= 43e7a5566abae 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -1,11 +1,17 @@ # This mimics the top-level Makefile. We do it explicitly here so that this # Makefile can operate with or without the kbuild infrastructure. -ifneq ($(LLVM),) -ifneq ($(filter %/,$(LLVM)),) -LLVM_PREFIX :=3D $(LLVM) -else ifneq ($(filter -%,$(LLVM)),) -LLVM_SUFFIX :=3D $(LLVM) +ifeq (0,$(MAKELEVEL)) + ifeq ($(OUTPUT),) + OUTPUT :=3D $(shell pwd) + DEFAULT_INSTALL_HDR_PATH :=3D 1 + endif endif +selfdir =3D $(realpath $(dir $(filter %/lib.mk,$(MAKEFILE_LIST)))) +top_srcdir =3D $(selfdir)/../../.. + +include $(top_srcdir)/tools/scripts/Makefile.include + +ifneq ($(LLVM),) =20 CLANG :=3D $(LLVM_PREFIX)clang$(LLVM_SUFFIX) =20 @@ -35,7 +41,8 @@ else CLANG_FLAGS +=3D --target=3D$(CLANG_TARGET_FLAGS) endif # CLANG_TARGET_FLAGS else -CLANG_FLAGS +=3D --target=3D$(notdir $(CROSS_COMPILE:%-=3D%)) +# CLANG_CROSS_FLAGS comes from Makefile.include +CLANG_FLAGS +=3D $(CLANG_CROSS_FLAGS) endif # CROSS_COMPILE =20 # gcc defaults to silence (off) for the following warnings, but clang defa= ults @@ -51,15 +58,6 @@ else CC :=3D $(CROSS_COMPILE)gcc endif # LLVM =20 -ifeq (0,$(MAKELEVEL)) - ifeq ($(OUTPUT),) - OUTPUT :=3D $(shell pwd) - DEFAULT_INSTALL_HDR_PATH :=3D 1 - endif -endif -selfdir =3D $(realpath $(dir $(filter %/lib.mk,$(MAKEFILE_LIST)))) -top_srcdir =3D $(selfdir)/../../.. - # msg: emit succinct information message describing current building step # $1 - generic step name (e.g., CC, LINK, etc); # $2 - optional "flavor" specifier; if provided, will be emitted as [flavo= r]; @@ -202,6 +200,8 @@ CFLAGS +=3D -D_GNU_SOURCE=3D # Additional include paths needed by kselftest.h and local headers CFLAGS +=3D -I${top_srcdir}/tools/testing/selftests =20 +CFLAGS +=3D $(EXTRA_CFLAGS) + # Enables to extend CFLAGS and LDFLAGS from command line, e.g. # make USERCFLAGS=3D-Werror USERLDFLAGS=3D-static CFLAGS +=3D $(USERCFLAGS) --=20 2.34.1