From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FB973FCB19; Thu, 12 Mar 2026 18:32:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773340321; cv=none; b=XfmYnrZqwhvpT0M2mKXUlDTU74geYAwT1rVMQLCgvX6YSeSX+2Nemi48KvQJkwydVjwCSow0j2dRxCQpNc+hjOplxkweSkKZFotmIzQxC/3hbcgMKV4dHb0OsQkFCAPa0ZCFxduQVtS1Qbac43dvrSdNnpGpzc8Uqr/yZSU9k+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773340321; c=relaxed/simple; bh=zuLcUstvFNOQmDCHI2IrH8yvJLlc7xB8XA1uzA1Jnds=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tw3DnRN7cBQOxx4Uv+pENUGF/rmW3S91LiHaoNCuWNGQvAnlKJCwpK5BhUs9eGhRat0iLn6E/ZxKjYAmUL28+tzru8NU2hJTr3mp/58j4j2iQrV92AQrPkLK3Ft46a+57LnslCYcgs6j5FKdb3WZhUarXPruO9X6WU/XZ/TjYoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jSYg+m4m; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jSYg+m4m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59565C4CEF7; Thu, 12 Mar 2026 18:31:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773340321; bh=zuLcUstvFNOQmDCHI2IrH8yvJLlc7xB8XA1uzA1Jnds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jSYg+m4m54FtcKJ+janba3zel8DEfs/UfcgLw5ZN76Z2aX67uSng7vAWHuFo0KTq9 poi2mYvXD1sWqu07q7PHOixBwVa2r+l1hHb7Nc75ZP++XXmkhXAh3ssoajyS/UBhpu LNzXCI5b+yrntp4/1iw/63fJtejTdhy11Zf1T0RcyD+RBynZp3WL1m2g2WB3tmaYfG 6PQb86+AXM8UruLkfgTMiUtLT1iKx4dHKCcG2/VugSbwF0QFmh3P6HPkMMFLo+Xi+o qWZZ91Hig0m9f5t1aBAPw1NFU28z/wCNm0wqEVJyEfFoFKAAFRH9x2tTjGpkXnukWd BRxX2vwuVG/GA== Date: Thu, 12 Mar 2026 11:31:57 -0700 From: Namhyung Kim To: Leo Yan Cc: Arnaldo Carvalho de Melo , Ian Rogers , 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 , Nuno =?utf-8?B?U8Oh?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , Thomas =?utf-8?Q?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 , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v4 10/30] perf build: Append extra host flags Message-ID: References: <20260311-tools_build_fix_zero_init-v4-0-9e35bdb99cb3@arm.com> <20260311-tools_build_fix_zero_init-v4-10-9e35bdb99cb3@arm.com> 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-Disposition: inline In-Reply-To: <20260311-tools_build_fix_zero_init-v4-10-9e35bdb99cb3@arm.com> On Wed, Mar 11, 2026 at 08:29:35AM +0000, Leo Yan wrote: > Append HOST_EXTRACFLAGS to HOST_CFLAGS so that additional flags can be > applied to the host compiler. > > Signed-off-by: Leo Yan Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/Makefile.config | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index a8dc72cfe48eec52bd9e2352c46c88f5d8047765..f4004ec148a19c784bfe3ee9b5cc3901a3db25a3 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -17,7 +17,7 @@ detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected) > detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected) > > CFLAGS := $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) > -HOSTCFLAGS := $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) > +HOSTCFLAGS := $(HOST_EXTRACFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) > > # This is required because the kernel is built with this and some of the code > # borrowed from kernel headers depends on it, e.g. put_unaligned_*(). > > -- > 2.34.1 >