From nobody Mon Mar 23 21:25:16 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE07024CEEA; Mon, 23 Mar 2026 15:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774279002; cv=none; b=sGT5Twe9mcN59T2ZUOa/OPaI45GXEW+K38zLFM5JhLBJ3M26ekOUUqjSTNltc9P/6YywiZrRfl7XuA+9NtRI4Zp2ZPeUnKXTHSkTRudgogkS3+jKq1nnjIamN3zMt8WZjT+Cr7nFcvFBEMtPzOqH7YxyVBQaRezLn73wThVeR0Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774279002; c=relaxed/simple; bh=x2h+4FB5LaYokMgKHEvZZeyJKpOwoKiSiosB1fOmqrU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OIPnfYVHEw5/PsQaYR/GmWeORioGq6YJZipGQcV9azDRWYzUQnVaIxz5XkNPCie0yBcP3w18MxMfTJuQ9x9mM7tXhp3fmUGJN6aOdW3qDV4l7cJlfsuXgPMd5wj/SVsjDbsfPua/9rHLX6oCWLS4+P7JX9jzDU/UittzszEYRlo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 59A0A1764; Mon, 23 Mar 2026 08:16:34 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1B43A3F694; Mon, 23 Mar 2026 08:16:33 -0700 (PDT) From: Leo Yan Date: Mon, 23 Mar 2026 15:13:44 +0000 Subject: [PATCH v6 23/24] selftests/nolibc: Append extra cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260323-tools_build_fix_zero_init-v6-23-235858c51af9@arm.com> References: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> In-Reply-To: <20260323-tools_build_fix_zero_init-v6-0-235858c51af9@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774278820; l=1451; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=x2h+4FB5LaYokMgKHEvZZeyJKpOwoKiSiosB1fOmqrU=; b=MKKXy9SEcoZJxQzkjVrrKzEYI+D8jwICYZuUeZMdhBGXUd4B3u4T3C3XfP6D7LyZbG7D1UBDW +TXzERNzjEbBsH/tl687Em0hAzjIhY3ux9VoHVFdRZorneeYTFU+dex X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Include tools/scripts/Makefile.include, which may provide additional flags in EXTRA_CFLAGS, and append to CFLAGS. Since Makefile.include already defines cc-option, remove the redundant definition and include. Signed-off-by: Leo Yan --- tools/testing/selftests/nolibc/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selfte= sts/nolibc/Makefile index 0370489d938b540721a4fb814ebb68c463760e73..7b65e6f9840b035c1d8580574fc= 3145318b278b4 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -3,18 +3,17 @@ TEST_GEN_PROGS :=3D nolibc-test libc-test =20 include ../lib.mk -include $(top_srcdir)/scripts/Makefile.compiler - -cc-option =3D $(call __cc-option, $(CC),,$(1),$(2)) +include $(top_srcdir)/tools/scripts/Makefile.include =20 include Makefile.include =20 $(OUTPUT)/nolibc-test: CFLAGS =3D -nostdlib -nostdinc -static \ -isystem $(top_srcdir)/tools/include/nolibc -isystem $(top_srcdir)/usr/i= nclude \ - $(CFLAGS_NOLIBC_TEST) + $(CFLAGS_NOLIBC_TEST) $(EXTRA_CFLAGS) $(OUTPUT)/nolibc-test: LDLIBS =3D $(if $(LLVM),,-lgcc) $(OUTPUT)/nolibc-test: nolibc-test.c nolibc-test-linkage.c | headers =20 +$(OUTPUT)/libc-test: CFLAGS +=3D $(EXTRA_CFLAGS) $(OUTPUT)/libc-test: nolibc-test.c nolibc-test-linkage.c $(call msg,CC,,$@) $(Q)$(LINK.c) $^ -o $@ --=20 2.34.1