[PATCH] NTFS sparc compile fix

Anton Altaparmakov (aia21@cus.cam.ac.uk)
Sat, 3 Nov 2001 20:36:11 +0000 (GMT)


Linus, Alan,

Please apply below patchlet for your next releases (applies cleanly to
any recent kernel). It fixes compilation of NTFS driver on Sparc.

Thanks to Jan-Benedict Glaw for reporting and testing.

Best regards,

Anton

-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Linux NTFS maintainer / WWW: http://linux-ntfs.sf.net/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/

--- ntfs-sparc.diff ---

diff -u -urN linux-2.4.14-pre7-vanilla/fs/ntfs/dir.c linux-2.4.14-pre7-ntfs/fs/ntfs/dir.c --- linux-2.4.14-pre7-vanilla/fs/ntfs/dir.c Wed Sep 12 01:02:46 2001 +++ linux-2.4.14-pre7-ntfs/fs/ntfs/dir.c Sat Nov 3 17:56:40 2001 @@ -19,6 +19,7 @@ #include "support.h" #include "util.h" #include <linux/smp_lock.h> +#include <linux/bitops.h> static char I30[] = "$I30"; diff -u -urN linux-2.4.14-pre7-vanilla/include/linux/ntfs_fs.h linux-2.4.14-pre7-ntfs/include/linux/ntfs_fs.h --- linux-2.4.14-pre7-vanilla/include/linux/ntfs_fs.h Sat Sep 8 20:24:40 2001 +++ linux-2.4.14-pre7-ntfs/include/linux/ntfs_fs.h Sat Nov 3 16:43:03 2001 @@ -10,12 +10,12 @@ * Attribute flags (16-bit). */ typedef enum { - ATTR_IS_COMPRESSED = cpu_to_le16(0x0001), - ATTR_COMPRESSION_MASK = cpu_to_le16(0x00ff), /* Compression method - * mask. Also, first - * illegal value. */ - ATTR_IS_ENCRYPTED = cpu_to_le16(0x4000), - ATTR_IS_SPARSE = cpu_to_le16(0x8000), + ATTR_IS_COMPRESSED = __constant_cpu_to_le16(0x0001), + ATTR_COMPRESSION_MASK = __constant_cpu_to_le16(0x00ff), + /* Compression method mask. Also, + * first illegal value. */ + ATTR_IS_ENCRYPTED = __constant_cpu_to_le16(0x4000), + ATTR_IS_SPARSE = __constant_cpu_to_le16(0x8000), } __attribute__ ((__packed__)) ATTR_FLAGS; /*

- 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/