[PATCH 2/4] Re: [2.6-BK-URL] NTFS: Final sparse annotation/fixes.

From: Anton Altaparmakov
Date: Tue Sep 28 2004 - 15:46:08 EST


RESEND: This is patch 2/4 in the series. It contains the following
ChangeSet:

<aia21@xxxxxxxxxx> (04/09/26 1.1988.2.2)
NTFS: Convert final enum (fs/ntfs/logfile.h) to define to silence last
bitwise sparse warning.

Signed-off-by: Anton Altaparmakov <aia21@xxxxxxxxxx>

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/, http://www-stu.christs.cam.ac.uk/~aia21/

===================================================================

diff -Nru a/fs/ntfs/logfile.h b/fs/ntfs/logfile.h
--- a/fs/ntfs/logfile.h 2004-09-28 21:32:35 +01:00
+++ b/fs/ntfs/logfile.h 2004-09-28 21:32:35 +01:00
@@ -111,10 +111,9 @@
* These are the so far known RESTART_AREA_* flags (16-bit) which contain
* information about the log file in which they are present.
*/
-typedef enum {
- RESTART_VOLUME_IS_CLEAN = const_cpu_to_le16(0x0002),
- REST_AREA_SPACE_FILLER = 0xffff /* Just to make flags 16-bit. */
-} __attribute__ ((__packed__)) RESTART_AREA_FLAGS;
+#define RESTART_VOLUME_IS_CLEAN const_cpu_to_le16(0x0002)
+
+typedef le16 RESTART_AREA_FLAGS;

/*
* Log file restart area record. The offset of this record is found by adding
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/