From: Mike Marciniszyn Date: Fri, 2 Feb 2018 16:45:53 +0000 (-0800) Subject: LU-10560 llite: remove extra headers from llite_mmap.c X-Git-Tag: 2.10.59~126 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=aae9a90ce7c967c208c482e0ef500c5115017388;p=fs%2Flustre-release.git LU-10560 llite: remove extra headers from llite_mmap.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/llite_mmap.o In file included from lustre/llite/llite_mmap.c:41: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 was included twice but we don't need anything from that header. Same for and a number of other extraneous headers. Sort headers alphabetically so it is easier to avoid duplicates. Test-Parameters: trivial Change-Id: Ic24a58bdaec16f92d7bea9c24172796031cad471 Signed-off-by: Mike Marciniszyn Reviewed-on: https://review.whamcloud.com/31150 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Dmitry Eremin --- diff --git a/lustre/llite/llite_mmap.c b/lustre/llite/llite_mmap.c index 7aee5ad..9dc934a 100644 --- a/lustre/llite/llite_mmap.c +++ b/lustre/llite/llite_mmap.c @@ -30,21 +30,10 @@ * Lustre is a trademark of Sun Microsystems, Inc. */ -#include -#include -#include -#include -#include #include -#include -#include -#include - -#include -#include -#include +#include +#include #include -#include #define DEBUG_SUBSYSTEM S_LLITE