From: Anton Altaparmakov <aia21@cus.cam.ac.uk>
To: torvalds@transmeta.com, alan@lxorguk.ukuu.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] NTFS sparc compile fix
Date: Sat, 3 Nov 2001 20:36:11 +0000 (GMT) [thread overview]
Message-ID: <E1607WV-0001xb-00@libra.cus.cam.ac.uk> (raw)
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;
/*
next reply other threads:[~2001-11-03 20:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-03 20:36 Anton Altaparmakov [this message]
2001-11-19 8:52 ` Albert D. Cahalan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1607WV-0001xb-00@libra.cus.cam.ac.uk \
--to=aia21@cus.cam.ac.uk \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®