[PATCH] sparc32: wrong type of nlink_t

From: Tomas Szepe (szepe@pinerecords.com)
Date: Sun Sep 01 2002 - 03:55:24 EST


Against 2.4.20-pre5 - fix up the type of nlink_t. This makes jfs and
reiserfs stop complaining about comparisons always turning up false
due to limited range of data type.

T.

--- linux-2.4.19/include/asm-sparc/posix_types.h 2000-01-16 07:08:29.000000000 +0100
+++ linux-2.4.20-pre5/include/asm-sparc/posix_types.h 2002-09-01 10:41:35.000000000 +0200
@@ -21,7 +21,7 @@
 typedef unsigned long __kernel_ino_t;
 typedef unsigned short __kernel_mode_t;
 typedef unsigned short __kernel_umode_t;
-typedef short __kernel_nlink_t;
+typedef unsigned short __kernel_nlink_t;
 typedef long __kernel_daddr_t;
 typedef long __kernel_off_t;
 typedef char * __kernel_caddr_t;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:13 EST