]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 07:12:46 +0000 (09:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 07:12:46 +0000 (09:12 +0200)
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 <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/zram/zram_drv.c

index ebf5a45a0277c63035cb1825af4a04f2878d8b84..558e245fab0cda76a7a29438054e7cd74504fdf0 100644 (file)
@@ -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,