Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1121311lqt; Fri, 7 Jun 2024 08:32:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxYnZ76l/nukYdF49ImcYhUib67UuRIX5+lRJumsbaXA64MKM08lQApsYI58ZSwM1pl0EvMLSWw/nm7hXn3RpGxXU02OqsT0R+D4255A== X-Google-Smtp-Source: AGHT+IGWBUqsNn2PNTHmyiLp+Okojy5NFhAS0WzDlF9cmZtVMFDRbo/d2+xprY9Wp/b1Cy80JpM2 X-Received: by 2002:a50:8719:0:b0:57a:2546:2512 with SMTP id 4fb4d7f45d1cf-57c5099b8b0mr1559666a12.34.1717774368945; Fri, 07 Jun 2024 08:32:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717774368; cv=pass; d=google.com; s=arc-20160816; b=fNdmVbOmTC72nz+Vmk11ZJAsDSotUyuCxxy8mXAgkHzlc2cb8CNaFUjByfo8WSEvYc OOA98dH/gwFyQbFzR6XZIxKB7cJ6jNNxrmNznld9ypYE1YYGvqf+bUPkvD44syU5O4SU iXWVJVajW7vmy9XOnQeZo6vsMRSJH87PMlvQUPeF3qX5akWTRIBuSP6AgsxBXenBXnnX VxO5ELJwVRzOCupu+ib2JLaVvOj5f0wBfpnyhUPB7L1SYX+pm8ovB8Pu8VRlHeWm3gkK KRjcXPYXt44pUhlb2Qyjid0rA2L08FQDxRWnhopbk6+VsC250Jq6F9FeE7mV0z26n8mP gi/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=3FKE3q2MHqy4CJe7wPlUJ+LwdQQCxh7i0V/HoltAU3A=; fh=YpHnV/6uyiPbG6kMterX8knOBa279otQWiSdSsr99Bc=; b=lBMbtGwY9hRMdopwY888DHrxA3BfThTP66etCfjtybB1nJe9GlJCfh5WMco+fLwNk6 GUQgeIrj2TXukVUgV2J6F1dM6rJTjDdxKcLes+9rEoQUebdNoT7vgyEbUZydJ6drLFGk +UkFvqclhcSkGPOTOKkovDGck0kN+tiIYXYSPpgXxTTJmcbFbVC6wIThFlfxjAdizhTq Ydm4OPyWsmUpoofDbxEheFoaopMXociMjhP6JlRNzJmyJ/J26WjU47ouKUbgHGTP+vSW MP/isWTRPPS/z4wDXnoxKTXYJ7isR9mFKdcNeNBkXAnc5GMPuG26RGzmliQ1+77IqRCT n6Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mEToTIEe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae0c5cadsi1992402a12.78.2024.06.07.08.32.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 08:32:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mEToTIEe; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206404-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A6EFF1F235A9 for ; Fri, 7 Jun 2024 15:32:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46AB319DF5F; Fri, 7 Jun 2024 15:29:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mEToTIEe" 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 5BD4F199235; Fri, 7 Jun 2024 15:29:03 +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=1717774143; cv=none; b=s5Xi87xygf207HnIw3nbSCDoj2Vj/3lnDUwTl4QBvR7KKiGkHrRAhhGsmrDGG3Al2baB91/AyDJQefxEW3xEu8nSnbtF+uxd8zDtaE+vqFmW5yPdfcLYsmuqKGJy1Tm4Li9jwdp9vx2Pt1zipIG3a/hiAWL6jL8/dA7MKzAYEP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717774143; c=relaxed/simple; bh=I+dIeYVudaaVppZA75Mhmfe5/A6IezUsfk2xb4OPEt8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nfBs1zMhL8p5tG7EzynNzbnxlbRmoTIZAfHpYFk4CNcmjH8xvl6OFlHtWh9XO4Pavp5jciA7jC3bQdqDAePjxdD4u4nlKyEYHUI7DZb+VYa1MXYU3/K8Fan5oNtIjJ4jXHNWkHvx9bonEhMEqWeKtKVSRDOOYjcQ2DrS4fFfE3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mEToTIEe; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18FC0C2BBFC; Fri, 7 Jun 2024 15:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717774143; bh=I+dIeYVudaaVppZA75Mhmfe5/A6IezUsfk2xb4OPEt8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=mEToTIEemjqpbTxImmzQEa+R2S+QyCNCdN71rbWlVWvXr03fbhUywhcf+Ck8jXaqP Qo1cfOYjdOEzdQBuRKcpEkuoWyWfXVVllo8YRHzKt+/KjceuEdxwaCXEnXuX95hHxL oLcWx83rES2hiYoR3QNgpG3QtXwGVltUIZp0QOOasEDxEdU5xkksFVu5DM6SfT3KTo hraidkRkEeScwMUIC3mCll+8/r4RF/KH6qkkSRdd4G3sxFUURS6kLPmbVWgoL9O5mb UanjsvE8BnODMK5LCeaBSeLNaJakEyg79NmL7EOiYT8x/ymKJ3cYs9sCXBfNa/YouS u6Skc9Bk0oMBg== From: Benjamin Tissoires Date: Fri, 07 Jun 2024 17:28:33 +0200 Subject: [PATCH HID v2 13/16] HID: bpf: error on warnings when compiling bpf objects 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: 7bit Message-Id: <20240607-hid_bpf_struct_ops-v2-13-3f95f4d02292@kernel.org> References: <20240607-hid_bpf_struct_ops-v2-0-3f95f4d02292@kernel.org> In-Reply-To: <20240607-hid_bpf_struct_ops-v2-0-3f95f4d02292@kernel.org> To: Shuah Khan , Jiri Kosina , Jonathan Corbet , Alexei Starovoitov Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-input@vger.kernel.org, linux-doc@vger.kernel.org, Benjamin Tissoires X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717774109; l=765; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=I+dIeYVudaaVppZA75Mhmfe5/A6IezUsfk2xb4OPEt8=; b=DSqErPEebU7kKkR8ad7F3DYOeoTE30eJ3em4Yn/FhZjAQfI5jnw5CAbuAffw1mZq61dkdUwr1 mTYz1GLOjA0BsfKxVexNOnAp1MdnRvgKdUn0Eyvnt7XUTTNzlNFsu0E X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= There is no real reasons to paper over warnings for such small programs. Signed-off-by: Benjamin Tissoires --- no changes in v2 --- drivers/hid/bpf/progs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/bpf/progs/Makefile b/drivers/hid/bpf/progs/Makefile index 63ed7e02adf1..ec1fc642fd63 100644 --- a/drivers/hid/bpf/progs/Makefile +++ b/drivers/hid/bpf/progs/Makefile @@ -56,7 +56,7 @@ clean: %.bpf.o: %.bpf.c vmlinux.h $(BPFOBJ) | $(OUTPUT) $(call msg,BPF,$@) - $(Q)$(CLANG) -g -O2 --target=bpf $(INCLUDES) \ + $(Q)$(CLANG) -g -O2 --target=bpf -Wall -Werror $(INCLUDES) \ -c $(filter %.c,$^) -o $@ && \ $(LLVM_STRIP) -g $@ -- 2.44.0