Skip to content

Commit

Permalink
dlm: linux/{dlm,dlm_device}.h: cleanup for userspace
Browse files Browse the repository at this point in the history
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: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
Mike Frysinger authored and David Teigland committed Apr 21, 2008
1 parent 3d564fa commit c1c7674
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/dlm.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

/* Lock levels and flags are here */
#include <linux/dlmconstants.h>
#include <linux/types.h>

typedef void dlm_lockspace_t;

Expand Down Expand Up @@ -59,7 +60,7 @@ typedef void dlm_lockspace_t;

struct dlm_lksb {
int sb_status;
uint32_t sb_lkid;
__u32 sb_lkid;
char sb_flags;
char * sb_lvbptr;
};
Expand Down
8 changes: 8 additions & 0 deletions include/linux/dlm_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
* interface.
*/

#include <linux/dlm.h>
#include <linux/types.h>

#define DLM_USER_LVB_LEN 32

/* Version of the device interface */
Expand Down Expand Up @@ -98,3 +104,5 @@ struct dlm_lock_result {
#define DLM_USER_LSFLG_AUTOFREE 1
#define DLM_USER_LSFLG_FORCEFREE 2

#endif

0 comments on commit c1c7674

Please sign in to comment.