From 57b752e611d5bd3b40df8c8397de322ceb65c8e0 Mon Sep 17 00:00:00 2001 From: Mateusz Majewski Date: Thu, 25 Nov 2021 14:32:07 +0100 Subject: [PATCH] kdbus: export needed symbols for out-of-tree support We have been asked to move kdbus out-of-tree. It uses a couple unexported symbols, so we need to (grudgingly) export them. Change-Id: Ide04c46bbc71f8fffbdefca68959e1048af1c905 Signed-off-by: Mateusz Majewski Signed-off-by: Marek Szyprowski --- fs/namespace.c | 3 +++ mm/memfd.c | 1 + 2 files changed, 4 insertions(+) diff --git a/fs/namespace.c b/fs/namespace.c index bfc5cff0..2323bd5 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2045,6 +2045,7 @@ struct vfsmount *collect_mounts(const struct path *path) return ERR_CAST(tree); return &tree->mnt; } +EXPORT_SYMBOL_GPL(collect_mounts); static void free_mnt_ns(struct mnt_namespace *); static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *, bool); @@ -2075,6 +2076,7 @@ void drop_collected_mounts(struct vfsmount *mnt) unlock_mount_hash(); namespace_unlock(); } +EXPORT_SYMBOL_GPL(drop_collected_mounts); static bool has_locked_children(struct mount *mnt, struct dentry *dentry) { @@ -2146,6 +2148,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg, } return 0; } +EXPORT_SYMBOL_GPL(iterate_mounts); static void lock_mnt_tree(struct mount *mnt) { diff --git a/mm/memfd.c b/mm/memfd.c index 2dba2cb..d6b882b 100644 --- a/mm/memfd.c +++ b/mm/memfd.c @@ -261,6 +261,7 @@ long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg) return error; } +EXPORT_SYMBOL_GPL(memfd_fcntl); #define MFD_NAME_PREFIX "memfd:" #define MFD_NAME_PREFIX_LEN (sizeof(MFD_NAME_PREFIX) - 1) -- 2.7.4