Skip to content

Commit f40609d

Browse files
committed
zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()
I missed converting the last zram attribute to CLASS_ATTR_RO() after removing CLASS_ATTR() from the kernel, causing a build breakage. This patch fixes that problem. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b46c733 commit f40609d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/zram/zram_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ static ssize_t hot_add_show(struct class *class,
12931293
return ret;
12941294
return scnprintf(buf, PAGE_SIZE, "%d\n", ret);
12951295
}
1296-
static CLASS_ATTR(hot_add, 0400, hot_add_show, NULL);
1296+
static CLASS_ATTR_RO(hot_add);
12971297

12981298
static ssize_t hot_remove_store(struct class *class,
12991299
struct class_attribute *attr,

0 commit comments

Comments
 (0)