Commit 11d92b56 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Change all the defines back to simple enums since sparse is now happy

      typed enums.  This completes the sparse annotations in NTFS.
Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
parent 90bf5a59
...@@ -48,9 +48,9 @@ ToDo/Notes: ...@@ -48,9 +48,9 @@ ToDo/Notes:
Affected files are fs/ntfs/layout.h, logfile.h, and time.h. Affected files are fs/ntfs/layout.h, logfile.h, and time.h.
- Do proper type casting when using ntfs_is_*_recordp() in - Do proper type casting when using ntfs_is_*_recordp() in
fs/ntfs/logfile.c, mft.c, and super.c. fs/ntfs/logfile.c, mft.c, and super.c.
- Fix all the sparse bitwise warnings. Had to change all the enums - Fix all the sparse bitwise warnings. Had to change all the typedef
storing little endian values to #defines because we cannot set enums enums storing little endian values to simple enums plus a typedef for
to be little endian so we had lots of bitwise warnings from sparse. the datatype to make sparse happy.
- Fix a bug found by the new sparse bitwise warnings where the default - Fix a bug found by the new sparse bitwise warnings where the default
upcase table was defined as a pointer to wchar_t rather than ntfschar upcase table was defined as a pointer to wchar_t rather than ntfschar
in fs/ntfs/ntfs.h and super.c. in fs/ntfs/ntfs.h and super.c.
......
This diff is collapsed.
...@@ -111,7 +111,10 @@ typedef struct { ...@@ -111,7 +111,10 @@ typedef struct {
* These are the so far known RESTART_AREA_* flags (16-bit) which contain * These are the so far known RESTART_AREA_* flags (16-bit) which contain
* information about the log file in which they are present. * information about the log file in which they are present.
*/ */
#define RESTART_VOLUME_IS_CLEAN const_cpu_to_le16(0x0002) enum {
RESTART_VOLUME_IS_CLEAN = const_cpu_to_le16(0x0002),
RESTART_SPACE_FILLER = 0xffff, /* gcc: Force enum bit width to 16. */
} __attribute__ ((__packed__));
typedef le16 RESTART_AREA_FLAGS; typedef le16 RESTART_AREA_FLAGS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment