From 0922c0084b91799193059a47bfbd215ffd3a4b50 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 21 May 2018 14:35:13 +1000 Subject: [PATCH] staging: lustre: remove libcfs_all from ptlrpc Some files didn't need it at all, others just needed one or two includes. Signed-off-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/lustre/ptlrpc/errno.c | 1 - drivers/staging/lustre/lustre/ptlrpc/events.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/llog_client.c | 2 -- drivers/staging/lustre/lustre/ptlrpc/llog_net.c | 2 -- drivers/staging/lustre/lustre/ptlrpc/nrs.c | 3 ++- drivers/staging/lustre/lustre/ptlrpc/nrs_fifo.c | 3 ++- drivers/staging/lustre/lustre/ptlrpc/pack_generic.c | 2 -- drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c | 6 ++++-- drivers/staging/lustre/lustre/ptlrpc/recover.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec_config.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec_gc.c | 2 +- drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c | 2 +- 14 files changed, 15 insertions(+), 18 deletions(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/errno.c b/drivers/staging/lustre/lustre/ptlrpc/errno.c index 9985e0b..c587fc8 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/errno.c +++ b/drivers/staging/lustre/lustre/ptlrpc/errno.c @@ -26,7 +26,6 @@ * Copyright (c) 2013, Intel Corporation. */ -#include #include /* diff --git a/drivers/staging/lustre/lustre/ptlrpc/events.c b/drivers/staging/lustre/lustre/ptlrpc/events.c index d9d8d96..130bacc 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/events.c +++ b/drivers/staging/lustre/lustre/ptlrpc/events.c @@ -33,7 +33,7 @@ #define DEBUG_SUBSYSTEM S_RPC -#include +#include # ifdef __mips64__ # include # endif diff --git a/drivers/staging/lustre/lustre/ptlrpc/llog_client.c b/drivers/staging/lustre/lustre/ptlrpc/llog_client.c index 3d8a2e5d..946d538 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/llog_client.c +++ b/drivers/staging/lustre/lustre/ptlrpc/llog_client.c @@ -39,8 +39,6 @@ #define DEBUG_SUBSYSTEM S_LOG -#include - #include #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/llog_net.c b/drivers/staging/lustre/lustre/ptlrpc/llog_net.c index 3c6f2f1..b871d9e 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/llog_net.c +++ b/drivers/staging/lustre/lustre/ptlrpc/llog_net.c @@ -43,8 +43,6 @@ #define DEBUG_SUBSYSTEM S_LOG -#include - #include #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/nrs.c b/drivers/staging/lustre/lustre/ptlrpc/nrs.c index 74a5fcf..e09b865 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/nrs.c +++ b/drivers/staging/lustre/lustre/ptlrpc/nrs.c @@ -37,11 +37,12 @@ */ #define DEBUG_SUBSYSTEM S_RPC +#include +#include #include #include #include #include -#include #include "ptlrpc_internal.h" /** diff --git a/drivers/staging/lustre/lustre/ptlrpc/nrs_fifo.c b/drivers/staging/lustre/lustre/ptlrpc/nrs_fifo.c index 4876d07..ff630d9 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/nrs_fifo.c +++ b/drivers/staging/lustre/lustre/ptlrpc/nrs_fifo.c @@ -44,9 +44,10 @@ */ #define DEBUG_SUBSYSTEM S_RPC +#include +#include #include #include -#include #include "ptlrpc_internal.h" /** diff --git a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c b/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c index adf3b8c..6ac9bb5 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c +++ b/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c @@ -41,8 +41,6 @@ #define DEBUG_SUBSYSTEM S_RPC -#include - #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c b/drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c index bff14fb..5310054 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c +++ b/drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c @@ -52,8 +52,10 @@ #define DEBUG_SUBSYSTEM S_RPC -#include - +#include +#include +#include +#include #include #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/recover.c b/drivers/staging/lustre/lustre/ptlrpc/recover.c index 004db15..2ea0a7f 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/recover.c +++ b/drivers/staging/lustre/lustre/ptlrpc/recover.c @@ -36,7 +36,7 @@ */ #define DEBUG_SUBSYSTEM S_RPC -#include +#include #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec.c b/drivers/staging/lustre/lustre/ptlrpc/sec.c index 4af08b2..2564214 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/sec.c +++ b/drivers/staging/lustre/lustre/ptlrpc/sec.c @@ -37,7 +37,7 @@ #define DEBUG_SUBSYSTEM S_SEC -#include +#include #include #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c b/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c index 1f35126..625b952 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c +++ b/drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c @@ -37,7 +37,7 @@ #define DEBUG_SUBSYSTEM S_SEC -#include +#include #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c index 4a37f6e..2389f9a 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/sec_config.c +++ b/drivers/staging/lustre/lustre/ptlrpc/sec_config.c @@ -33,7 +33,7 @@ #define DEBUG_SUBSYSTEM S_SEC -#include +#include #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_gc.c b/drivers/staging/lustre/lustre/ptlrpc/sec_gc.c index fa247d35..2c8bad7 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/sec_gc.c +++ b/drivers/staging/lustre/lustre/ptlrpc/sec_gc.c @@ -37,7 +37,7 @@ #define DEBUG_SUBSYSTEM S_SEC -#include +#include #include #include diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c b/drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c index c1c862a..fd609b6 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c +++ b/drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c @@ -35,7 +35,7 @@ #define DEBUG_SUBSYSTEM S_SEC -#include +#include #include #include -- 2.7.4