From: Benjamin Herrenschmidt Date: Mon, 6 May 2013 02:02:05 +0000 (+1000) Subject: powerpc/cell/spufs: Fix status attribute permission X-Git-Tag: firefly_0821_release~3680^2~475^2~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=96cf3f66debbff7bc880ea747c10eef2d977a6fe;p=firefly-linux-kernel-4.4.55.git powerpc/cell/spufs: Fix status attribute permission We are registering the attribute with permission 0644 but it doesn't have a store callback, which causes WARN_ON's during boot. Fix the permission. Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index 8b1213993b10..f85db3a69b4a 100644 --- a/arch/powerpc/platforms/cell/spu_base.c +++ b/arch/powerpc/platforms/cell/spu_base.c @@ -715,7 +715,7 @@ static ssize_t spu_stat_show(struct device *dev, spu->stats.libassist); } -static DEVICE_ATTR(stat, 0644, spu_stat_show, NULL); +static DEVICE_ATTR(stat, 0444, spu_stat_show, NULL); #ifdef CONFIG_KEXEC