From 8e718fde2f35312c624828c375462bddf67854a3 Mon Sep 17 00:00:00 2001 From: Mike Marciniszyn Date: Fri, 2 Feb 2018 08:45:53 -0800 Subject: [PATCH] LU-10560 llite: remove extra headers from llite_mmap.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. Lustre-change: https://review.whamcloud.com/31150 Lustre-commit: aae9a90ce7c967c208c482e0ef500c5115017388 Test-Parameters: trivial Change-Id: Ic24a58bdaec16f92d7bea9c24172796031cad471 Signed-off-by: Mike Marciniszyn Reviewed-by: Andreas Dilger Reviewed-by: James Simmons Reviewed-by: Dmitry Eremin Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/31924 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond --- lustre/llite/llite_mmap.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lustre/llite/llite_mmap.c b/lustre/llite/llite_mmap.c index e76f3e4..0fff9b9 100644 --- a/lustre/llite/llite_mmap.c +++ b/lustre/llite/llite_mmap.c @@ -30,20 +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 #define DEBUG_SUBSYSTEM S_LLITE -- 1.8.3.1