diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-07-16 19:09:29 +0200 |
|---|---|---|
| committer | Breno Leitao <leitao@debian.org> | 2026-10-16 09:17:20 -0700 |
| commit | ee4f267ada12bd5eb8b675018bdd60e60da2c089 (patch) | |
| tree | 8edca3ee5201aebba9161e82828f103c1e8f4a65 /rust/kernel | |
| parent | 459d4b9a893f53d5635f24f44464f1988aaaf07e (diff) | |
| download | linux-ee4f267ada12bd5eb8b675018bdd60e60da2c089.tar.gz linux-ee4f267ada12bd5eb8b675018bdd60e60da2c089.zip | |
configfs: Constify configfs_bin_attribute
The configfs_bin_attribute structures defined by driver are never
modified. Make them const.
As there are only two users of these attributes, adapt them in the same
commit to avoid a phased transition.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://patch.msgid.link/20260716-configfs-const-base-v1-4-c545a4053cb5@weissschuh.net
Signed-off-by: Breno Leitao <leitao@debian.org>
Diffstat (limited to 'rust/kernel')
| -rw-r--r-- | rust/kernel/configfs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/configfs.rs b/rust/kernel/configfs.rs index 5c66b7e4b109..5052c1bbaf94 100644 --- a/rust/kernel/configfs.rs +++ b/rust/kernel/configfs.rs @@ -757,7 +757,7 @@ macro_rules! impl_item_type { ct_group_ops: GroupOperationsVTable::<Data, Child>::vtable_ptr(), ct_item_ops: ItemOperationsVTable::<$tpe, Data>::vtable_ptr(), ct_attrs: core::ptr::from_ref(attributes).cast_mut().cast(), - ct_bin_attrs: core::ptr::null_mut(), + ct_bin_attrs: core::ptr::null(), }), _p: PhantomData, } @@ -774,7 +774,7 @@ macro_rules! impl_item_type { ct_group_ops: core::ptr::null(), ct_item_ops: ItemOperationsVTable::<$tpe, Data>::vtable_ptr(), ct_attrs: core::ptr::from_ref(attributes).cast_mut().cast(), - ct_bin_attrs: core::ptr::null_mut(), + ct_bin_attrs: core::ptr::null(), }), _p: PhantomData, } |
