瀏覽代碼

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 月之前
父節點
當前提交
ef600888d2
共有 3 個文件被更改,包括 3 次插入3 次删除
  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;
 	gid_t st_gid;
 	dev_t st_rdev;
-	unsigned long __pad;
+	unsigned long long __pad;
 	off_t st_size;
 	blksize_t st_blksize;
 	int __pad2;

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

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

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

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