Whamcloud - gitweb
LU-13274 uapi: make lnet UAPI headers C99 compliant
[fs/lustre-release.git] / lnet / include / uapi / linux / lnet / lnetst.h
index 804e5e8..bce9477 100644 (file)
@@ -36,6 +36,8 @@
 #define __UAPI_LNET_ST_H__
 
 #include <linux/types.h>
+#include <linux/lnet/lnet-types.h>
+#include <linux/time.h>
 
 #define LST_FEAT_NONE          (0)
 #define LST_FEAT_BULK_LEN      (1 << 0)        /* enable variable page size */
 #define LSTIO_BATCH_QUERY      0xC27           /* query batch status */
 #define LSTIO_STAT_QUERY       0xC30           /* get stats */
 
+/*
+ * sparse kernel source annotations
+ */
+#ifndef __user
+#define __user
+#endif
+
 struct lst_sid {
        lnet_nid_t      ses_nid;        /* nid of console node */
        __s64           ses_stamp;      /* time stamp in milliseconds */
@@ -117,6 +126,13 @@ struct lstcon_test_batch_ent {
 };                                                     /*** test/batch verbose information entry,
                                                         *** for list_batch command */
 
+/* This will go away once we move to netlink */
+#if !defined(__KERNEL__) && !defined(__LIBCFS_UTIL_LIST_H__)
+struct list_head {
+       struct list_head *next, *prev;
+};
+#endif
+
 struct lstcon_rpc_ent {
        struct list_head        rpe_link;               /* link chain */
        struct lnet_process_id  rpe_peer;               /* peer's id */