backport: remove current_user_ns backport
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 21 Sep 2016 13:21:36 +0000 (16:21 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Feb 2017 14:00:43 +0000 (15:00 +0100)
In v4.6, the current_user_ns macro was changed to a function, so the
ifdef doesn't work.  To make things easy, this backport is not needed
anymore, since current_user_ns was introduced before v3.0 and we don't
support anything earlier than that.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/backport-include/linux/cred.h [deleted file]

diff --git a/backport/backport-include/linux/cred.h b/backport/backport-include/linux/cred.h
deleted file mode 100644 (file)
index 2fbcf01..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef __BACKPORT_LINUX_CRED_H
-#define __BACKPORT_LINUX_CRED_H
-#include_next <linux/cred.h>
-#include <linux/version.h>
-
-#ifndef current_user_ns
-#define current_user_ns()      (current->nsproxy->user_ns)
-#endif
-
-#endif /* __BACKPORT_LINUX_CRED_H */