Skip to content

Commit

Permalink
zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gregkh committed Jun 13, 2017
1 parent b46c733 commit f40609d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/zram/zram_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ static ssize_t hot_add_show(struct class *class,
return ret;
return scnprintf(buf, PAGE_SIZE, "%d\n", ret);
}
static CLASS_ATTR(hot_add, 0400, hot_add_show, NULL);
static CLASS_ATTR_RO(hot_add);

static ssize_t hot_remove_store(struct class *class,
struct class_attribute *attr,
Expand Down

0 comments on commit f40609d

Please sign in to comment.