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 62F122BD022; Mon, 7 Jul 2025 13:33:41 +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=1751895221; cv=none; b=J4IqGhnx8q9N61RSbwDtuctpSXKus3lxbWv80s99sD1ZLnsbznn28p/nhpN59GNyKSCW/9nqWPU1tD3Q1epw7T/PgJkihIhRmnXQgJUpFCAK1eiGSoMSKPPQ6oZEQGOAuv1vM4jyZGVrIOPnWFJTUjD1/Xx3UbrkpMK+yLrT4JU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751895221; c=relaxed/simple; bh=coXCHRXOLr4GBqKYtVnKxnzaHo047ON5CiWcIERo0lI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=N2vIpfUiqvHtAPq+cgZRTERnw65eOlkhp1/IzF90iwGhZjDpy+T/naGbGjirAUPjLI7CsVMAL2IMzb3zQ2P6Xt1ngrSGQubBZS2Si44k8Ba6msDI10hB1lypFYvhQdPNK3zDqEoDA9WfAHHSL/RxSSOiw+CAfYy7blbsuBKm4EI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a0qKtf6Z; 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="a0qKtf6Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA1A0C4CEF4; Mon, 7 Jul 2025 13:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751895221; bh=coXCHRXOLr4GBqKYtVnKxnzaHo047ON5CiWcIERo0lI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=a0qKtf6ZkWcuQioVgBBE2fdWpt4oO1ur5XMfBRWWrZ5RjZvb6kTnCNB6kp+ejV4o3 k+Kpi6UpZEwpZ2RvfWPO1lkfq/nl0qzmz9Zo223jO2b5ksI8yKCVY6xq8lK9qPk7bP v2S4kdjRrytm8XvUtzrFrcjh+AaBgWS+G/jN8Auqnba5i82ZHsXE/4/rwLToM+mTaL PCxbcsdJFT/QGKLAlptqCnitBv0BqK0w/FryzqnmsXLg+y9rl/gLxgEAXvU5Q+h4QK UZGDJuT9xvv+9Eo/uFSLoktRGObHhxsAlBIbjwaE4BFK/VSy6ZK9zK8w/P6pfcQFlA CV7HtlptpvDiQ== Message-ID: <1017a5b4-478a-48ee-805d-363a4c0ca220@kernel.org> Date: Mon, 7 Jul 2025 14:33:37 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] tools/libbpf: add WERROR option To: Daniel Borkmann , Sam James , bpf@vger.kernel.org, Andrii Nakryiko , Eduard Zingerman , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa Cc: linux-kernel@vger.kernel.org References: <7e6c41e47c6a8ab73945e6aac319e0dd53337e1b.1751712192.git.sam@gentoo.org> From: Quentin Monnet Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 2025-07-07 15:18 UTC+0200 ~ Daniel Borkmann > On 7/5/25 12:43 PM, Sam James wrote: >> Check the 'WERROR' variable and suppress adding '-Werror' if WERROR=0. >> >> This mirrors what tools/perf and other directories in tools do to handle >> -Werror rather than adding it unconditionally. > > Could you also add to the commit desc why you need it? Are there particular > warnings you specifically need to suppress when building under gentoo? And if you need to disable the flag on a particular target, have you considered using the existing variables and pass EXTRA_CFLAGS=-Wno-error rather than adding another flag? Quentin