diff options
author | Joe Perches <joe@perches.com> | 2020-09-16 23:40:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-02 14:24:40 +0300 |
commit | 6284a6e8940341beb71ea7970388418eb3dd473d (patch) | |
tree | 470055d264f170197598a0a3b77ef3221143686e /drivers/base/node.c | |
parent | e015e036aea58fe5b7f92d2d4fff9f4364e649c8 (diff) | |
download | linux-6284a6e8940341beb71ea7970388418eb3dd473d.tar.xz |
drivers core: node: Use a more typical macro definition style for ACCESS_ATTR
Remove the trailing semicolon from the macro and add it to its uses.
Signed-off-by: Joe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/faf51a671160cf884efa68fb458d3e8a44b1a7a7.1600285923.git.joe@perches.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/node.c')
-rw-r--r-- | drivers/base/node.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index 6366f94f8afb..9b0c257554fd 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -165,12 +165,12 @@ static ssize_t name##_show(struct device *dev, \ return sysfs_emit(buf, "%u\n", \ to_access_nodes(dev)->hmem_attrs.name); \ } \ -static DEVICE_ATTR_RO(name); +static DEVICE_ATTR_RO(name) -ACCESS_ATTR(read_bandwidth) -ACCESS_ATTR(read_latency) -ACCESS_ATTR(write_bandwidth) -ACCESS_ATTR(write_latency) +ACCESS_ATTR(read_bandwidth); +ACCESS_ATTR(read_latency); +ACCESS_ATTR(write_bandwidth); +ACCESS_ATTR(write_latency); static struct attribute *access_attrs[] = { &dev_attr_read_bandwidth.attr, |