From: Stephen Hemminger Date: Tue, 15 Jun 2010 11:21:11 +0000 (+0200) Subject: floppy: cmos attribute should be static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=be1c0fbfb4e84d0b02903cbc6358124586605a1b;p=openwrt%2Fstaging%2Fblogic.git floppy: cmos attribute should be static As reported by sparse, cmos attribute is local. Signed-off-by: Stephen Hemminger Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 9b4746871227..975fac3669c5 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -4127,7 +4127,7 @@ static ssize_t floppy_cmos_show(struct device *dev, return sprintf(buf, "%X\n", UDP->cmos); } -DEVICE_ATTR(cmos, S_IRUGO, floppy_cmos_show, NULL); +static DEVICE_ATTR(cmos, S_IRUGO, floppy_cmos_show, NULL); static void floppy_device_release(struct device *dev) {