[RH7,10/32] userns: move EXPORT_SYMBOL closer to current_in_userns

Submitted by Pavel Tikhomirov on June 8, 2020, 5:05 p.m.

Details

Message ID 20200608170602.308872-11-ptikhomirov@virtuozzo.com
State New
Series "port nsfs from vz8"
Headers show

Commit Message

Pavel Tikhomirov June 8, 2020, 5:05 p.m.
Looks like it was accidentally moved far away from where it has to be.
Moving it back helps to apply next patches cleaner.

https://jira.sw.ru/browse/PSBM-102357

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
---
 kernel/user_namespace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index 7445f1ead437..824e0cd0b7dd 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -1024,6 +1024,7 @@  bool current_in_userns(const struct user_namespace *target_ns)
 	}
 	return false;
 }
+EXPORT_SYMBOL(current_in_userns);
 
 static void *userns_get(struct task_struct *task)
 {
@@ -1077,7 +1078,6 @@  static unsigned int userns_inum(void *ns)
 	struct user_namespace *user_ns = ns;
 	return user_ns->proc_inum;
 }
-EXPORT_SYMBOL(current_in_userns);
 
 const struct proc_ns_operations userns_operations = {
 	.name		= "user",