Re: [patch] "ntfs_s16 undeclared", missing includefiles

Tom Eastep (eastep@loc1.tandem.com)
Sun, 03 Jan 1999 22:12:53 +0000


Arjan van de Ven wrote:
>
> Hi,
>
> The following patch fixes the new ntfs-driver, it missed two include-files
> so that line 422 of inode.c lead to an unknown ntfs_s16 type. The patch
> fixes this by including the appropriate header-files.
>

The cause of this problem is actually that the definition of the basic
NTFS types in fs/ntfs/ntfstypes.h is incompletely replicated in
include/linux/ntfs_fs_i.h. Corrected as follows:

--- linux/include/linux/ntfs_fs_i.h~ Fri Dec 19 15:24:22 1997
+++ linux/include/linux/ntfs_fs_i.h Sun Jan 3 11:25:11 1999
@@ -12,6 +12,10 @@
typedef unsigned short ntfs_u16;
typedef unsigned int ntfs_u32;
typedef unsigned long long ntfs_u64;
+typedef signed char ntfs_s8;
+typedef signed short ntfs_s16;
+typedef signed int ntfs_s32;
+typedef signed long long ntfs_s64;
#endif

#ifndef NTMODE_T

-- 
Tom Eastep
Compaq Computer Corporation
Enterprise Computing Group
Tandem Division
tom.eastep@compaq.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/