summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-09-26 11:02:12 -0700
committerJens Axboe <axboe@kernel.dk>2017-09-26 12:07:24 -0600
commit0b508bc926bdced678febee2a2b8cdba0a19e481 (patch)
tree79a143e9857e44b1d28628bf88e188cd476db650 /include
parent9979d545c93653770984806e9bfcec1df53a9d3d (diff)
block: fix a build error
The code is only for blkcg not for all cgroups Fixes: d4478e92d618 ("block/loop: make loop cgroup aware") Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kthread.h b/include/linux/kthread.h
index bd4369c83dfb..fb201842c635 100644
--- a/include/linux/kthread.h
+++ b/include/linux/kthread.h
@@ -199,7 +199,7 @@ bool kthread_cancel_delayed_work_sync(struct kthread_delayed_work *work);
void kthread_destroy_worker(struct kthread_worker *worker);
-#ifdef CONFIG_CGROUPS
+#ifdef CONFIG_BLK_CGROUP
void kthread_associate_blkcg(struct cgroup_subsys_state *css);
struct cgroup_subsys_state *kthread_blkcg(void);
#else