inclusion of <endian.h> in a kernel header? ok or not?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frans Meulenbroeks
Date: Tuesday, August 19, 2008 - 12:16 pm

Is it ok to #include <endian.h> in a kernel header file.
This is done in linux/patchkey.h and linux/soundcard.h but other
places seem to prefer <asm/byteorder.h>

Basically I am looking for a simple way to isolate a piece of endian
specific code (something like #ifdef BIG_ENDIAN ...#endif
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
inclusion of <endian.h> in a kernel header? ok or not?, Frans Meulenbroeks, (Tue Aug 19, 12:16 pm)
Re: inclusion of &lt;endian.h&gt; in a kernel header? ok or not?, Frans Meulenbroeks, (Tue Aug 19, 2:06 pm)