From: NeilBrown Date: Mon, 21 May 2018 04:35:13 +0000 (+1000) Subject: staging: lustre: don't include libcfs.h in lnet/lib-lnet.h X-Git-Tag: v4.18-rc1~83^2~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f28db699f7cf8ac67f687410ba83c0eb202cc7f;p=thirdparty%2Flinux.git staging: lustre: don't include libcfs.h in lnet/lib-lnet.h We want to be more focused in what is included where. So we remove libcfs.h from where it isn't needed. Signed-off-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h index 07f7d306ba9aa..17534a76362ae 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h @@ -39,6 +39,7 @@ #ifndef __LIBCFS_DEBUG_H__ #define __LIBCFS_DEBUG_H__ +#include #include /* diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h index d6fc3164e7e7c..a0c3413f4e6e4 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_fail.h @@ -33,6 +33,9 @@ #ifndef _LIBCFS_FAIL_H #define _LIBCFS_FAIL_H +#include +#include + extern unsigned long cfs_fail_loc; extern unsigned int cfs_fail_val; extern int cfs_fail_err; diff --git a/drivers/staging/lustre/include/linux/lnet/lib-lnet.h b/drivers/staging/lustre/include/linux/lnet/lib-lnet.h index cc0150ef84fef..973c17a1c4a15 100644 --- a/drivers/staging/lustre/include/linux/lnet/lib-lnet.h +++ b/drivers/staging/lustre/include/linux/lnet/lib-lnet.h @@ -36,7 +36,11 @@ #ifndef __LNET_LIB_LNET_H__ #define __LNET_LIB_LNET_H__ -#include +#include +#include +#include +#include + #include #include #include diff --git a/drivers/staging/lustre/lnet/lnet/config.c b/drivers/staging/lustre/lnet/lnet/config.c index 0aea268a4f1c0..55ecc1998b7e2 100644 --- a/drivers/staging/lustre/lnet/lnet/config.c +++ b/drivers/staging/lustre/lnet/lnet/config.c @@ -34,6 +34,7 @@ #define DEBUG_SUBSYSTEM S_LNET #include #include +#include #include struct lnet_text_buf { /* tmp struct for parsing routes */