Skip to content

Commit 8aea454

Browse files
pebolleJens Axboe
authored andcommitted
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>
1 parent 9b50902 commit 8aea454

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎block/cfq-iosched.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,8 @@ static inline struct cfq_group *cfqg_of_blkg(struct blkio_group *blkg)
10041004
return NULL;
10051005
}
10061006

1007-
void cfq_update_blkio_group_weight(void *key, struct blkio_group *blkg,
1008-
unsigned int weight)
1007+
static void cfq_update_blkio_group_weight(void *key, struct blkio_group *blkg,
1008+
unsigned int weight)
10091009
{
10101010
struct cfq_group *cfqg = cfqg_of_blkg(blkg);
10111011
cfqg->new_weight = weight;
@@ -1234,7 +1234,7 @@ static void cfq_release_cfq_groups(struct cfq_data *cfqd)
12341234
* it should not be NULL as even if elevator was exiting, cgroup deltion
12351235
* path got to it first.
12361236
*/
1237-
void cfq_unlink_blkio_group(void *key, struct blkio_group *blkg)
1237+
static void cfq_unlink_blkio_group(void *key, struct blkio_group *blkg)
12381238
{
12391239
unsigned long flags;
12401240
struct cfq_data *cfqd = key;

0 commit comments

Comments
 (0)