From: Christoph Hellwig Date: Wed, 20 Apr 2022 04:27:23 +0000 (+0200) Subject: kthread: unexport kthread_blkcg X-Git-Tag: v6.1-rc5~1167^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f624506f98b198e65b44da303f44974590fb16c0;p=platform%2Fkernel%2Flinux-starfive.git kthread: unexport kthread_blkcg kthread_blkcg is only used by the built-in blk-cgroup code. Signed-off-by: Christoph Hellwig Acked-by: Tejun Heo Link: https://lore.kernel.org/r/20220420042723.1010598-16-hch@lst.de Signed-off-by: Jens Axboe --- diff --git a/include/linux/kthread.h b/include/linux/kthread.h index de5d75b..30e5bec 100644 --- a/include/linux/kthread.h +++ b/include/linux/kthread.h @@ -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 */ diff --git a/kernel/kthread.c b/kernel/kthread.c index 50265f6..544fd40 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -1522,5 +1522,4 @@ struct cgroup_subsys_state *kthread_blkcg(void) } return NULL; } -EXPORT_SYMBOL(kthread_blkcg); #endif