Re: [RFC][PATCH] byteorder: introduce le32_add_cpu & friends to core



On Mon, Dec 31, 2007 at 11:38:01AM -0800, Mark Fasheh wrote:
On Sun, Dec 30, 2007 at 08:06:34PM +0100, Marcin Slusarz wrote:
There are many places where these functions would be useful.
(just look at: grep -r 'cpu_to_[ble12346]*([ble12346]*_to_cpu.*[-+]' linux-src/)
What do you think?

ps: this patch depends on http://lkml.org/lkml/2007/12/25/35
--

add inline functions which add native byte order variable to
little/big endian variable to core header and as an example
convert ext3 to use them

You might want to note where you got these functions from in your message.
Yes, my mistake, sorry about that.

Also, it would be easier to follow these changes if you had broken things up
into two patches - one which moved stuff from ocfs2 into generic helpers and
a 2nd one to convert ext3.
Will do (tomorrow).

Looking into my crystal ball, I see a bunch of "convert to using byteorder
math macros" patches coming down the pipe. Since we're talking about disk
fields where a mistake could be costly, I suggest that any patch more than a
couple of lines should be tested by the submitter with sparse. A statement
that sparse didn't produce any new warnings (with the patch applied) could
be included in the description.
Good idea. Thanks.

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



Relevant Pages

  • Re: FENTANYL 50 MCG/HOUR PATCHES
    ... Hello just to add my two cents the Fentanyl patch was one of the best ... never made that mistake twice. ... mistake of leaving the patches out on the side of a friends jacuzzi were ... Thanx Nick, you've made me feel okay about using the patch. ...
    (alt.support.chronic-pain)
  • Re: FENTANYL 50 MCG/HOUR PATCHES
    ... Hello just to add my two cents the Fentanyl patch was one of the best meds I ... never made that mistake twice. ... mistake of leaving the patches out on the side of a friends jacuzzi were the ...
    (alt.support.chronic-pain)
  • Re: + shut-up-warnings-in-ipc-shmc.patch added to -mm tree
    ... >> by converting the macros to empty inline functions. ... > Sorry to be a nuisance, but I'm a little resistant to this patch. ... If we're going to start converting such things, ... static inline void empty_int ...
    (Linux-Kernel)
  • Re: [fake patch] un-inline sysfs_get_kobject and release_sysfs_dirent
    ... These routines are big enough, ... > inline functions. ... Although my previous patches have contributed ... although a previous patch that I posted ...
    (Linux-Kernel)
  • Re: [patch 00/47] 2.6.25-stable review
    ... Michael Krufky wrote: ... Would it be possible to add the seven patches that I sent two days ago? ... It is very important that patch #1 gets into the first dot release, ... review cycle -- my mistake! ...
    (Linux-Kernel)