Whamcloud - gitweb
LU-6245 tests: remove libcfs.h from lctl code 08/15208/2
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 10 Jun 2015 23:55:18 +0000 (19:55 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 8 Jul 2015 17:22:19 +0000 (17:22 +0000)
Since user land libcfs is mostly gone libcfs.h can be
removed from the code that is used by lctl.

Change-Id: Ieb2f3873177dfc2c7fa3036568e263f4ba27e1ce
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/15208
Reviewed-by: frank zago <fzago@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/user-time.h
lnet/utils/debug.c
lnet/utils/portals.c

index ae8f8ea..bf0fdd9 100644 (file)
 #ifndef __LIBCFS_USER_TIME_H__
 #define __LIBCFS_USER_TIME_H__
 
-#ifndef __LIBCFS_LIBCFS_H__
-#error Do not #include this file directly. #include <libcfs/libcfs.h> instead
-#endif
-
 /* Portable time API */
 
 /*
index a54e514..2abc044 100644 (file)
 #define _GNU_SOURCE
 #endif
 
+#include <errno.h>
+#include <fcntl.h>
+#include <limits.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/ioctl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <time.h>
 #include <unistd.h>
-#include <libcfs/libcfs.h>
+
+#include <linux/types.h>
+
 #include <libcfs/util/ioctl.h>
+#include <libcfs/user-time.h>
+#include <libcfs/libcfs_debug.h>
 #include <lnet/lnetctl.h>
 
 static char rawbuf[8192];
index bc06446..9908a98 100644 (file)
 #include <sys/time.h>
 #include <time.h>
 #include <linux/types.h>
-#include <libcfs/libcfs.h>
+
 #include <libcfs/util/string.h>
 #include <libcfs/util/ioctl.h>
+#include <libcfs/user-time.h>
+#include <libcfs/libcfs_debug.h>
 #include <lnet/lnetctl.h>
 #include <lnet/socklnd.h>
 #include <lnet/lnet.h>