mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: fix bulkstat related compile warnings.
Use correct types for bulkstat structure to avoid pointer warnings. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
+2
-2
@@ -1550,7 +1550,7 @@ bulkstat_f(int opno, long r)
|
||||
{
|
||||
int count;
|
||||
int fd;
|
||||
__uint64_t last;
|
||||
__u64 last;
|
||||
int nent;
|
||||
xfs_bstat_t *t;
|
||||
__int64_t total;
|
||||
@@ -1583,7 +1583,7 @@ bulkstat1_f(int opno, long r)
|
||||
pathname_t f;
|
||||
int fd;
|
||||
int good;
|
||||
__uint64_t ino;
|
||||
__u64 ino;
|
||||
struct stat64 s;
|
||||
xfs_bstat_t t;
|
||||
int v;
|
||||
|
||||
@@ -68,7 +68,7 @@ main(int argc, char *argv[])
|
||||
printf("Iteration %d ... (%d files)", k, nfiles);
|
||||
|
||||
memset(&a, 0, sizeof(xfs_fsop_bulkreq_t));
|
||||
a.lastip = &last_inode;
|
||||
a.lastip = (__u64 *)&last_inode;
|
||||
a.icount = nfiles;
|
||||
a.ubuffer = ret;
|
||||
a.ocount = &count;
|
||||
|
||||
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
|
||||
memset(genlist, 0, nfiles * sizeof(__u32));
|
||||
memset(ret, 0, nfiles * sizeof(xfs_bstat_t));
|
||||
memset(&a, 0, sizeof(xfs_fsop_bulkreq_t));
|
||||
a.lastip = &last_inode;
|
||||
a.lastip = (__u64 *)&last_inode;
|
||||
a.icount = nfiles;
|
||||
a.ubuffer = ret;
|
||||
a.ocount = &count;
|
||||
|
||||
+3
-3
@@ -283,7 +283,7 @@ static int test_immutable(const char *dir)
|
||||
|
||||
ino = st.st_ino;
|
||||
|
||||
bulkreq.lastip = &ino;
|
||||
bulkreq.lastip = (__u64 *)&ino;
|
||||
bulkreq.icount = 1;
|
||||
bulkreq.ubuffer = &bstat;
|
||||
bulkreq.ocount = NULL;
|
||||
@@ -943,7 +943,7 @@ static int test_append(const char *dir)
|
||||
|
||||
ino = st.st_ino;
|
||||
|
||||
bulkreq.lastip = &ino;
|
||||
bulkreq.lastip = (__u64 *)&ino;
|
||||
bulkreq.icount = 1;
|
||||
bulkreq.ubuffer = &bstat;
|
||||
bulkreq.ocount = NULL;
|
||||
@@ -1353,7 +1353,7 @@ static int test_append(const char *dir)
|
||||
|
||||
ino = st.st_ino;
|
||||
|
||||
bulkreq.lastip = &ino;
|
||||
bulkreq.lastip = (__u64 *)&ino;
|
||||
bulkreq.icount = 1;
|
||||
bulkreq.ubuffer = &bstat;
|
||||
bulkreq.ocount = NULL;
|
||||
|
||||
Reference in New Issue
Block a user