projects/linux·commit 0fd7bee1

powerpc: Fix size of st_nlink on 64bit

0fd7bee1 · Anton Blanchard <[email protected]> · 2012-06-02 21:34:52 +10:00

commit e57f93cc53b7 (powerpc: get rid of nlink_t uses, switch to
explicitly-sized type) changed the size of st_nlink on ppc64 from
a long to a short, resulting in boot failures.

Signed-off-by: Anton Blanchard <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Commit
0fd7bee1e9b68fd271ad87c3e705facd1ca38055
Parents
86c47b70

Changes

1 files changed · +1 −1

FileStatusAddDelContent
arch/powerpc/include/asm/stat.hmodified+1−1View file

arch/powerpc/include/asm/stat.h

View file
diff --git a/arch/powerpc/include/asm/stat.h b/arch/powerpc/include/asm/stat.h
index 10cfb55..84880b8 100644
--- a/arch/powerpc/include/asm/stat.h
+++ b/arch/powerpc/include/asm/stat.h
@@ -30,7 +30,7 @@ struct stat {
unsigned long st_dev;
ino_t st_ino;
#ifdef __powerpc64__
- unsigned short st_nlink;
+ unsigned long st_nlink;
mode_t st_mode;
#else
mode_t st_mode;