[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081015.172351.96225000.davem@davemloft.net>
Date: Wed, 15 Oct 2008 17:23:51 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: harvey.harrison@...il.com
Cc: sparclinux@...r.kernel.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org
Subject: Re: [PATCH] sparc64: Annotate pointers in PeeCeeI.c
From: Harvey Harrison <harvey.harrison@...il.com>
Date: Wed, 15 Oct 2008 17:15:19 -0700
> This has no functional changes, but annotates the code to make
> the endianness more clear. In addition, removes some of the only
> users of cpu_to_le[16|32]p in the kernel.
>
> Signed-off-by: Harvey Harrison <harvey.harrison@...il.com>
Remind me what the problem is with cpu_to_{le,be}*()?
The interface names define a direction, which in this case is
"CPU endianness to BE/LE endianness". And that is exactly
what is happening in the out*() routines.
This aids comprehension of the code and is quite useful IMHO.
--
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