Commit c1c76743 authored by Mike Frysinger's avatar Mike Frysinger Committed by David Teigland

dlm: linux/{dlm,dlm_device}.h: cleanup for userspace

linux/dlm_device.h uses types from dlm.h and types.h, so pull them in.  The
dlm.h header should use __u## rather than uint##_t types and thus pull in
linux/types.h for it.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 3d564fa3
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
/* Lock levels and flags are here */ /* Lock levels and flags are here */
#include <linux/dlmconstants.h> #include <linux/dlmconstants.h>
#include <linux/types.h>
typedef void dlm_lockspace_t; typedef void dlm_lockspace_t;
...@@ -59,7 +60,7 @@ typedef void dlm_lockspace_t; ...@@ -59,7 +60,7 @@ typedef void dlm_lockspace_t;
struct dlm_lksb { struct dlm_lksb {
int sb_status; int sb_status;
uint32_t sb_lkid; __u32 sb_lkid;
char sb_flags; char sb_flags;
char * sb_lvbptr; char * sb_lvbptr;
}; };
......
...@@ -11,10 +11,16 @@ ...@@ -11,10 +11,16 @@
******************************************************************************* *******************************************************************************
******************************************************************************/ ******************************************************************************/
#ifndef _LINUX_DLM_DEVICE_H
#define _LINUX_DLM_DEVICE_H
/* This is the device interface for dlm, most users will use a library /* This is the device interface for dlm, most users will use a library
* interface. * interface.
*/ */
#include <linux/dlm.h>
#include <linux/types.h>
#define DLM_USER_LVB_LEN 32 #define DLM_USER_LVB_LEN 32
/* Version of the device interface */ /* Version of the device interface */
...@@ -98,3 +104,5 @@ struct dlm_lock_result { ...@@ -98,3 +104,5 @@ struct dlm_lock_result {
#define DLM_USER_LSFLG_AUTOFREE 1 #define DLM_USER_LSFLG_AUTOFREE 1
#define DLM_USER_LSFLG_FORCEFREE 2 #define DLM_USER_LSFLG_FORCEFREE 2
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment