Skip to content

Commit 6284a6e

Browse files
JoePerchesgregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/faf51a671160cf884efa68fb458d3e8a44b1a7a7.1600285923.git.joe@perches.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e015e03 commit 6284a6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/base/node.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ static ssize_t name##_show(struct device *dev, \
165165
return sysfs_emit(buf, "%u\n", \
166166
to_access_nodes(dev)->hmem_attrs.name); \
167167
} \
168-
static DEVICE_ATTR_RO(name);
168+
static DEVICE_ATTR_RO(name)
169169

170-
ACCESS_ATTR(read_bandwidth)
171-
ACCESS_ATTR(read_latency)
172-
ACCESS_ATTR(write_bandwidth)
173-
ACCESS_ATTR(write_latency)
170+
ACCESS_ATTR(read_bandwidth);
171+
ACCESS_ATTR(read_latency);
172+
ACCESS_ATTR(write_bandwidth);
173+
ACCESS_ATTR(write_latency);
174174

175175
static struct attribute *access_attrs[] = {
176176
&dev_attr_read_bandwidth.attr,

0 commit comments

Comments
 (0)