Remove headers from linux-debug.c that are no longer (or were possibly
never) needed. This avoids a compile problem with 4.14 kernels:
CC [M] lustre/libcfs/libcfs/linux/linux-debug.o
In file included from lustre/libcfs/libcfs/linux/linux-debug.c:50:0:
./arch/x86/include/asm/uaccess.h:31:9: In function set_fs():
error: dereferencing pointer to incomplete type
current->thread.addr_limit = fs;
It turns out <asm/uaccess.h> was included twice but we don't need
anything from that header. Same for <linux/stat.h> and a number of
other extraneous headers.
Sort headers alphabetically so it is easier to avoid duplicates.
Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I751e796913624cd8c9c95052abe4ecbb823ebbe5
Reviewed-on: https://review.whamcloud.com/31007
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
* Author: Phil Schwan <phil@clusterfs.com>
*/
* Author: Phil Schwan <phil@clusterfs.com>
*/
-#include <linux/module.h>
+#include <linux/errno.h>
+#include <linux/interrupt.h>
+#include <linux/kallsyms.h>
+#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/notifier.h>
-#include <linux/kernel.h>
-#include <linux/mm.h>
-#include <linux/string.h>
-#include <linux/stat.h>
-#include <linux/errno.h>
#ifdef HAVE_KERNEL_LOCKED
#include <linux/smp_lock.h>
#endif
#ifdef HAVE_KERNEL_LOCKED
#include <linux/smp_lock.h>
#endif
+#include <linux/string.h>
#include <linux/unistd.h>
#include <linux/unistd.h>
-#include <linux/interrupt.h>
-#include <asm/uaccess.h>
-#include <linux/completion.h>
-
-#include <linux/fs.h>
-#include <linux/stat.h>
-#include <asm/uaccess.h>
-#include <linux/version.h>
# define DEBUG_SUBSYSTEM S_LNET
# define DEBUG_SUBSYSTEM S_LNET
-#include <linux/kallsyms.h>
-
char lnet_debug_log_upcall[1024] = "/usr/lib/lustre/lnet_debug_log_upcall";
/**
char lnet_debug_log_upcall[1024] = "/usr/lib/lustre/lnet_debug_log_upcall";
/**