summaryrefslogtreecommitdiff
path: root/rust/kernel/ioctl.rs
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-10-29 09:12:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-26 15:16:35 +0100
commit71464949b1f5f8b8599d057fea525a2a520f84d8 (patch)
tree8c5137f97f58741f878e52d4e130180c8aceec38 /rust/kernel/ioctl.rs
parent2d76fdc1c91a95c23cd3e47a4fd4315f1633019b (diff)
sysfs: simplify attribute definition macros
Define the macros in terms of each other. This makes them easier to understand and also will make it easier to implement the transition machinery for 'const struct attribute'. __ATTR_RO_MODE() can't be implemented in terms of __ATTR() as not all attributes have a .store callback. The same issue theoretically exists for __ATTR_WO(), but practically that does not occur today. Reorder __ATTR_RO() below __ATTR_RO_MODE() to keep the order of the macro definition consistent with respect to each other. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://patch.msgid.link/20251029-sysfs-const-attr-prep-v5-7-ea7d745acff4@weissschuh.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/ioctl.rs')
0 files changed, 0 insertions, 0 deletions