[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080819195239.GA21209@cs181140183.pp.htv.fi>
Date: Tue, 19 Aug 2008 22:52:39 +0300
From: Adrian Bunk <bunk@...nel.org>
To: Frans Meulenbroeks <fransmeulenbroeks@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: inclusion of <endian.h> in a kernel header? ok or not?
On Tue, Aug 19, 2008 at 09:16:56PM +0200, Frans Meulenbroeks wrote:
> 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>
>...
Look at the two files you mention - they only do it in userspace.
And considering that these only users in the kernel are in the OSS code
it's most likely not the best solution.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
--
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