From 232b5c4d493528235a025c3c98778a8ecf529ed0 Mon Sep 17 00:00:00 2001 From: WangYuli Date: Thu, 9 Jan 2025 21:36:55 +0800 Subject: [PATCH] binder: Export close_fd_get_file and can_nice Fix follow compile errors: ERROR: modpost: "close_fd_get_file" [drivers/android/binder_linux.ko] undefined! ERROR: modpost: "can_nice" [drivers/android/binder_linux.ko] undefined! Signed-off-by: WangYuli --- fs/file.c | 1 + kernel/sched/core.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/file.c b/fs/file.c index bd817e31d798..32efaebea672 100644 --- a/fs/file.c +++ b/fs/file.c @@ -785,6 +785,7 @@ struct file *close_fd_get_file(unsigned int fd) return file; } +EXPORT_SYMBOL_GPL(close_fd_get_file); void do_close_on_exec(struct files_struct *files) { diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 278d7390594e..475fd87cea5f 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7271,6 +7271,7 @@ int can_nice(const struct task_struct *p, const int nice) { return is_nice_reduction(p, nice) || capable(CAP_SYS_NICE); } +EXPORT_SYMBOL_GPL(can_nice); #ifdef __ARCH_WANT_SYS_NICE