powerpc: Fix size of st_nlink on 64bit
authorAnton Blanchard <anton@samba.org>
Sat, 2 Jun 2012 11:34:52 +0000 (21:34 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 2 Jun 2012 14:44:11 +0000 (10:44 -0400)
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 <anton@samba.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/powerpc/include/asm/stat.h

index 10cfb558e0fd7d1a82df840dd67c3578be1cbe52..84880b80cc1ce7811924ec18e68bbd75431371f6 100644 (file)
@@ -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;