Skip to content

Commit f624506

Browse files
Christoph Hellwigaxboe
authored andcommitted
kthread: unexport kthread_blkcg
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>
1 parent 8277825 commit f624506

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

include/linux/kthread.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,5 @@ void kthread_associate_blkcg(struct cgroup_subsys_state *css);
222222
struct cgroup_subsys_state *kthread_blkcg(void);
223223
#else
224224
static inline void kthread_associate_blkcg(struct cgroup_subsys_state *css) { }
225-
static inline struct cgroup_subsys_state *kthread_blkcg(void)
226-
{
227-
return NULL;
228-
}
229225
#endif
230226
#endif /* _LINUX_KTHREAD_H */

kernel/kthread.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,5 +1522,4 @@ struct cgroup_subsys_state *kthread_blkcg(void)
15221522
}
15231523
return NULL;
15241524
}
1525-
EXPORT_SYMBOL(kthread_blkcg);
15261525
#endif

0 commit comments

Comments
 (0)