From ba8f0872bc058a2e8e2d4f3c26d6081c9273bd39 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 --- fs/namespace.c | 3 +++ mm/memfd.c | 1 + 2 files changed, 4 insertions(+) diff --git a/fs/namespace.c b/fs/namespace.c index d946298..9f80d88 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1910,6 +1910,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); @@ -1940,6 +1941,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) { @@ -2011,6 +2013,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 475d095..7b021ba 100644 --- a/mm/memfd.c +++ b/mm/memfd.c @@ -256,6 +256,7 @@ long memfd_fcntl(struct file *file, unsigned int cmd, unsigned long 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