staging: lustre: remove cruft from libcfs/linux/libcfs.h
authorNeilBrown <neilb@suse.com>
Thu, 29 Mar 2018 04:26:48 +0000 (15:26 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:52:52 +0000 (14:52 +0200)
These defines are unused or nearly unused, and do not
help at all.

Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/curproc.h
drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h
drivers/staging/lustre/lnet/libcfs/tracefile.c

index 4702956805a6f5607deb2c5260e6cd30779c3abf..d6e4f47b5daf532a8c06f2326e94c2c8422a9b76 100644 (file)
@@ -43,8 +43,6 @@
 /*
  * Plus, platform-specific constant
  *
- * CFS_CURPROC_COMM_MAX,
- *
  * and opaque scalar type
  *
  * kernel_cap_t
index c39c34d743827b151cfaadcdd9ceda4d84f3ee6c..0dbd01617865e841d436f651ed77b62437e020a6 100644 (file)
@@ -81,8 +81,6 @@
 #include <stdarg.h>
 #include "linux-cpu.h"
 
-#define LUSTRE_TRACE_SIZE (THREAD_SIZE >> 5)
-
 #if !defined(__x86_64__)
 # ifdef __ia64__
 #  define CDEBUG_STACK() (THREAD_SIZE -                                 \
@@ -114,19 +112,4 @@ do {                                                                   \
 #define CDEBUG_STACK() (0L)
 #endif /* __x86_64__ */
 
-#define __current_nesting_level() (0)
-
-/**
- * Platform specific declarations for cfs_curproc API (libcfs/curproc.h)
- *
- * Implementation is in linux-curproc.c
- */
-#define CFS_CURPROC_COMM_MAX (sizeof((struct task_struct *)0)->comm)
-
-#include <linux/capability.h>
-
-#ifndef WITH_WATCHDOG
-#define WITH_WATCHDOG
-#endif
-
 #endif /* _LINUX_LIBCFS_H */
index 129430e74d00a8a016ecbe710d6135aa58d0ec28..514e1845740e14f9abeea2052b16365a079909ae 100644 (file)
@@ -328,7 +328,7 @@ int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata,
                goto console;
        }
 
-       depth = __current_nesting_level();
+       depth = 0;
        known_size = strlen(file) + 1 + depth;
        if (msgdata->msg_fn)
                known_size += strlen(msgdata->msg_fn) + 1;