From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 13D8A84039 for ; Sat, 13 Jun 2026 01:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781313013; cv=none; b=fNgmmu48ChRS9aOym+D4Hwtm2usiUOWr304rGTAQp5nM6M6BzdHZEpOB9B9DJP1/BYuir+BZ1WbO54IBMsa6K9CIQzsdpeeV5InU8JJe+uTG7wHNFAvOmy5a1XGb4JND++BYCmUYGACpF28CQltZIdMI3Bhaqz8hIw2nkNXsiL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781313013; c=relaxed/simple; bh=3IYf4nFqEuhKYAs0qSBdcbMMZB8b/ZMFbnevmr2S0aY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gi7v5ZpVTWhQoXZwNXs/EhED85vM+7q5Ue2BD4CmHZ1HElrNu47Ju3R8XZMA1VRn+WltHiNnYVE1FF7yu/hUv0/hWFDXLKps3Oe2u4HU+fNCkGTLqy8XV9E8+XKsXtaq2vgkD516SKEeGgivDN6FxCQ0dkcCJBZR7WMh2M4K6Us= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=hbljm5Q0; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="hbljm5Q0" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781312999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yqm6Ma13HVSNAEaBNT//aY4x0WUrJAMWPwAZIyMYak8=; b=hbljm5Q0pV5/uev/vLsZ5rG0G0KwwT5B4bv68MjvPm480DhbaJhXuh3+lYyAdLKdxH1CXU EaUGWu7oUOTEcfeFpIPnXVvNMKNOdImSgqcrPnOaJyWHvwtUlUUjVdcRyfj4TQ3TbiRtEV Z5dCVJP/jUpCDPICVZzNGmlPKecvof8= Date: Fri, 12 Jun 2026 18:09:49 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v2 5/8] tools/bpf: build: Append extra cflags To: Leo Yan , Quentin Monnet , 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 , Shuah Khan , Lorenz Bauer , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers , James Clark , Kees Cook , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev References: <20260602-tools_build_fix_zero_init_bpf_only-v2-0-c76e5250ea1c@arm.com> <20260602-tools_build_fix_zero_init_bpf_only-v2-5-c76e5250ea1c@arm.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Ihor Solodrai In-Reply-To: <20260602-tools_build_fix_zero_init_bpf_only-v2-5-c76e5250ea1c@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 6/2/26 7:47 AM, Leo Yan wrote: > Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to > the compiler. > > Signed-off-by: Leo Yan > --- > tools/bpf/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/bpf/Makefile b/tools/bpf/Makefile > index fd2585af1252669c59228af3a77320e449e1a1ab..9c19e81f3c274767c3b9b94c907cbbe3ce9fe78c 100644 > --- a/tools/bpf/Makefile > +++ b/tools/bpf/Makefile > @@ -11,6 +11,7 @@ INSTALL ?= install > CFLAGS += -Wall -O2 > CFLAGS += -D__EXPORTED_HEADERS__ -I$(srctree)/tools/include/uapi \ > -I$(srctree)/tools/include > +CFLAGS += $(EXTRA_CFLAGS) Acked-by: Ihor Solodrai > > # This will work when bpf is built in tools env. where srctree > # isn't set and when invoked from selftests build, where srctree >