From 8a58eeaa0ce2d3ebb56ad0aae6d0fd2fa550c5b9 Mon Sep 17 00:00:00 2001 From: walter Date: Tue, 25 Sep 2007 15:18:42 +0000 Subject: [PATCH] convert uint64_t to __u64 --- lustre/include/lustre_cfg.h | 28 ++++++++++++++-------------- lustre/lov/lov_offset.c | 2 +- lustre/mgs/mgs_llog.c | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lustre/include/lustre_cfg.h b/lustre/include/lustre_cfg.h index de0ddc2..3b770d3 100644 --- a/lustre/include/lustre_cfg.h +++ b/lustre/include/lustre_cfg.h @@ -60,24 +60,24 @@ enum lcfg_command_type { struct lustre_cfg_bufs { void *lcfg_buf[LUSTRE_CFG_MAX_BUFCOUNT]; - uint32_t lcfg_buflen[LUSTRE_CFG_MAX_BUFCOUNT]; - uint32_t lcfg_bufcount; + __u32 lcfg_buflen[LUSTRE_CFG_MAX_BUFCOUNT]; + __u32 lcfg_bufcount; }; /* Mountconf transitional hack, should go away after 1.6 */ #define LCFG_FLG_MOUNTCONF 0x400 struct lustre_cfg { - uint32_t lcfg_version; - uint32_t lcfg_command; + __u32 lcfg_version; + __u32 lcfg_command; - uint32_t lcfg_num; - uint32_t lcfg_flags; - uint64_t lcfg_nid; - uint32_t lcfg_nal; /* not used any more */ + __u32 lcfg_num; + __u32 lcfg_flags; + __u64 lcfg_nid; + __u32 lcfg_nal; /* not used any more */ - uint32_t lcfg_bufcount; - uint32_t lcfg_buflens[0]; + __u32 lcfg_bufcount; + __u32 lcfg_buflens[0]; }; #define LUSTRE_CFG_BUFLEN(lcfg, idx) \ @@ -86,9 +86,9 @@ struct lustre_cfg { : (lcfg)->lcfg_buflens[(idx)]) static inline void lustre_cfg_bufs_set(struct lustre_cfg_bufs *bufs, - uint32_t index, + __u32 index, void *buf, - uint32_t buflen) + __u32 buflen) { if (index >= LUSTRE_CFG_MAX_BUFCOUNT) return; @@ -103,7 +103,7 @@ static inline void lustre_cfg_bufs_set(struct lustre_cfg_bufs *bufs, } static inline void lustre_cfg_bufs_set_string(struct lustre_cfg_bufs *bufs, - uint32_t index, + __u32 index, char *str) { lustre_cfg_bufs_set(bufs, index, str, str ? strlen(str) + 1 : 0); @@ -172,7 +172,7 @@ static inline char *lustre_cfg_string(struct lustre_cfg *lcfg, int index) return s; } -static inline int lustre_cfg_len(uint32_t bufcount, uint32_t *buflens) +static inline int lustre_cfg_len(__u32 bufcount, __u32 *buflens) { int i; int len; diff --git a/lustre/lov/lov_offset.c b/lustre/lov/lov_offset.c index 87597b2..4717882 100644 --- a/lustre/lov/lov_offset.c +++ b/lustre/lov/lov_offset.c @@ -119,7 +119,7 @@ int lov_stripe_offset(struct lov_stripe_md *lsm, obd_off lov_off, { unsigned long ssize = lsm->lsm_stripe_size; unsigned long swidth, stripe_off, this_stripe; - uint64_t l_off, s_off; + __u64 l_off, s_off; int magic = lsm->lsm_magic; int ret = 0; diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c index 95af9c8..8fa7d47 100644 --- a/lustre/mgs/mgs_llog.c +++ b/lustre/mgs/mgs_llog.c @@ -683,7 +683,7 @@ static int record_base(struct obd_device *obd, struct llog_handle *llh, static inline int record_add_uuid(struct obd_device *obd, struct llog_handle *llh, - uint64_t nid, char *uuid) + __u64 nid, char *uuid) { return record_base(obd,llh,NULL,nid,LCFG_ADD_UUID,uuid,0,0,0); -- 1.8.3.1