aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-08-13 10:53:17 -0400
committerJens Axboe <axboe@kernel.dk>2012-10-30 03:32:43 -0400
commit2911758f14e36a7cd5c7367f951dcb8817552f71 (patch)
treeab68a92ffdbd8d7fdf62129547326c6de8a680cd /drivers/block/xen-blkback
parent975927b942c932bd839ed07e5d40b4037d816844 (diff)
xen/blkback: Fix compile warning
drivers/block/xen-blkback/xenbus.c:260:5: warning: symbol 'xenvbd_sysfs_addif' was not declared. Should it be static? drivers/block/xen-blkback/xenbus.c:284:6: warning: symbol 'xenvbd_sysfs_delif' was not declared. Should it be static? Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkback')
-rw-r--r--drivers/block/xen-blkback/xenbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c
index 4f66171c6683..d0fed5582a42 100644
--- a/drivers/block/xen-blkback/xenbus.c
+++ b/drivers/block/xen-blkback/xenbus.c
@@ -196,7 +196,7 @@ static void xen_blkif_disconnect(struct xen_blkif *blkif)
196 } 196 }
197} 197}
198 198
199void xen_blkif_free(struct xen_blkif *blkif) 199static void xen_blkif_free(struct xen_blkif *blkif)
200{ 200{
201 if (!atomic_dec_and_test(&blkif->refcnt)) 201 if (!atomic_dec_and_test(&blkif->refcnt))
202 BUG(); 202 BUG();
@@ -257,7 +257,7 @@ static struct attribute_group xen_vbdstat_group = {
257VBD_SHOW(physical_device, "%x:%x\n", be->major, be->minor); 257VBD_SHOW(physical_device, "%x:%x\n", be->major, be->minor);
258VBD_SHOW(mode, "%s\n", be->mode); 258VBD_SHOW(mode, "%s\n", be->mode);
259 259
260int xenvbd_sysfs_addif(struct xenbus_device *dev) 260static int xenvbd_sysfs_addif(struct xenbus_device *dev)
261{ 261{
262 int error; 262 int error;
263 263
@@ -281,7 +281,7 @@ fail1: device_remove_file(&dev->dev, &dev_attr_physical_device);
281 return error; 281 return error;
282} 282}
283 283
284void xenvbd_sysfs_delif(struct xenbus_device *dev) 284static void xenvbd_sysfs_delif(struct xenbus_device *dev)
285{ 285{
286 sysfs_remove_group(&dev->dev.kobj, &xen_vbdstat_group); 286 sysfs_remove_group(&dev->dev.kobj, &xen_vbdstat_group);
287 device_remove_file(&dev->dev, &dev_attr_mode); 287 device_remove_file(&dev->dev, &dev_attr_mode);