[PATCH 0/6] configfs: Allow the registration of const struct configfs_attribute

Thomas Weißschuh posted 6 patches 1 week, 2 days ago
drivers/acpi/acpi_configfs.c       |  2 +-
drivers/gpu/drm/xe/xe_configfs.c   |  4 +--
drivers/virt/coco/guest/report.c   |  6 ++--
fs/configfs/configfs_internal.h    | 10 +++---
fs/configfs/dir.c                  | 10 +++---
fs/configfs/file.c                 |  6 ++--
fs/configfs/inode.c                |  2 +-
include/linux/configfs.h           | 73 ++++++++++++++++++++------------------
rust/kernel/configfs.rs            | 20 ++++++-----
samples/configfs/configfs_sample.c | 16 ++++-----
10 files changed, 78 insertions(+), 71 deletions(-)
[PATCH 0/6] configfs: Allow the registration of const struct configfs_attribute
Posted by Thomas Weißschuh 1 week, 2 days ago
The attribute structure defined in driver code never need to be
modified. Allow them to be marked as const.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (6):
      rust: configfs: remove mutability from some field initializers
      configfs: Constify is_visible/is_visible_bin in configfs_group_operations
      configfs: Treat attribute structures as const internally
      configfs: Constify configfs_bin_attribute
      configfs: Allow the registration of const struct configfs_attribute
      samples: configfs: constify the configfs_attribute structures

 drivers/acpi/acpi_configfs.c       |  2 +-
 drivers/gpu/drm/xe/xe_configfs.c   |  4 +--
 drivers/virt/coco/guest/report.c   |  6 ++--
 fs/configfs/configfs_internal.h    | 10 +++---
 fs/configfs/dir.c                  | 10 +++---
 fs/configfs/file.c                 |  6 ++--
 fs/configfs/inode.c                |  2 +-
 include/linux/configfs.h           | 73 ++++++++++++++++++++------------------
 rust/kernel/configfs.rs            | 20 ++++++-----
 samples/configfs/configfs_sample.c | 16 ++++-----
 10 files changed, 78 insertions(+), 71 deletions(-)
---
base-commit: c8d07eca6270b3f41c0e528a470895f1bd42e2b7
change-id: 20260716-configfs-const-base-6955b043560b

Best regards,
--  
Thomas Weißschuh <linux@weissschuh.net>