[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YhZcQnsP0aA8RSTs@kroah.com>
Date: Wed, 23 Feb 2022 17:09:38 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: SeongJae Park <sj@...nel.org>
Cc: akpm@...ux-foundation.org, corbet@....net,
skhan@...uxfoundation.org, rientjes@...gle.com,
xhao@...ux.alibaba.com, linux-damon@...zon.com, linux-mm@...ck.org,
linux-doc@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 03/12] mm/damon: Implement a minimal stub for sysfs-based
DAMON interface
On Wed, Feb 23, 2022 at 03:20:42PM +0000, SeongJae Park wrote:
> +static struct kobj_attribute damon_sysfs_ul_range_min_attr =
> + __ATTR(min, 0600, damon_sysfs_ul_range_min_show,
> + damon_sysfs_ul_range_min_store);
> +
> +static struct kobj_attribute damon_sysfs_ul_range_max_attr =
> + __ATTR(max, 0600, damon_sysfs_ul_range_max_show,
> + damon_sysfs_ul_range_max_store);
Can you use __ATTR_RW_MODE() instead here and elsewhere?
thanks,
greg k-h
Powered by blists - more mailing lists