From fdad6ad437dd79255d44eebd0eb3538a6985e3a1 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 c7fbb50..ebfd8b4 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1888,6 +1888,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); @@ -1918,6 +1919,7 @@ void drop_collected_mounts(struct vfsmount *mnt) unlock_mount_hash(); namespace_unlock(); } +EXPORT_SYMBOL_GPL(drop_collected_mounts); /** * clone_private_mount - create a private clone of a path @@ -1961,6 +1963,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 2647c89..b665a1a 100644 --- a/mm/memfd.c +++ b/mm/memfd.c @@ -240,6 +240,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