From: Anton Blanchard Date: Sat, 2 Jun 2012 11:34:52 +0000 (+1000) Subject: powerpc: Fix size of st_nlink on 64bit X-Git-Tag: v3.5-rc1~5^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0fd7bee1e9b68fd271ad87c3e705facd1ca38055;p=~emulex%2Finfiniband.git powerpc: Fix size of st_nlink on 64bit 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 Signed-off-by: Al Viro --- diff --git a/arch/powerpc/include/asm/stat.h b/arch/powerpc/include/asm/stat.h index 10cfb558e0f..84880b80cc1 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;