Re: [PATCH 8/10] Re: [2.6-BK-URL] NTFS: 2.1.19 sparse annotation,cleanups and a bugfix

From: Anton Altaparmakov
Date: Fri Sep 24 2004 - 15:03:59 EST


On Fri, 24 Sep 2004, Linus Torvalds wrote:
> On Fri, 24 Sep 2004, Anton Altaparmakov wrote:
> > - Fix all the sparse bitwise warnings. Had to change all the enums
> > storing little endian values to #defines because we cannot set enums
> > to be little endian so we had lots of bitwise warnings from sparse.
>
> Btw, Al is fixing this. We'll make enum's properly typed, rather than just
> plain integers. It's not traditional C behaviour, but it gives you better
> type safety, and Al points out that other C compilers (the Plan 9 one, to
> be specific) have done the same thing for similar reasons.
>
> So we'll eventually be able to use enum's instead of #defines without
> losing any sparse information.
>
> Of course, the only case where it matters is exactly cases like this,
> where the difference between using an enum and a #define is basically a
> matter of taste. But since I agree that enum's can look a lot nicer, it's
> good to know that it's being worked on.

This is good news. Once that is done I will be very happy to go back to
using enums as I also agree that they can and in this case do look a
lot nicer...

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