Skip to contentSkip to conversation

lustre: lnet: fix needed headers for lnet headers

PATCH New James Simmons 2 participants 3 messages Jul 24, 2019 – Jul 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lustre: lnet: fix needed headers for lnet headers

The linux kernel now has a sanity check for the global headers and LNet are missing a few headers to allow them to build properly.

---
 include/linux/libcfs/libcfs_fail.h    | 1 +
 include/linux/libcfs/libcfs_private.h | 3 +++
 include/uapi/linux/lnet/lnetst.h      | 2 ++
 3 files changed, 6 insertions(+)
include/linux/libcfs/libcfs_fail.h +1 -0
index 0e73eef..f52a82a 100644
@@ -35,6 +35,7 @@
 
 #include <linux/sched.h>
 #include <linux/wait.h>
+#include <linux/libcfs/libcfs_debug.h>
 
 extern unsigned long cfs_fail_loc;
 extern unsigned int cfs_fail_val;
include/linux/libcfs/libcfs_private.h +3 -0
index 515fd63..2e8cff6 100644
@@ -39,6 +39,9 @@
 #ifndef __LIBCFS_PRIVATE_H__
 #define __LIBCFS_PRIVATE_H__
 
+#include <linux/sched.h>
+#include <linux/libcfs/libcfs_debug.h>
+
 #ifndef DEBUG_SUBSYSTEM
 # define DEBUG_SUBSYSTEM S_UNDEFINED
 #endif
include/uapi/linux/lnet/lnetst.h +2 -0
index 27fcd91..449c5e6 100644
@@ -38,6 +38,8 @@
 #define __LNET_ST_H__
 
 #include <linux/types.h>
+#include <linux/time.h>
+#include <linux/lnet/lnet-types.h>
 
 #define LST_FEAT_NONE		(0)
 #define LST_FEAT_BULK_LEN	(1 << 0)	/* enable variable page size */
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 lustre: lnet: fix needed headers for lnet headers

Quoted 2 lines · James Simmons

The linux kernel now has a sanity check for the global headers and LNet are missing a few headers to allow them to build properly.

Thanks.
I've modified the above to:

The linux kernel now has a sanity check for the global headers, activated by CONFIG_HEADER_TEST=y and CONFIG_KERNEL_HEADER_TEST=y. Some LNet headers are missing a few headers to allow them to build properly.

and applied the patch.

NeilBrown

Quoted 49 lines
---
 include/linux/libcfs/libcfs_fail.h    | 1 +
 include/linux/libcfs/libcfs_private.h | 3 +++
 include/uapi/linux/lnet/lnetst.h      | 2 ++
 3 files changed, 6 insertions(+)
include/linux/libcfs/libcfs_fail.h +1 -0
index 0e73eef..f52a82a 100644
@@ -35,6 +35,7 @@
 
 #include <linux/sched.h>
 #include <linux/wait.h>
+#include <linux/libcfs/libcfs_debug.h>
 
 extern unsigned long cfs_fail_loc;
 extern unsigned int cfs_fail_val;
include/linux/libcfs/libcfs_private.h +3 -0
index 515fd63..2e8cff6 100644
@@ -39,6 +39,9 @@
 #ifndef __LIBCFS_PRIVATE_H__
 #define __LIBCFS_PRIVATE_H__
 
+#include <linux/sched.h>
+#include <linux/libcfs/libcfs_debug.h>
+
 #ifndef DEBUG_SUBSYSTEM
 # define DEBUG_SUBSYSTEM S_UNDEFINED
 #endif
include/uapi/linux/lnet/lnetst.h +2 -0
index 27fcd91..449c5e6 100644
@@ -38,6 +38,8 @@
 #define __LNET_ST_H__
 
 #include <linux/types.h>
+#include <linux/time.h>
+#include <linux/lnet/lnet-types.h>
 
 #define LST_FEAT_NONE		(0)
 #define LST_FEAT_BULK_LEN	(1 << 0)	/* enable variable page size */
Signature · 1 line
1.8.3.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20190725/bf0ed17c/attachment.sig>

#2 lore raw

PATCH 1/1 lustre: lnet: fix needed headers for lnet headers

Quoted 6 lines · James Simmons
Quoted 3 lines

The linux kernel now has a sanity check for the global headers and LNet are missing a few headers to allow them to build properly.

Quoted 9 lines

Thanks.
I've modified the above to:

The linux kernel now has a sanity check for the global headers, activated by CONFIG_HEADER_TEST=y and CONFIG_KERNEL_HEADER_TEST=y. Some LNet headers are missing a few headers to allow them to build properly.

and applied the patch.

Quoted 48 lines
Quoted 47 lines
---
 include/linux/libcfs/libcfs_fail.h    | 1 +
 include/linux/libcfs/libcfs_private.h | 3 +++
 include/uapi/linux/lnet/lnetst.h      | 2 ++
 3 files changed, 6 insertions(+)
include/linux/libcfs/libcfs_fail.h +1 -0
index 0e73eef..f52a82a 100644
@@ -35,6 +35,7 @@
 
 #include <linux/sched.h>
 #include <linux/wait.h>
+#include <linux/libcfs/libcfs_debug.h>
 
 extern unsigned long cfs_fail_loc;
 extern unsigned int cfs_fail_val;
include/linux/libcfs/libcfs_private.h +3 -0
index 515fd63..2e8cff6 100644
@@ -39,6 +39,9 @@
 #ifndef __LIBCFS_PRIVATE_H__
 #define __LIBCFS_PRIVATE_H__
 
+#include <linux/sched.h>
+#include <linux/libcfs/libcfs_debug.h>
+
 #ifndef DEBUG_SUBSYSTEM
 # define DEBUG_SUBSYSTEM S_UNDEFINED
 #endif
include/uapi/linux/lnet/lnetst.h +2 -0
index 27fcd91..449c5e6 100644
@@ -38,6 +38,8 @@
 #define __LNET_ST_H__
 
 #include <linux/types.h>
+#include <linux/time.h>
+#include <linux/lnet/lnet-types.h>
 
 #define LST_FEAT_NONE		(0)
 #define LST_FEAT_BULK_LEN	(1 << 0)	/* enable variable page size */
Signature · 1 line
1.8.3.1