lkml.org 
[lkml]   [2009]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [git pull -tip] headers_check fixes for other architectures
On Fri, Feb 06, 2009 at 04:56:24PM +0100, Ingo Molnar wrote:
>
> * Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:
>
> > Taking this further, if you're including linux/types.h into another
> > header file, you're including it because you want some C type from
> > that or an included file. Use of that type is also not ASM friendly,
> > so the use is going to have to be excluded by ifndef in that header.
>
> There's a ton of header files that can be included in assembly code and
> which also contain C declarations and definitions. This is achieved by
> adding a:
>
> #ifndef __ASSEMBLY__
> #endif
>
> Blocks around the C code. Especially for smallish or single-purpose files
> this is often a cleaner method than splitting the file.

Err, yes, thank you for justifying my point.

And no, I didn't say anything about splitting files. Not sure why you
brought that up.


\
 
 \ /
  Last update: 2009-02-06 17:07    [W:0.125 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site