]> granicus.if.org Git - zfs/commitdiff
Cleanup in cred.h
authortuxoko <tuxoko@gmail.com>
Wed, 14 Sep 2016 23:59:31 +0000 (16:59 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 14 Sep 2016 23:59:31 +0000 (16:59 -0700)
Remove the code that doesn't make any sense.

Reviewed-by: Brian Behlendorf <behlendorf@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #569

include/sys/cred.h

index 4f62b00fd7122b6de8973ef9c266a3befa8fa283..58f7aafdaf4d31c7a29b48e803f0f52657d3de6e 100644 (file)
@@ -36,18 +36,6 @@ typedef struct cred cred_t;
 
 #ifdef HAVE_KUIDGID_T
 
-/*
- * Linux 3.8+ uses typedefs to redefine uid_t and gid_t. We have to rename the
- * typedefs to recover the original types. We then can use them provided that
- * we are careful about translating from k{g,u}id_t to the original versions
- * and vice versa.
- */
-#define        uid_t           xuid_t
-#define        gid_t           xgid_t
-#include <linux/uidgid.h>
-#undef uid_t
-#undef gid_t
-
 #define        KUID_TO_SUID(x)         (__kuid_val(x))
 #define        KGID_TO_SGID(x)         (__kgid_val(x))
 #define        SUID_TO_KUID(x)         (KUIDT_INIT(x))