Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1532065lqt; Sat, 8 Jun 2024 02:06:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8m2a/Mh6r1lDyByZKyyxune+OL6qf8IfyaTcpAek38w9TkJ11O1FB61VBEFQoSH0hqZ0KVFdp5XmRF21dfb2ioaftCW7soctcrIfCVQ== X-Google-Smtp-Source: AGHT+IHymD7O6vPbeJ0X6l9M5VpbmrGM/3VAwzEnwXBgKtIzswngGmdR2Jyl5Jlxy/Sbjp5vttwh X-Received: by 2002:ac8:7d88:0:b0:43e:404a:8907 with SMTP id d75a77b69052e-44041c26079mr54529171cf.6.1717837569582; Sat, 08 Jun 2024 02:06:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717837569; cv=pass; d=google.com; s=arc-20160816; b=gWI7Gqf48vkW3yerlNvx7FCx2yzxtcvbB+iixdh4hQSFQ7PSYCgGwQxBB8ZrpmkN/C 4fmgjNueDWeWpuDq4j/3dTXh2++U1dg+zy9c7L8OCphrj8MRrlvKCuYgBFYY2E8vdpNE +SMV+Uq8m0TneyR+xPfWNQSpTsh6YbmRZJRrJQMHMmLjgv2n0SaC2/juu4HRKhxIy116 jFC+gYeMU7OF9RjE18vtKw7bVyTGqv+mc8rsf51L4JpE3J1e2sAfZvEAPq9wEklA0OIw ASPcJ9UGcZoEx14RYwpVXl+mnib63G8a+p1O7Tc0Hsi7bouuJwIgQSFnuqTsG2Km/hbk TwvQ== 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=mY2v9AFz9zKwxkX9nMt5tDuXC4JlttfwLrZMWhw2hVE=; fh=YpHnV/6uyiPbG6kMterX8knOBa279otQWiSdSsr99Bc=; b=p598DiJDsPbQXdf23wqR5Fh575QolLRIBzk9oYFA/fD7qw7c++ry/GYC7Yu2e4MCYL wbRw9dGlDCYEopyIjpnNG7PuL5siuc/WDOf+Y3rDFzoJ7W4mbQ3mx+Kkh9as7hOWM6JB 7ChVpG+oR1Fb3IV9Y76chyTCqIK41AMhsr6xur1a+zEvylSFMyX0URy+2bI3TN+El+ho IX/5SCcuk8i4cni6W901AmqRXOfnFooZC2MUK5ymDPaVOKoBj5msjBOxWNpgQr6KblpZ Bq0OLB8TGHhTtmMRl8VbZmuPeY3L1nHIFoyaNdV8TeOWF6PTvSwz4qklrrK6rtX/9eRi 3kBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=shD3lBca; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b6002esi58492331cf.559.2024.06.08.02.06.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 02:06:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=shD3lBca; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206977-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4792F1C20C5B for ; Sat, 8 Jun 2024 09:06:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CC0817CA1A; Sat, 8 Jun 2024 09:01:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="shD3lBca" 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 4686D17C9E7; Sat, 8 Jun 2024 09:01:52 +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=1717837312; cv=none; b=PhHNnmjdj1dxuVeodJtO7gxK26eWoJPlmvqf6wmBNkMb6v6MGYLJev7JkgjM8vf3ln/66uxLA2TZXxMd+tigvMl1eqM9bbCvPhUqXsIrzmxeqU49ouvAcfCLOTsM+U4874Qt2mVvjCdJfQE9R8uCVjPbFjjEvO0VrYYYkbnmZYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717837312; c=relaxed/simple; bh=vy4mezYjZtrXyMz65bPN043/fx8Jb4rfGeuYveZNR50=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d+H4gqR8EU4KyGeDv71xsGxnp/pwCZTfJ7WRhImjsfvdUfyLXBN8bEDiyUenGLaND5QtkQCMpWuoCuNKuFD+0ZEz9O/YpASM7FIhm+27UPov/R/Z/FFsL0+Ra8ndC0tao6Xf5G8MzW3CJuvC9PoRiQm++FLKzlVGpZNurJMtUa4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=shD3lBca; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45F1CC4AF08; Sat, 8 Jun 2024 09:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717837312; bh=vy4mezYjZtrXyMz65bPN043/fx8Jb4rfGeuYveZNR50=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=shD3lBcaP5UhqoE5qXZlKCoGjv5f5sg2Mk9aSUx7NocZGD6xG+sKDANnxFAU0IvvA fJAUonGfBakyAtIe51DEdavCWka2UQZn1KPFUSg+/coZiXW4NGCfEgw/Av3QjqiKF5 VLsJw8v7mkmqhcreySIducfjBsySf6bSzPET1E2O3l+6wf9EZyGK72sNsL1urJGx6L WfnU+qxisv49f0+rYMfuMT3eRG92hS8j5Fb5Rzq16CPUDf3I6TmOyZmuLzYv8Qdvld Mo8lRnMZyZMrhP0OlAeXSIcaCdpHlmbBRjV/houRP4qK/uHExaXZ2eK1sBz8Qq+dyy 2ZUIOxmH3SKvQ== From: Benjamin Tissoires Date: Sat, 08 Jun 2024 11:01:25 +0200 Subject: [PATCH HID v3 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: <20240608-hid_bpf_struct_ops-v3-13-6ac6ade58329@kernel.org> References: <20240608-hid_bpf_struct_ops-v3-0-6ac6ade58329@kernel.org> In-Reply-To: <20240608-hid_bpf_struct_ops-v3-0-6ac6ade58329@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=1717837279; l=785; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=vy4mezYjZtrXyMz65bPN043/fx8Jb4rfGeuYveZNR50=; b=Cm0xeT6L2mEWnBbNTcNf6Eg2hL1BMyLChleBIQdszevtTvtVQR/Z/dSkx4uT1I2L8TQXEur1Q mL2VetAFIfCATyvns1fvYG0G2x56sNVJfbnCXSHaPUUziQLxcaI1D91 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 v3 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