Messages in this thread Patch in this message | | | Date | Wed, 09 Jun 2010 11:34:54 -0700 | From | Stephen Hemminger <> | Subject | [PATCH 5/8] floppy: cmos attribute should be static |
| |
As reported by sparse, cmos attribute is local.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- a/drivers/block/floppy.c 2010-06-08 23:08:23.326715957 -0700 +++ b/drivers/block/floppy.c 2010-06-08 23:08:29.136934127 -0700 @@ -4127,7 +4127,7 @@ static ssize_t floppy_cmos_show(struct d 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) {
| |