projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c47b7
)
powerpc: Fix size of st_nlink on 64bit
author
Anton Blanchard
<
[email protected]
>
Sat, 2 Jun 2012 11:34:52 +0000
(21:34 +1000)
committer
Al Viro
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
arch/powerpc/include/asm/stat.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/stat.h
b/arch/powerpc/include/asm/stat.h
index 10cfb558e0fd7d1a82df840dd67c3578be1cbe52..84880b80cc1ce7811924ec18e68bbd75431371f6 100644
(file)
--- 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;