Whamcloud - gitweb
LU-5710 all: second batch of corrected typos and grammar errors
[fs/lustre-release.git] / lustre / ptlrpc / errno.c
index 83aab13..50b89aa 100644 (file)
@@ -22,7 +22,7 @@
 /*
  * Copyright (C) 2011 FUJITSU LIMITED.  All rights reserved.
  *
- * Copyright (c) 2013, Intel Corporation.
+ * Copyright (c) 2013, 2014, Intel Corporation.
  */
 
 #include <libcfs/libcfs.h>
@@ -172,7 +172,6 @@ static int lustre_errno_hton_mapping[] = {
        [EKEYREJECTED]          = LUSTRE_EKEYREJECTED,
        [EOWNERDEAD]            = LUSTRE_EOWNERDEAD,
        [ENOTRECOVERABLE]       = LUSTRE_ENOTRECOVERABLE,
-#ifdef __KERNEL__
        [ERESTARTSYS]           = LUSTRE_ERESTARTSYS,
        [ERESTARTNOINTR]        = LUSTRE_ERESTARTNOINTR,
        [ERESTARTNOHAND]        = LUSTRE_ERESTARTNOHAND,
@@ -188,7 +187,6 @@ static int lustre_errno_hton_mapping[] = {
        [EJUKEBOX]              = LUSTRE_EJUKEBOX,
        [EIOCBQUEUED]           = LUSTRE_EIOCBQUEUED,
        [EIOCBRETRY]            = LUSTRE_EIOCBRETRY
-#endif
 };
 
 static int lustre_errno_ntoh_mapping[] = {
@@ -321,7 +319,6 @@ static int lustre_errno_ntoh_mapping[] = {
        [LUSTRE_EKEYREJECTED]           = EKEYREJECTED,
        [LUSTRE_EOWNERDEAD]             = EOWNERDEAD,
        [LUSTRE_ENOTRECOVERABLE]        = ENOTRECOVERABLE,
-#ifdef __KERNEL__
        [LUSTRE_ERESTARTSYS]            = ERESTARTSYS,
        [LUSTRE_ERESTARTNOINTR]         = ERESTARTNOINTR,
        [LUSTRE_ERESTARTNOHAND]         = ERESTARTNOHAND,
@@ -337,7 +334,6 @@ static int lustre_errno_ntoh_mapping[] = {
        [LUSTRE_EJUKEBOX]               = EJUKEBOX,
        [LUSTRE_EIOCBQUEUED]            = EIOCBQUEUED,
        [LUSTRE_EIOCBRETRY]             = EIOCBRETRY
-#endif
 };
 
 unsigned int lustre_errno_hton(unsigned int h)