projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
575cfc6
)
floppy: cmos attribute should be static
author
Stephen Hemminger
<shemminger@vyatta.com>
Tue, 15 Jun 2010 11:21:11 +0000
(13:21 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:15:37 +0000
(18:15 +0200)
As reported by sparse, cmos attribute is local.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/floppy.c
patch
|
blob
|
history
diff --git
a/drivers/block/floppy.c
b/drivers/block/floppy.c
index 9b4746871227d622dc4cdf1ba8e68547d8e9e9b5..975fac3669c5008ac897e92820339cd0f50b5f53 100644
(file)
--- 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)
{