Re: [PATCH v7 1/4] workqueue: Simplify unbound sysfs attribute registration
From: Tejun Heo
Date: Fri Oct 23 2026 - 17:07:35 EST
Hello, Tvrtko.
On Thu, Oct 22, 2026 at 10:38:45AM +0100, Tvrtko Ursulin wrote:
> +/* Avoid naming clash with the other cpumask */
> +static struct device_attribute dev_attr_unbound_cpumask =
> + __ATTR(cpumask, 0644, unbound_cpumask_show, unbound_cpumask_store);
Can this be DEVICE_ATTR_RW_NAMED() instead?
static DEVICE_ATTR_RW_NAMED(unbound_cpumask, "cpumask");
It expands to the same dev_attr_unbound_cpumask with the same file name
and handlers, and the comment can go.
Thanks.
--
tejun