]> git.baikalelectronics.ru Git - kernel.git/commit
types.h: don't expose struct ustat to userspace
authormaximilian attems <max@stro.at>
Fri, 23 May 2008 20:04:29 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 May 2008 16:56:09 +0000 (09:56 -0700)
commit1480a6ee9ba19bfe6746992f6bb225f41a69527d
treeba2a2b94aa2e4d0308c7586b498cd7d746587c1e
parent435bb383c4fc601ed57650fda7113470cb0849e0
types.h: don't expose struct ustat to userspace

<linux/types.h> can't be used together with <sys/ustat.h> because they
both define struct ustat:

    $ cat test.c
    #include <sys/ustat.h>
    #include <linux/types.h>
    $ gcc -c test.c
    In file included from test.c:2:
    /usr/include/linux/types.h:165: error: redefinition of 'struct ustat'

has been reported a while ago to debian, but seems to have been
lost in cat fighting: http://bugs.debian.org/429064

Signed-off-by: maximilian attems <max@stro.at>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/types.h