[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1217094397.5971.67.camel@brick>
Date: Sat, 26 Jul 2008 10:46:37 -0700
From: Harvey Harrison <harvey.harrison@...il.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
David Miller <davem@...emloft.net>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] byteorder: force in-place endian conversion to always
evaluate args
On Sat, 2008-07-26 at 01:34 -0400, Christoph Hellwig wrote:
> On Fri, Jul 25, 2008 at 09:33:41AM -0700, Harvey Harrison wrote:
> > David Miller reported breakage in ide when the in-place byteorder helpers
> > were used as the macros do not always evaluate their args which led to
> > an infinite loop.
> >
> > Just make them functions to ensure they always do so.
>
> Of course the best thing would be to kill these macros entirely.
> In-place endianess conversions are bad idea.
>
It's better than seeing this:
some_u32 = cpu_to_le32(some_u32);
But agreed, the 's' versions of the byteswapping api are a pretty good
sign something could be done better.
Harvey
--
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