Skip to contentSkip to conversation

fs/hpfs/*: fix HPFS support under 64-bit kernel

PATCH Stephen Rothwell 2 participants 2 messages Mar 20, 2005 VFS

lore
Share & tools
lore
#0 lore raw

From: Max <[email protected]>

hpfs/hpfs.h line 30

Quoted 9 lines

diff -u old/fs/hpfs/hpfs.h fs/hpfs/hpfs.h

hpfs/hpfs.h renamed from fs/hpfs/hpfs.h +1 -0
@@ -27,6 +27,8 @@
 typedef secno fnode_secno;		/* sector number of an fnode */
 typedef secno anode_secno;		/* sector number of an anode */
 
+typedef unsigned time32_t;		/* 32-bit time_t type */

Please use u32 instead of unsigned as u32 will *always* be an unsigned 32 bit quantity ...

Cheers,
Stephen Rothwell

#1 lore raw

Stephen,

I've made my patch compatible with the rest of HPFS sources. There is a lot of places where 'unsigned' has to be precisely 32 bits long. So having 'u32' just in my small patch does not make much sense.

Max

Quoted 19 lines · Stephen Rothwell

From: Max <[email protected]>

Quoted 8 lines

diff -u old/fs/hpfs/hpfs.h fs/hpfs/hpfs.h

hpfs/hpfs.h renamed from fs/hpfs/hpfs.h +0 -0
@@ -27,6 +27,8 @@

typedef secno fnode_secno; /* sector number of an fnode */
typedef secno anode_secno; /* sector number of an anode */

+typedef unsigned time32_t; /* 32-bit time_t type */

Please use u32 instead of unsigned as u32 will *always* be an unsigned 32 bit quantity ...

Cheers,
Stephen Rothwell