diff mbox

[1/2] sparc32: use proper types in struct stat

Message ID 20081228214739.GA11917@uranus.ravnborg.org
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Sam Ravnborg Dec. 28, 2008, 9:47 p.m. UTC
Like sparc64 use proper types in struct stat

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---

This patch should be applied after "drop old_kernel_stat".

	Sam

 arch/sparc/include/asm/stat_32.h |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

Comments

David Miller Jan. 3, 2009, 2:48 a.m. UTC | #1
From: Sam Ravnborg <sam@ravnborg.org>
Date: Sun, 28 Dec 2008 22:47:39 +0100

> Like sparc64 use proper types in struct stat
> 
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/sparc/include/asm/stat_32.h b/arch/sparc/include/asm/stat_32.h
index 643d572..45b3ee4 100644
--- a/arch/sparc/include/asm/stat_32.h
+++ b/arch/sparc/include/asm/stat_32.h
@@ -5,21 +5,21 @@ 
 
 struct stat {
 	unsigned short	st_dev;
-	unsigned long	st_ino;
-	unsigned short	st_mode;
+	ino_t		st_ino;
+	mode_t		st_mode;
 	short		st_nlink;
-	unsigned short	st_uid;
-	unsigned short	st_gid;
+	uid_t		st_uid;
+	gid_t		st_gid;
 	unsigned short	st_rdev;
-	long		st_size;
-	long		st_atime;
+	off_t		st_size;
+	time_t		st_atime;
 	unsigned long	st_atime_nsec;
-	long		st_mtime;
+	time_t		st_mtime;
 	unsigned long	st_mtime_nsec;
-	long		st_ctime;
+	time_t		st_ctime;
 	unsigned long	st_ctime_nsec;
-	long		st_blksize;
-	long		st_blocks;
+	off_t		st_blksize;
+	off_t		st_blocks;
 	unsigned long	__unused4[2];
 };