From nobody Thu Apr 9 05:06:24 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E52073B8D48; Wed, 11 Mar 2026 08:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773218022; cv=none; b=qh8V4BjcDU90vqre5Cj7W/SluikWrx/LZM+JoIsMNmrDZ9YurQBNvkoMYYp70kDrBVSiIq+b1zWbNU604oBZGXui2xVmD3TFLp8Po6crILJ1X4SJOZZiqDdXtlmrRk9y4BpoqbHaIIlhEeyZSH+5otI1LZa43TpAdevFbOTXcLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773218022; c=relaxed/simple; bh=2XlQBLl0CVMHfqFKSSQ3A2CBHttJLR+mly0kKHJ0Q0c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GQ5jLXzSD72ofXCDC3EFRg/riFly3UA1C2Ta/4NxcifEVgZynD/QlGCQmV0z8/OJ1Nz1Xw64A7mZocA80K62WdawlOMKOZyUADFYQnAuB+/hXuY4egPpRW8VoRsu/T4l54DS+FFgMs7P7186QxVBDHmi3HRtkYNAM/ymT8xwRPU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2AC23165C; Wed, 11 Mar 2026 01:33:34 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E27883F73B; Wed, 11 Mar 2026 01:33:32 -0700 (PDT) From: Leo Yan Date: Wed, 11 Mar 2026 08:29:54 +0000 Subject: [PATCH v4 29/30] selftests/nolibc: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260311-tools_build_fix_zero_init-v4-29-9e35bdb99cb3@arm.com> References: <20260311-tools_build_fix_zero_init-v4-0-9e35bdb99cb3@arm.com> In-Reply-To: <20260311-tools_build_fix_zero_init-v4-0-9e35bdb99cb3@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773217790; l=1294; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=2XlQBLl0CVMHfqFKSSQ3A2CBHttJLR+mly0kKHJ0Q0c=; b=9K5IaDR06OWipAxv9O5CmhRxerF+b/yQ2h/f9KSiQ30L24r/6dcPtf13j3tourAlS+x4kFLAc siec0PyeimzAnGit6Sg4hFNZFjsAO9TiO72Mt3EKO7iHlckhZSR508w X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Include tools/scripts/Makefile.include, which may provide additional flags in EXTRA_CFLAGS, and append to CFLAGS. Since Makefile.include already defines cc-option, remove the redundant definition and include. Signed-off-by: Leo Yan --- tools/testing/selftests/nolibc/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selfte= sts/nolibc/Makefile index 0370489d938b540721a4fb814ebb68c463760e73..d1a9c1d5988bdc6a8778ef418aa= a4c5ac1d26a10 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -3,15 +3,13 @@ TEST_GEN_PROGS :=3D nolibc-test libc-test =20 include ../lib.mk -include $(top_srcdir)/scripts/Makefile.compiler - -cc-option =3D $(call __cc-option, $(CC),,$(1),$(2)) +include $(top_srcdir)/tools/scripts/Makefile.include =20 include Makefile.include =20 $(OUTPUT)/nolibc-test: CFLAGS =3D -nostdlib -nostdinc -static \ -isystem $(top_srcdir)/tools/include/nolibc -isystem $(top_srcdir)/usr/i= nclude \ - $(CFLAGS_NOLIBC_TEST) + $(CFLAGS_NOLIBC_TEST) $(EXTRA_CFLAGS) $(OUTPUT)/nolibc-test: LDLIBS =3D $(if $(LLVM),,-lgcc) $(OUTPUT)/nolibc-test: nolibc-test.c nolibc-test-linkage.c | headers =20 --=20 2.34.1