move few #include lines to make lustre/lustre_idl.h compilable from userspace
i=andreas.dilger
-#include <lustre/lustre_idl.h>
-
#include <libcfs/libcfs.h>
#include <libcfs/libcfs.h>
+#include <lustre/lustre_idl.h>
+
#include <lu_ref.h>
struct seq_file;
#include <lu_ref.h>
struct seq_file;
#ifndef _LUSTRE_IDL_H_
#define _LUSTRE_IDL_H_
#ifndef _LUSTRE_IDL_H_
#define _LUSTRE_IDL_H_
-#include <libcfs/libcfs.h>
-
/* Defn's shared with user-space. */
#include <lustre/lustre_user.h>
/* Defn's shared with user-space. */
#include <lustre/lustre_user.h>
-#include <lustre/ll_fiemap.h>
void lustre_swab_fid2path (struct getinfo_fid2path *gf);
void lustre_swab_fid2path (struct getinfo_fid2path *gf);
-extern void lustre_swab_kuch(struct kuc_hdr *);
-
#endif
/** @} lustreidl */
#endif
/** @} lustreidl */
+#include <libcfs/libcfs.h>
#include <lustre/lustre_idl.h>
#include <lustre_req_layout.h>
#include <lustre_mdt.h>
#include <lustre/lustre_idl.h>
#include <lustre_req_layout.h>
#include <lustre_mdt.h>
-#include <libcfs/libcfs.h>
struct lu_site;
struct lu_context;
struct lu_site;
struct lu_context;
#include <liblustre.h>
#endif
#include <liblustre.h>
#endif
-#include <lustre/lustre_idl.h>
+#include <lustre/lustre_idl.h>
#include <lustre_fid.h>
#include <lustre_lib.h>
#include <lustre_net.h>
#include <lustre_fid.h>
#include <lustre_lib.h>
#include <lustre_net.h>
#include <liblustre.h>
#endif
#include <liblustre.h>
#endif
-#include <lustre/lustre_idl.h>
+#include <lustre/lustre_idl.h>
#include <lustre_lib.h>
#include <lustre_net.h>
#include <lustre_dlm.h>
#include <lustre_lib.h>
#include <lustre_net.h>
#include <lustre_dlm.h>
#include <liblustre.h>
#endif
#include <liblustre.h>
#endif
-#include <lustre/lustre_idl.h>
#include <lustre_log.h>
#include <obd_support.h>
#include <lustre_lib.h>
#include <lustre_log.h>
#include <obd_support.h>
#include <lustre_lib.h>
#include <liblustre.h>
#endif
#include <liblustre.h>
#endif
-#include <lustre/lustre_idl.h>
+#include <lustre/lustre_idl.h>
#include <lustre_lib.h>
#include <lustre_net.h>
#include <lustre_dlm.h>
#include <lustre_lib.h>
#include <lustre_net.h>
#include <lustre_dlm.h>
+static void lustre_swab_kuch(struct kuc_hdr *l)
+{
+ __swab16s(&l->kuc_magic);
+ /* __u8 l->kuc_transport */
+ __swab16s(&l->kuc_msgtype);
+ __swab16s(&l->kuc_msglen);
+}
+
static int mdc_ioc_hsm_ct_start(struct obd_export *exp,
struct lustre_kernelcomm *lk)
{
static int mdc_ioc_hsm_ct_start(struct obd_export *exp,
struct lustre_kernelcomm *lk)
{
/* LUSTRE_VERSION_CODE */
#include <lustre_ver.h>
/* LUSTRE_VERSION_CODE */
#include <lustre_ver.h>
-/* fid stuff */
-#include <lustre/lustre_idl.h>
/* struct osd_inode_id */
#include "osd_oi.h"
#include "osd_igif.h"
#include "osd_internal.h"
/* struct osd_inode_id */
#include "osd_oi.h"
#include "osd_igif.h"
#include "osd_internal.h"
+/* fid stuff */
+#include <lustre/lustre_idl.h>
+
void lu_igif_to_id(const struct lu_fid *fid, struct osd_inode_id *id)
{
LASSERT(osd_fid_is_igif(fid));
void lu_igif_to_id(const struct lu_fid *fid, struct osd_inode_id *id)
{
LASSERT(osd_fid_is_igif(fid));
CLASSERT(offsetof(typeof(*k), lk_padding) != 0);
}
CLASSERT(offsetof(typeof(*k), lk_padding) != 0);
}
-void lustre_swab_kuch(struct kuc_hdr *l)
-{
- __swab16s(&l->kuc_magic);
- /* __u8 l->kuc_transport */
- __swab16s(&l->kuc_msgtype);
- __swab16s(&l->kuc_msglen);
-}
-EXPORT_SYMBOL(lustre_swab_kuch);
-