summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2011-06-06 05:07:54 +0200
committerJens Axboe <jaxboe@fusionio.com>2011-06-06 05:57:25 +0200
commit8aea45451b252e4be09ee9974c5658bb47c81625 (patch)
tree7b838405229f32fb7937fac49c95b2d1294fb59b /block
parent9b50902db5eb8a220160fb89e95aa11967998d12 (diff)
downloadlinux-8aea45451b252e4be09ee9974c5658bb47c81625.tar.gz
linux-8aea45451b252e4be09ee9974c5658bb47c81625.tar.bz2
linux-8aea45451b252e4be09ee9974c5658bb47c81625.zip
CFQ: make two functions static
Correctly suggested by sparse. Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block')
-rw-r--r--block/cfq-iosched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 000719c484c3..2b2d7a9a42ab 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -1004,8 +1004,8 @@ static inline struct cfq_group *cfqg_of_blkg(struct blkio_group *blkg)
return NULL;
}
-void cfq_update_blkio_group_weight(void *key, struct blkio_group *blkg,
- unsigned int weight)
+static void cfq_update_blkio_group_weight(void *key, struct blkio_group *blkg,
+ unsigned int weight)
{
struct cfq_group *cfqg = cfqg_of_blkg(blkg);
cfqg->new_weight = weight;
@@ -1234,7 +1234,7 @@ static void cfq_release_cfq_groups(struct cfq_data *cfqd)
* it should not be NULL as even if elevator was exiting, cgroup deltion
* path got to it first.
*/
-void cfq_unlink_blkio_group(void *key, struct blkio_group *blkg)
+static void cfq_unlink_blkio_group(void *key, struct blkio_group *blkg)
{
unsigned long flags;
struct cfq_data *cfqd = key;