Whamcloud - gitweb
LU-6245 gss: remove libcfs.h from gss utilities code 68/15368/4
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 22 Jun 2015 14:50:13 +0000 (10:50 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 10 Jul 2015 02:57:28 +0000 (02:57 +0000)
The gss utility code has nearly all the user land headers
it needs. No need to include libcfs.h anymore.

Change-Id: I2d08d8bf7d4f6165134eb8d445563497db3bf65d
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/15368
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Sebastien Buisson <sebastien.buisson@bull.net>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/gss/lgss_utils.h
lustre/utils/gss/lsupport.h

index 01405e6..eaa30cd 100644 (file)
@@ -43,8 +43,6 @@
 #include <stdint.h>
 #include <gssapi/gssapi.h>
 
-#include <libcfs/libcfs.h>
-
 #define LGSS_SVC_MGS_STR        "lustre_mgs"
 #define LGSS_SVC_MDS_STR        "lustre_mds"
 #define LGSS_SVC_OSS_STR        "lustre_oss"
@@ -102,13 +100,13 @@ void __logmsg_gss(loglevel_t level, const char *func, const gss_OID mech,
 
 #define logmsg(loglevel, format, args...)                               \
 do {                                                                    \
-        if (unlikely(loglevel <= g_log_level))                          \
+       if (loglevel <= g_log_level)                                    \
                 __logmsg(loglevel, __FUNCTION__, format, ##args);       \
 } while (0)
 
 #define logmsg_gss(loglevel, mech, major, minor, format, args...)       \
 do {                                                                    \
-        if (unlikely(loglevel <= g_log_level))                          \
+       if (loglevel <= g_log_level)                                    \
                 __logmsg_gss(loglevel, __FUNCTION__, mech,              \
                              major, minor, format, ##args);             \
 } while (0)
index 5a9df50..0745ad1 100644 (file)
 #ifndef __LSUPPORT_H__
 #define __LSUPPORT_H__
 
+#include <assert.h>
 #include <unistd.h>
 #include <stdint.h>
 
-#include <libcfs/libcfs.h>
 #include <lnet/types.h>
 
 #define GSSD_CLI        (0)