Re: [PATCH 05/37] ata: use get/put_endian helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 29 May 2008 20:37:40 -0700 Harvey Harrison <harvey.harrison@xxxxxxxxx> wrote:

> On Thu, 2008-05-29 at 19:52 -0700, Andrew Morton wrote:
> > On Thu, 29 May 2008 22:26:18 -0400 Mark Lord <liml@xxxxxx> wrote:
> > 
> 
> > otoh,
> > 
> > - I think the args are backwards
> > 
> 
> It was made to look like put_unaligned_* and put_unaligned()
> 
> I think of it as put_le16(source, dest)

	fn(dest, src)

is a well-known C idiom which the kernel went and broke in lots of places :(

It maps nicely onto

	dest = src

as a mnemonic.

But given that the compiler will reliably barf if they are backwards
it's a minor thing.

> > - I don't like the use of the put_*() namespace.  It makes it look
> >   like a uaccess operation.
> 
> I'm flexible...although I'd probably get nailed to a cross for changing
> it again so soon. (the unaligned versions, that is)

We'll live.

(I'm not a big fan of the patches, btw.  It's more of an "oh groan,
because it's there I suppose we really ought to do this" sort of thing.
(strong objections would save me a lot of work (looks hopefully at
inbox))).
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux