]> git.baikalelectronics.ru Git - kernel.git/commitdiff
kthread: unexport kthread_blkcg
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Apr 2022 04:27:23 +0000 (06:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 May 2022 20:06:20 +0000 (14:06 -0600)
kthread_blkcg is only used by the built-in blk-cgroup code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220420042723.1010598-16-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/kthread.h
kernel/kthread.c

index de5d75bafd6651240d86bed578eef16d77f290a9..30e5bec81d2b6246c4cfdb6ef0aecfb46f046e2b 100644 (file)
@@ -222,9 +222,5 @@ void kthread_associate_blkcg(struct cgroup_subsys_state *css);
 struct cgroup_subsys_state *kthread_blkcg(void);
 #else
 static inline void kthread_associate_blkcg(struct cgroup_subsys_state *css) { }
-static inline struct cgroup_subsys_state *kthread_blkcg(void)
-{
-       return NULL;
-}
 #endif
 #endif /* _LINUX_KTHREAD_H */
index 50265f69a1354f174ca91d92dc9a440e3cb5a943..544fd4097406892d9280b9acb37303e231d0b141 100644 (file)
@@ -1522,5 +1522,4 @@ struct cgroup_subsys_state *kthread_blkcg(void)
        }
        return NULL;
 }
-EXPORT_SYMBOL(kthread_blkcg);
 #endif