Messages in this thread | | | Date | Mon, 4 Dec 2017 08:36:42 +0100 | From | Greg Kroah-Hartman <> | Subject | Re: [GIT PULL] hash addresses printed with %p |
| |
On Mon, Dec 04, 2017 at 10:02:16AM +0800, Dave Young wrote: > +#define __ATTR_IRUSR(_name) { \ > + .attr = { .name = __stringify(_name), .mode = S_IRUSR }, \ > + .show = _name##_show, \ > +}
Ick, no, as others, including Linus, have said, using IRUSER is a pain in the ass to try to look up and remember what it is...
Just use __ATTR() please, it should be fine for what you need to do, which is special-case a sysfs attribute.
thanks,
greg k-h
| |