]> git.baikalelectronics.ru Git - kernel.git/commit
bfq: fix compile error if CONFIG_CGROUPS=n
authorJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 15:37:05 +0000 (09:37 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 15:39:12 +0000 (09:39 -0600)
commitac8c2f5e194e8857f1d63438776244c2de18df59
treebf5c271fbf873d2605967986a4d6fe5e6e8468c9
parent3b2dd3052b463f3c80f4550b9162d928f9b25523
bfq: fix compile error if CONFIG_CGROUPS=n

If we don't have CGROUPS enabled, the compile ends in the
following misery:

In file included from ../block/bfq-iosched.c:105:0:
../block/bfq-iosched.h:819:22: error: array type has incomplete element type
 extern struct cftype bfq_blkcg_legacy_files[];
                      ^
../block/bfq-iosched.h:820:22: error: array type has incomplete element type
 extern struct cftype bfq_blkg_files[];
                      ^

Move the declarations under the right ifdef.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bfq-iosched.h