Skip to content

Commit

Permalink
CFQ: make two functions static
Browse files Browse the repository at this point in the history
Correctly suggested by sparse.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
  • Loading branch information
Paul Bolle authored and Jens Axboe committed Jun 6, 2011
1 parent 9b50902 commit 8aea454
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8aea454

Please sign in to comment.