linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: arnd@arndb.de
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Sam Ravnborg <sam@ravnborg.org>,
	Kyle McMartin <kyle@infradead.org>, Ingo Molnar <mingo@elte.hu>,
	Jaswinder Singh Rajput <jaswinderrajput@gmail.com>,
	mingo@redhat.com, dwmw2@infradead.org,
	linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org
Subject: [patch 7/7] remove __KERNEL_STRICT_NAMES
Date: Thu, 26 Feb 2009 00:51:45 +0100	[thread overview]
Message-ID: <20090225235516.001867692@arndb.de> (raw)
In-Reply-To: 20090225235138.062045835@arndb.de

[-- Attachment #1: 0007-remove-__KERNEL_STRICT_NAMES.patch --]
[-- Type: text/plain, Size: 1927 bytes --]

With the last used of non-strict names gone from the
exported header files, we can remove the old libc5
compatibility cruft from our headers and only export
strict types.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 include/asm-generic/statfs.h |    5 +++--
 include/linux/types.h        |   13 ++-----------
 2 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/include/asm-generic/statfs.h b/include/asm-generic/statfs.h
index 6129d68..3b4fb3e 100644
--- a/include/asm-generic/statfs.h
+++ b/include/asm-generic/statfs.h
@@ -1,8 +1,9 @@
 #ifndef _GENERIC_STATFS_H
 #define _GENERIC_STATFS_H
 
-#ifndef __KERNEL_STRICT_NAMES
-# include <linux/types.h>
+#include <linux/types.h>
+
+#ifdef __KERNEL__
 typedef __kernel_fsid_t	fsid_t;
 #endif
 
diff --git a/include/linux/types.h b/include/linux/types.h
index 712ca53..6508ba1 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -11,7 +11,7 @@
 #include <linux/posix_types.h>
 #include <asm/types.h>
 
-#ifndef __KERNEL_STRICT_NAMES
+#ifdef __KERNEL__
 
 typedef __u32 __kernel_dev_t;
 
@@ -29,7 +29,6 @@ typedef __kernel_timer_t	timer_t;
 typedef __kernel_clockid_t	clockid_t;
 typedef __kernel_mqd_t		mqd_t;
 
-#ifdef __KERNEL__
 typedef _Bool			bool;
 
 typedef __kernel_uid32_t	uid_t;
@@ -45,14 +44,6 @@ typedef __kernel_old_uid_t	old_uid_t;
 typedef __kernel_old_gid_t	old_gid_t;
 #endif /* CONFIG_UID16 */
 
-/* libc5 includes this file to define uid_t, thus uid_t can never change
- * when it is included by non-kernel code
- */
-#else
-typedef __kernel_uid_t		uid_t;
-typedef __kernel_gid_t		gid_t;
-#endif /* __KERNEL__ */
-
 #if defined(__GNUC__)
 typedef __kernel_loff_t		loff_t;
 #endif
@@ -154,7 +145,7 @@ typedef unsigned long blkcnt_t;
 #define pgoff_t unsigned long
 #endif
 
-#endif /* __KERNEL_STRICT_NAMES */
+#endif /* __KERNEL__ */
 
 /*
  * Below are truly Linux-specific types that should never collide with
-- 
1.5.6.3

-- 

  parent reply	other threads:[~2009-02-26  0:02 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-25 23:51 [patch 0/7] Use strict kernel types to fix the world arnd
2009-02-25 23:51 ` [patch 1/7] make exported headers use strict posix types arnd
2009-02-25 23:51 ` [patch 2/7] make most exported headers use strict integer types arnd
2009-02-25 23:51 ` [patch 3/7] make MTD " arnd
2009-02-26  0:32   ` Thiago Galesi
2009-02-26  0:34     ` Arnd Bergmann
2009-02-25 23:51 ` [patch 4/7] make drm " arnd
2009-02-25 23:51 ` [patch 5/7] make netfilter " arnd
2009-02-25 23:51   ` arnd
2009-02-26  0:10   ` Jan Engelhardt
2009-02-26  0:10     ` Jan Engelhardt
2009-02-26  0:14     ` H. Peter Anvin
2009-02-26  0:39       ` Jan Engelhardt
2009-02-26  1:02         ` H. Peter Anvin
2009-02-26  0:24     ` H. Peter Anvin
2009-02-26  0:55     ` David Miller
2009-02-26  0:55       ` David Miller
2009-02-26  0:58       ` H. Peter Anvin
2009-02-26  0:59         ` David Miller
2009-02-25 23:51 ` [patch 6/7] coda_psdev: dont export internals to user space arnd
2009-02-25 23:51 ` arnd [this message]
2009-02-26  0:02 ` [patch 0/7] Use strict kernel types to fix the world H. Peter Anvin
2009-02-26  0:24   ` Arnd Bergmann
2009-02-26  0:24     ` Arnd Bergmann
2009-02-26  0:30     ` H. Peter Anvin
2009-02-26  0:52       ` Arnd Bergmann
2009-02-26  0:56         ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090225235516.001867692@arndb.de \
    --to=arnd@arndb.de \
    --cc=dwmw2@infradead.org \
    --cc=hpa@zytor.com \
    --cc=jaswinderrajput@gmail.com \
    --cc=kyle@infradead.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).