Re: [PATCH 1/4] NTFS: Fix sparse warnings that have crept in over time.

From: Al Viro
Date: Mon Sep 26 2005 - 11:44:35 EST


On Mon, Sep 26, 2005 at 07:57:09AM -0700, Linus Torvalds wrote:
> #define MFT_REF_MASK_CPU 0x0000ffffffffffffULL
> #define MFT_REF_MASK_LE const_cpu_to_le64(MFT_REF_MASK_CPU)
>
> instead. That way the type of that thing is well-defined.

Or just make those two different enums. Basically, gcc is hopelessly
b0rken in version-dependent way when it comes to multi-element enums
that get outside of int range. Single-element ones at least have
kinda-sorta consistent semantics; anything beyond that and you are
walking into very nasty areas.
-
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/