From 6792431d289a8bd5cc035907247c3d7b31a9b98c Mon Sep 17 00:00:00 2001 From: Niklas Edmundsson Date: Thu, 3 Nov 2005 04:05:46 +0000 Subject: [PATCH] aix5-warning-error-cleanup-20051102 FIXES 22855 aix 5.1 and 5.2 should also build --- src/afs/AIX/osi_vnodeops.c | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/src/afs/AIX/osi_vnodeops.c b/src/afs/AIX/osi_vnodeops.c index 5124ce549..1529929a2 100644 --- a/src/afs/AIX/osi_vnodeops.c +++ b/src/afs/AIX/osi_vnodeops.c @@ -1286,7 +1286,11 @@ afs_gn_lockctl(struct vnode *vp, struct eflock *lckdat, int32long64_t cmd, int (*ignored_fcn) (), +#ifdef AFS_AIX52_ENV /* Changed in AIX 5.2 and up */ ulong * ignored_id, +#else /* AFS_AIX52_ENV */ + ulong32int64_t * ignored_id, +#endif /* AFS_AIX52_ENV */ struct ucred *cred) { int error, ncmd = 0; @@ -1728,6 +1732,7 @@ struct vnodeops afs_gn_vnodeops = { afs_gn_enosys, /* vn_rdwr_attr */ (int(*)(struct vnode*,int,void*,struct ucred*)) afs_gn_enosys, /* vn_memcntl */ +#ifdef AFS_AIX53_ENV /* Present in AIX 5.3 and up */ (int(*)(struct vnode*,const char*,struct uio*,struct ucred*)) afs_gn_enosys, /* vn_getea */ (int(*)(struct vnode*,const char*,struct uio*,int,struct ucred*)) @@ -1742,6 +1747,15 @@ struct vnodeops afs_gn_vnodeops = { afs_gn_enosys, /* vn_getxacl */ (int(*)(struct vnode *, uint64_t, acl_type_t, struct uio *, mode_t, struct ucred *)) afs_gn_enosys, /* vn_setxacl */ +#else /* AFS_AIX53_ENV */ + afs_gn_enosys, /* vn_spare7 */ + afs_gn_enosys, /* vn_spare8 */ + afs_gn_enosys, /* vn_spare9 */ + afs_gn_enosys, /* vn_spareA */ + afs_gn_enosys, /* vn_spareB */ + afs_gn_enosys, /* vn_spareC */ + afs_gn_enosys, /* vn_spareD */ +#endif /* AFS_AIX53_ENV */ afs_gn_enosys, /* vn_spareE */ afs_gn_enosys /* vn_spareF */ #ifdef AFS_AIX51_ENV @@ -2267,8 +2281,17 @@ vn_rdwr(struct vnode *a, enum uio_rw b, int32long64_t c, struct uio *d, } static -vn_lockctl(struct vnode *a, offset_t b, struct eflock *c, int32long64_t d, - int (*e) (), ulong * f, struct ucred *g) +vn_lockctl(struct vnode *a, + offset_t b, + struct eflock *c, + int32long64_t d, + int (*e) (), +#ifdef AFS_AIX52_ENV /* Changed in AIX 5.2 and up */ + ulong * f, +#else /* AFS_AIX52_ENV */ + ulong32int64_t * f, +#endif /* AFS_AIX52_ENV */ + struct ucred *g) { int glockOwner, ret; @@ -2487,6 +2510,7 @@ struct vnodeops locked_afs_gn_vnodeops = { afs_gn_enosys, /* vn_rdwr_attr */ (int(*)(struct vnode*,int,void*,struct ucred*)) afs_gn_enosys, /* vn_memcntl */ +#ifdef AFS_AIX53_ENV /* Present in AIX 5.3 and up */ (int(*)(struct vnode*,const char*,struct uio*,struct ucred*)) afs_gn_enosys, /* vn_getea */ (int(*)(struct vnode*,const char*,struct uio*,int,struct ucred*)) @@ -2501,6 +2525,15 @@ struct vnodeops locked_afs_gn_vnodeops = { afs_gn_enosys, /* vn_getxacl */ (int(*)(struct vnode *, uint64_t, acl_type_t, struct uio *, mode_t, struct ucred *)) afs_gn_enosys, /* vn_setxacl */ +#else /* AFS_AIX53_ENV */ + afs_gn_enosys, /* vn_spare7 */ + afs_gn_enosys, /* vn_spare8 */ + afs_gn_enosys, /* vn_spare9 */ + afs_gn_enosys, /* vn_spareA */ + afs_gn_enosys, /* vn_spareB */ + afs_gn_enosys, /* vn_spareC */ + afs_gn_enosys, /* vn_spareD */ +#endif /* AFS_AIX53_ENV */ afs_gn_enosys, /* vn_spareE */ afs_gn_enosys /* vn_spareF */ #ifdef AFS_AIX51_ENV -- 2.39.5