Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2639650lqb; Tue, 28 May 2024 06:21:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfduGuLiLpS5O+m01vQbhIcOVu3vZmKAYj6ASHcxft6UOaX5McrP47WJ+HLSCA5WnsirkMtYS55lZVj0Q9qTMsY435wV5Hy+jfC9i8GQ== X-Google-Smtp-Source: AGHT+IEqqe8sepineYbxOWllfvIy8C+j6v1TYdCxes9KgbII4sXHxyzJxiEKlH+9YzUR5enVneFC X-Received: by 2002:a05:6a20:979a:b0:1af:d35f:f282 with SMTP id adf61e73a8af0-1b212d1dbf8mr11765804637.14.1716902519251; Tue, 28 May 2024 06:21:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716902519; cv=pass; d=google.com; s=arc-20160816; b=Wr/V0q5N7Gil3HeAjhSsMCYd5sSvhZwgHweOIPQ0M0gwd8Nm5QN/wvylzs9A3f7z7m 48FzoZ9JYhyq2nGX+PKVcVtMg45cB5AhYKrqYahoTV1xGeo1q6+VbQ7hKtIiFaiMbcPy geUz+wED5EoyLSsPwT/uZobprETCmRii0vOqGlpR0jdCTCEE5Gtx2lPzUfio9/PfGeTp ts0EMiX8eOJAIZy1fhR6xuradqISiItcR50C3MjifwNa1xzARRh8t94lXYOxyP/H5cAt xpVNj+XHatUrIUS0TjnUBngy5xM+lrcN/jpnGDF7V3IHFcU1CMON1rUzctDaUHes/CwG HGrA== 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=dyjRW4YyzegWflprRfiSIYBTwHOlIQb89cFkUWyTUDY=; fh=YpHnV/6uyiPbG6kMterX8knOBa279otQWiSdSsr99Bc=; b=Ww5LNr4tKZVrGZDoi5bVNMD5qw1+7nHOWOgYphzj5oBZWTGVONn4kivCLnRG/hnJVw Yb+r19kzzomUY4yfRax03KolXMUb+cpMyGUIXnRSXiCJWUpaXMUCtlUSNYqv62xkiyy8 gLJWqVzS3KwOpxACWtHf/6AHLB4hO1B+f36Z5DOE+uj2C5cQgb8k7uJ9L4Uk107ChAPT YWcsyGkBfv1kvDtvecCd78aSzsMW2tHWdg2E5+LqQOqHlpDqiBNDoD3Ma4IBwW0kbG4R V2O7LvyXW02lh+NbxQpcTNkLYe/namvjt0kTM8slWNfQDB+euPEIL48VgCt5C2BPBmCP WuAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TwMtJSDW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192392-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fc051063si8019939b3a.57.2024.05.28.06.21.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:21:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192392-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TwMtJSDW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192392-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192392-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 916ED2836FF for ; Tue, 28 May 2024 13:20:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21AEB1779B1; Tue, 28 May 2024 13:15:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TwMtJSDW" 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 358EE16F292; Tue, 28 May 2024 13:15:46 +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=1716902147; cv=none; b=SyrjlGbd+8ozr92O48C+Evim2dQP2HUbjKMFS8MebmyxBpn1J3csTNfLwG+OZF1P/LOnhGYIk69g2KamCs6OXqJq1rxtnbXSkLASn15muYxGpS38NIM0Lm3O/1D92VlGGBFRjojtdCzT/NA3c6ycsjwwLONWgScHBxShA6fbisw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716902147; c=relaxed/simple; bh=Tr1yyl5glZHjQNVjRPObhpi0VbS6TeTAGCRSkl0ml0o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bG7c8HvsDFOtfYsoP/9b1GDZCChwkWLDz2KcX2J7H5M7FXRo8XztBdDzeBBPsLapXnVX3MLZ2370rw5S9H1cg3OP56uvdVr2nEA5D2VTN4DpCStjJ+F0AMEffVTpxxtq3QYpKRoJ0tueLGDA18mKKqSDsBOSAhFc+RNePbTqzyk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TwMtJSDW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7CA4C3277B; Tue, 28 May 2024 13:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716902146; bh=Tr1yyl5glZHjQNVjRPObhpi0VbS6TeTAGCRSkl0ml0o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=TwMtJSDWPlzw5fDvIRqsukaJzOvsTmwKO7Un/0JdBdOdTfgD1/ceFpckunTXnRS1B 3DfhAj6WRP/p8mXGE26jZqwAgBiFk1w2rSAHhjyIK4ea9qMc2FKgrMiLLUUtTd5E1Q TxHmmzKvTV9A41HSxhhcOu76csJkauFYMaPWemJWE5Lhj7JZLDyXkBrehzv478E0Nl Cfux73/Tsh3G8xowzc7fqV3wFF07nbNaEU0IdGVjJ3nr1P55NR7+s/JqyZAmnEbfZ7 k1p9UsKpaG7e12fZmJUOawIt9b8JtUITIRCRfMlLMtnxouFFxFin6ZMfCCJMwPjVZl N2fWBYOMnjEkw== From: Benjamin Tissoires Date: Tue, 28 May 2024 15:14:51 +0200 Subject: [PATCH HID 13/13] 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: <20240528-hid_bpf_struct_ops-v1-13-8c6663df27d8@kernel.org> References: <20240528-hid_bpf_struct_ops-v1-0-8c6663df27d8@kernel.org> In-Reply-To: <20240528-hid_bpf_struct_ops-v1-0-8c6663df27d8@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=1716902113; l=738; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=Tr1yyl5glZHjQNVjRPObhpi0VbS6TeTAGCRSkl0ml0o=; b=qxiMEpLA+Im0ChWCITPIRK6TeeA/TJVdvPQGZsHorM0DpzVPYNhMnXntGCTYXbSlMKw16m8on rlOPAfnnqQDB6Wir5YKJ+ohEXsRXC4xGagLLtLa8oWalMqZiQMk6HEi 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 --- 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