Skip to contentSkip to conversation

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

PATCH In review Mike Frysinger 2 participants 2 messages Apr 20, 2008 – Apr 21, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/linux/dlm.h        |    3 ++-
 include/linux/dlm_device.h |    7 +++++++
 2 files changed, 9 insertions(+), 1 deletions(-)
include/linux/dlm.h +2 -1
index c743fbc..ea301f0 100644
@@ -21,6 +21,7 @@
 
 /* Lock levels and flags are here */
 #include <linux/dlmconstants.h>
+#include <linux/types.h>
 
 
 #define DLM_RESNAME_MAXLEN	64
@@ -63,7 +64,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;
 };
include/linux/dlm_device.h +7 -0
index 9642277..9eb2ff4 100644
@@ -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 */
@@ -101,3 +107,4 @@ struct dlm_lock_result {
 #define DLM_USER_LSFLG_AUTOFREE   1
 #define DLM_USER_LSFLG_FORCEFREE  2
 
+#endif
Signature · 1 line
1.5.5
#1 lore raw
Quoted 9 lines · Mike Frysinger

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.

---
 include/linux/dlm.h        |    3 ++-
 include/linux/dlm_device.h |    7 +++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

Thanks, added to dlm.git, will include this in the set for merging. Dave