]> www.infradead.org Git - users/hch/block.git/commitdiff
kthread: unexport kthread_blkcg blk-cgroup-cleanup
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 07:07:21 +0000 (09:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 19 Apr 2022 14:42:00 +0000 (16:42 +0200)
kthread_blkcg is only used by the built-in blk-cgroup code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
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