diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2025-10-29 09:12:11 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-26 15:16:35 +0100 |
| commit | 964c93b1eef37e3bbe0edb37346c076217d71fe7 (patch) | |
| tree | 93b833cc3b3e5ac6c90d44164b4481400d8f6d4e /rust/helpers/sync.c | |
| parent | f85d90dd8d0efbc75e79698e147c6e682df22e1a (diff) | |
sysfs: transparently handle const pointers in ATTRIBUTE_GROUPS()
To ease the constification process of 'struct attribute', transparently
handle the const pointers in ATTRIBUTE_GROUPS(). A cast is used instead
of assigning to .attrs_new as it keeps the macro smaller. As both
members are aliased to each other the result is identical.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20251029-sysfs-const-attr-prep-v5-2-ea7d745acff4@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/sync.c')
0 files changed, 0 insertions, 0 deletions
