From patchwork Wed Nov 27 19:15:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13887323 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 AE3C6204082; Wed, 27 Nov 2024 19:20:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732735254; cv=none; b=ebill7ScvJRTT2hyqByKXWH2J7FAwYiE+p/FXS1dIQwNd4IeWcAnIKQ9JFCvczmTdSo87hTc834GQM8r5e1STeHcsxi6GL47ADCSA6Vv0xWYtwN4r2pVi58xFxLb2R7n5OuaNnSl7ONwpvlXz5xiqVLRUf+ovYlyD2vffgQyngQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732735254; c=relaxed/simple; bh=3rctmezwlCnJHJyzeUdMtikNSq141Sldc2+hgFUUhjk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=APvQga+mIfjT7N3xpIrwCjRGeS/tnEPgelc+FLf71QDRQKcT/S5htuq1NIc4or8pa+DS9ZR77j8GYoYAtNcHoh9R6aDv/rasGIpj6oUbDvFiW16v+pIgGrRsFGB+UGk39qFXZcrdUFHwm68lb0I5SIHpN9KP+MBHby781LL7/I4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=Z+GeIXER; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="Z+GeIXER" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1732735245; bh=3rctmezwlCnJHJyzeUdMtikNSq141Sldc2+hgFUUhjk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Z+GeIXER2Zg36gl3BBXVGtEmEZkKCPvmohtmST9bxks1ArkuiByBrVDJlrZOdjlpX fTWxTuOaFqPbqU4cuUEjutTbhoVqXA/0Zl1ErZ1p0C2F5oMFziRn7C4TYsFVAoX0T6 eDKCdGlfs3fTIYb5ZsieT64VpejLP/Q7+T1lXuZg= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Wed, 27 Nov 2024 20:15:23 +0100 Subject: [PATCH bpf-next 4/9] const_structs.checkpatch: add bpf_struct_ops Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241127-bpf-const-ops-v1-4-a698b8d58680@weissschuh.net> References: <20241127-bpf-const-ops-v1-0-a698b8d58680@weissschuh.net> In-Reply-To: <20241127-bpf-const-ops-v1-0-a698b8d58680@weissschuh.net> To: "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Martin KaFai Lau , Kui-Feng Lee , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Jiri Kosina , Benjamin Tissoires , Tejun Heo , David Vernet , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-input@vger.kernel.org, =?utf-8?q?Thomas_Wei?= =?utf-8?q?=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732735245; l=693; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=3rctmezwlCnJHJyzeUdMtikNSq141Sldc2+hgFUUhjk=; b=6DzHI/fSbgD40QFAxB1P9wL4KCIvbaHi7tT1rqbM+fUIdlNUTGiKf0h4sanbM4UgP37azYPde swQX9s30MU8BhqRRlfEXT2pt5zWs1J/92u8Ku+uBD5cXZCZ9ysB+XTp X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Now that the BPF core can handle "const struct bpf_struct_ops", make sure that new usages of the struct already enter the tree as const. Signed-off-by: Thomas Weißschuh --- scripts/const_structs.checkpatch | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/const_structs.checkpatch b/scripts/const_structs.checkpatch index 014b3bfe32374880a5f0cbdcc2763c24ba47b5c7..1457067dbc18e2586f5ef0c8c44367cb3011731d 100644 --- a/scripts/const_structs.checkpatch +++ b/scripts/const_structs.checkpatch @@ -1,6 +1,7 @@ acpi_dock_ops address_space_operations backlight_ops +bpf_struct_ops block_device_operations bus_type clk_ops