lkml.org 
[lkml]   [2011]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] trimming includes from linux/security.h
On Wed, Nov 30, 2011 at 04:09:25PM +0900, Tetsuo Handa wrote:
> Al Viro wrote:
> > linux/security.h pulls a lot of garbage; most of it can be avoided
> > by several more struct ....; added in there,
>
> Does it make sense to create a header file that contains only "struct ....;"
> lines? A lot of "struct ....;" lines are used for avoiding compiler warning.
> This results in LXR (linux cross reference) showing like
>
> Defined as a struct type in:
>
> * security/selinux/include/avc.h, line 35

Er... Then LXR sucks. It's trivial to distinguish those from actual
definition; talks to LXR folks and let them fix their code...

struct <tag> ;

vs

struct <tag> {

is not that hard to handle, even if you bother with __attribute__ in weird
places like that. They need to distinguish those from
struct <tag> <ident>
etc., after all, so they do some amount of lookahead...


\
 
 \ /
  Last update: 2011-11-30 08:51    [W:0.061 / U:1.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site