Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

md: use ATTRIBUTE_GROUPS() for md default sysfs attributes

Replace the md_default_group and md_attr_groups with
ATTRIBUTE_GROUPS().

Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
Link: https://lore.kernel.org/linux-raid/20260423101303.48196-4-abd.masalkhi@gmail.com
Signed-off-by: Yu Kuai <yukuai@fnnas.com>

authored by

Abd-Alrhman Masalkhi and committed by
Yu Kuai
3b2f70ea 408434a3

+2 -10
+2 -10
drivers/md/md.c
··· 6055 6055 &md_logical_block_size.attr, 6056 6056 NULL, 6057 6057 }; 6058 - 6059 - static const struct attribute_group md_default_group = { 6060 - .attrs = md_default_attrs, 6061 - }; 6058 + ATTRIBUTE_GROUPS(md_default); 6062 6059 6063 6060 static struct attribute *md_redundancy_attrs[] = { 6064 6061 &md_scan_mode.attr, ··· 6078 6081 static const struct attribute_group md_redundancy_group = { 6079 6082 .name = NULL, 6080 6083 .attrs = md_redundancy_attrs, 6081 - }; 6082 - 6083 - static const struct attribute_group *md_attr_groups[] = { 6084 - &md_default_group, 6085 - NULL, 6086 6084 }; 6087 6085 6088 6086 static ssize_t ··· 6162 6170 static const struct kobj_type md_ktype = { 6163 6171 .release = md_kobj_release, 6164 6172 .sysfs_ops = &md_sysfs_ops, 6165 - .default_groups = md_attr_groups, 6173 + .default_groups = md_default_groups, 6166 6174 }; 6167 6175 6168 6176 int mdp_major = 0;