Re: [PATCH v2 1/1] PCI/hotplug: Add 'uevent' sysfs attribute to trigger slot events
From: Krzysztof Wilczyński
Date: Wed Apr 22 2026 - 13:15:36 EST
Hello,
> > > > > +static struct pci_slot_attribute hotplug_slot_attr_uevent = {
> > > > > + .attr = {.name = "uevent", .mode = S_IFREG | 0200},
> > > > > + .show = NULL,
> > > > > + .store = uevent_write_file
> > > > > +};
> > > > I think, you could use the __ATTR_WO() macro here.
> > > Use of the suggested macro is not appropriate
> > Just to expand on the "not appropriate" bit here.
> >
> > Not wanting to change the name to have the _store suffix would be fine.
> >
> > The __ATTR() would work here. But, this file is old and wanting to
> > keep the style aligned with rest of it would be fine, too.
> >
> > So, both of these reasons would be fine, to avoid using any new macro.
[...]
>
> Hello Krzysztof, let me first apologize to you in the way I said it. I
> should have elaborated the reasoning the way you did. I am open to making
> the changing if anyone else feels it is a better way.
Oh, no worries. No hard feelings. :)
I just wanted to add a little bit more details for posterity.
Thank you!
Krzysztof