]> git.karo-electronics.de Git - linux-beck.git/commitdiff
CFQ: make two functions static
authorPaul Bolle <pebolle@tiscali.nl>
Mon, 6 Jun 2011 03:07:54 +0000 (05:07 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 6 Jun 2011 03:57:25 +0000 (05:57 +0200)
Correctly suggested by sparse.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/cfq-iosched.c

index 000719c484c3e1245360e34e192685dc7a81851a..2b2d7a9a42ab2e6b33826c09941bd90f3f5544c7 100644 (file)
@@ -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;