aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/sysfs_btf.c
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-05-30 05:54:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-17 10:44:13 +0200
commit2fbe82037ab2513275b9d97fe4fd9947df26e960 (patch)
tree22e1628a1341043d48a18b2446d4923e821fd45b /kernel/bpf/sysfs_btf.c
parentsysfs: constify internal references to 'struct bin_attribute' (diff)
downloadlinux-2fbe82037ab2513275b9d97fe4fd9947df26e960.tar.gz
linux-2fbe82037ab2513275b9d97fe4fd9947df26e960.zip
sysfs: treewide: switch back to bin_attribute::read()/write()
The bin_attribute argument of bin_attribute::read() is now const. This makes the _new() callbacks unnecessary. Switch all users back. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20250530-sysfs-const-bin_attr-final-v3-3-724bfcf05b99@weissschuh.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/bpf/sysfs_btf.c')
-rw-r--r--kernel/bpf/sysfs_btf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/sysfs_btf.c b/kernel/bpf/sysfs_btf.c
index 941d0d2427e3..8951d8a2f2a3 100644
--- a/kernel/bpf/sysfs_btf.c
+++ b/kernel/bpf/sysfs_btf.c
@@ -45,7 +45,7 @@ static int btf_sysfs_vmlinux_mmap(struct file *filp, struct kobject *kobj,
static struct bin_attribute bin_attr_btf_vmlinux __ro_after_init = {
.attr = { .name = "vmlinux", .mode = 0444, },
- .read_new = sysfs_bin_attr_simple_read,
+ .read = sysfs_bin_attr_simple_read,
.mmap = btf_sysfs_vmlinux_mmap,
};