[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080825014311.GS28946@ZenIV.linux.org.uk>
Date: Mon, 25 Aug 2008 02:43:11 +0100
From: Al Viro <viro@...IV.linux.org.uk>
To: Roland Dreier <rdreier@...co.com>
Cc: David Vrabel <david.vrabel@....com>,
Kernel development list <linux-kernel@...r.kernel.org>,
linux-usb <linux-usb@...r.kernel.org>,
torvalds@...ux-foundation.org
Subject: Re: [patch] Add helper macros for little-endian bitfields
On Sun, Aug 24, 2008 at 06:37:43PM -0700, Roland Dreier wrote:
> > + * NOTE: When using multibyte bitfields, you need to convert the data
> > + * from Little Endian to CPU before you can access the bitfield
> > + * (to make it simpler):
NOTE: When tempted to use multibyte bitfields on fixed-layout data, you
need to look in the mirror, ask yourself "what will they do to me during
code review for that?", shudder and decide that some temptations are
just not worth the pain.
IOW, don't do it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists