Skip to content

Commit

Permalink
powerpc: Fix size of st_nlink on 64bit
Browse files Browse the repository at this point in the history
commit e57f93c (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]>
  • Loading branch information
antonblanchard authored and Al Viro committed Jun 2, 2012
1 parent 86c47b7 commit 0fd7bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0fd7bee

Please sign in to comment.