Browse Source

align aarch64, riscv64, loongarch64 stat structure padding type

this change is purely to document that they are the same in
preparation to remove the arch-specific headers for these archs and
replace them with a generic version that matches riscv32 and can be
shared by these and all future archs.
Rich Felker 9 months ago
parent
commit
ef600888d2
3 changed files with 3 additions and 3 deletions
  1. 1 1
      arch/aarch64/bits/stat.h
  2. 1 1
      arch/loongarch64/bits/stat.h
  3. 1 1
      arch/riscv64/bits/stat.h

+ 1 - 1
arch/aarch64/bits/stat.h

@@ -6,7 +6,7 @@ struct stat {
 	uid_t st_uid;
 	uid_t st_uid;
 	gid_t st_gid;
 	gid_t st_gid;
 	dev_t st_rdev;
 	dev_t st_rdev;
-	unsigned long __pad;
+	unsigned long long __pad;
 	off_t st_size;
 	off_t st_size;
 	blksize_t st_blksize;
 	blksize_t st_blksize;
 	int __pad2;
 	int __pad2;

+ 1 - 1
arch/loongarch64/bits/stat.h

@@ -6,7 +6,7 @@ struct stat {
 	uid_t st_uid;
 	uid_t st_uid;
 	gid_t st_gid;
 	gid_t st_gid;
 	dev_t st_rdev;
 	dev_t st_rdev;
-	unsigned long __pad;
+	unsigned long long __pad;
 	off_t st_size;
 	off_t st_size;
 	blksize_t st_blksize;
 	blksize_t st_blksize;
 	int __pad2;
 	int __pad2;

+ 1 - 1
arch/riscv64/bits/stat.h

@@ -6,7 +6,7 @@ struct stat {
 	uid_t st_uid;
 	uid_t st_uid;
 	gid_t st_gid;
 	gid_t st_gid;
 	dev_t st_rdev;
 	dev_t st_rdev;
-	unsigned long __pad;
+	unsigned long long __pad;
 	off_t st_size;
 	off_t st_size;
 	blksize_t st_blksize;
 	blksize_t st_blksize;
 	int __pad2;
 	int __pad2;