Whamcloud - gitweb
LU-10560 llite: remove extra headers from rw26.c 51/31151/3
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 2 Feb 2018 16:45:54 +0000 (08:45 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 9 Feb 2018 05:58:45 +0000 (05:58 +0000)
commitb8e87b5a1c17048a760ce9809fde904ca6dc449d
tree06618a378972fddfd0e5bb5b85311c3fd73049e2
parentaae9a90ce7c967c208c482e0ef500c5115017388
LU-10560 llite: remove extra headers from rw26.c

Remove headers from llite_mmap.c that are no longer (or were possibly
never) needed.  This avoids a compile problem with 4.14 kernels:

CC [M]  lustre/llite/rw26.o
In file included from lustre/llite/rw26.c:43:0:
./arch/x86/include/asm/uaccess.h: In function ‘set_fs’:
./arch/x86/include/asm/uaccess.h:31:9:
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.

Change-Id: I4cbe2c1c7289466396b2bb2eac3c475d1041a283
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-on: https://review.whamcloud.com/31151
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
lustre/llite/rw26.c