Whamcloud - gitweb
LU-10560 libcfs: remove extra headers from linux-debug.c 23/31923/2
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 2 Feb 2018 16:45:53 +0000 (08:45 -0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 3 May 2018 18:17:38 +0000 (18:17 +0000)
commit9892581f02a9602edf345edb12370d92207ffc87
tree7b3205bceb351325e83c66a29e496b5ff568a95f
parenta8c7a32fd7fc54e9717e23f208b40c8ff93b81e4
LU-10560 libcfs: remove extra headers from linux-debug.c

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.
Lustre-change: https://review.whamcloud.com/31007
Lustre-commit: a4ac52a7d08540802f899b115c74f7b9cdd0c5d7

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I751e796913624cd8c9c95052abe4ecbb823ebbe5
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/31923
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
libcfs/libcfs/linux/linux-debug.c