Commit 0fd7bee1 authored by Anton Blanchard's avatar Anton Blanchard Committed by Al Viro

powerpc: Fix size of st_nlink on 64bit

commit e57f93cc (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: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 86c47b70
...@@ -30,7 +30,7 @@ struct stat { ...@@ -30,7 +30,7 @@ struct stat {
unsigned long st_dev; unsigned long st_dev;
ino_t st_ino; ino_t st_ino;
#ifdef __powerpc64__ #ifdef __powerpc64__
unsigned short st_nlink; unsigned long st_nlink;
mode_t st_mode; mode_t st_mode;
#else #else
mode_t st_mode; mode_t st_mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment