# \[PATCH bpf-next 4/9\] const\_structs.checkpatch: add bpf\_struct\_ops

- From: Thomas Weißschuh \<linux@weissschuh.net\>
- Date: 2024-11-27 19:20:52 
- List: netdev
- Page: https://ratatoskr.run/netdev/2024/11/2839200
- Thread: https://ratatoskr.run/netdev/2024/11/2839196/t.md

```text
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 <linux@weissschuh.net>
---
 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

-- 
2.47.1

```
