All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andres Salomon <dilinger@queued.net>
To: sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Sam Ravnborg <sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>,
	davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to
Date: Fri, 08 Oct 2010 07:43:54 +0000	[thread overview]
Message-ID: <20101008004354.13b5b254@debxo> (raw)


We need phandle for some exported sparc headers; of.h isn't an
exported header, and it would be silly to export it when all we
really need is one or two types from it.  Also, later patches
use phandle in structs that are exported to userspace, so export
a __kernel_phandle type.

Signed-off-by: Andres Salomon <dilinger@queued.net>
---
 include/linux/of.h    |    3 ---
 include/linux/types.h |    7 +++++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/linux/of.h b/include/linux/of.h
index cad7cf0..db184dc 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -25,9 +25,6 @@
 
 #ifdef CONFIG_OF
 
-typedef u32 phandle;
-typedef u32 ihandle;
-
 struct property {
 	char	*name;
 	int	length;
diff --git a/include/linux/types.h b/include/linux/types.h
index 01a082f..67a034a 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -178,10 +178,17 @@ typedef __u64 __bitwise __be64;
 typedef __u16 __bitwise __sum16;
 typedef __u32 __bitwise __wsum;
 
+/* Basic openboot/openfirmware types */
+typedef __u32 __kernel_phandle;
+typedef __u32 __kernel_ihandle;
+
 #ifdef __KERNEL__
 typedef unsigned __bitwise__ gfp_t;
 typedef unsigned __bitwise__ fmode_t;
 
+typedef __kernel_phandle phandle;
+typedef __kernel_ihandle ihandle;
+
 #ifdef CONFIG_PHYS_ADDR_T_64BIT
 typedef u64 phys_addr_t;
 #else
-- 
1.5.6.5


WARNING: multiple messages have this Message-ID (diff)
From: Andres Salomon <dilinger@queued.net>
To: sparclinux@vger.kernel.org
Cc: davem@davemloft.net, grant.likely@secretlab.ca,
	linux-kernel@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>,
	devicetree-discuss@lists.ozlabs.org
Subject: [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace
Date: Fri, 8 Oct 2010 00:43:54 -0700	[thread overview]
Message-ID: <20101008004354.13b5b254@debxo> (raw)


We need phandle for some exported sparc headers; of.h isn't an
exported header, and it would be silly to export it when all we
really need is one or two types from it.  Also, later patches
use phandle in structs that are exported to userspace, so export
a __kernel_phandle type.

Signed-off-by: Andres Salomon <dilinger@queued.net>
---
 include/linux/of.h    |    3 ---
 include/linux/types.h |    7 +++++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/linux/of.h b/include/linux/of.h
index cad7cf0..db184dc 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -25,9 +25,6 @@
 
 #ifdef CONFIG_OF
 
-typedef u32 phandle;
-typedef u32 ihandle;
-
 struct property {
 	char	*name;
 	int	length;
diff --git a/include/linux/types.h b/include/linux/types.h
index 01a082f..67a034a 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -178,10 +178,17 @@ typedef __u64 __bitwise __be64;
 typedef __u16 __bitwise __sum16;
 typedef __u32 __bitwise __wsum;
 
+/* Basic openboot/openfirmware types */
+typedef __u32 __kernel_phandle;
+typedef __u32 __kernel_ihandle;
+
 #ifdef __KERNEL__
 typedef unsigned __bitwise__ gfp_t;
 typedef unsigned __bitwise__ fmode_t;
 
+typedef __kernel_phandle phandle;
+typedef __kernel_ihandle ihandle;
+
 #ifdef CONFIG_PHYS_ADDR_T_64BIT
 typedef u64 phys_addr_t;
 #else
-- 
1.5.6.5


WARNING: multiple messages have this Message-ID (diff)
From: Andres Salomon <dilinger-pFFUokh25LWsTnJN9+BGXg@public.gmane.org>
To: sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Sam Ravnborg <sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>,
	davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace
Date: Fri, 8 Oct 2010 00:43:54 -0700	[thread overview]
Message-ID: <20101008004354.13b5b254@debxo> (raw)


We need phandle for some exported sparc headers; of.h isn't an
exported header, and it would be silly to export it when all we
really need is one or two types from it.  Also, later patches
use phandle in structs that are exported to userspace, so export
a __kernel_phandle type.

Signed-off-by: Andres Salomon <dilinger-pFFUokh25LWsTnJN9+BGXg@public.gmane.org>
---
 include/linux/of.h    |    3 ---
 include/linux/types.h |    7 +++++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/linux/of.h b/include/linux/of.h
index cad7cf0..db184dc 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -25,9 +25,6 @@
 
 #ifdef CONFIG_OF
 
-typedef u32 phandle;
-typedef u32 ihandle;
-
 struct property {
 	char	*name;
 	int	length;
diff --git a/include/linux/types.h b/include/linux/types.h
index 01a082f..67a034a 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -178,10 +178,17 @@ typedef __u64 __bitwise __be64;
 typedef __u16 __bitwise __sum16;
 typedef __u32 __bitwise __wsum;
 
+/* Basic openboot/openfirmware types */
+typedef __u32 __kernel_phandle;
+typedef __u32 __kernel_ihandle;
+
 #ifdef __KERNEL__
 typedef unsigned __bitwise__ gfp_t;
 typedef unsigned __bitwise__ fmode_t;
 
+typedef __kernel_phandle phandle;
+typedef __kernel_ihandle ihandle;
+
 #ifdef CONFIG_PHYS_ADDR_T_64BIT
 typedef u64 phys_addr_t;
 #else
-- 
1.5.6.5

             reply	other threads:[~2010-10-08  7:43 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-08  7:43 Andres Salomon [this message]
2010-10-08  7:43 ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Andres Salomon
2010-10-08  7:43 ` Andres Salomon
2010-10-08 17:12 ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and Grant Likely
2010-10-08 17:12   ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Grant Likely
2010-10-08 17:17   ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and David Miller
2010-10-08 17:17     ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace David Miller
2010-10-08 17:36     ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and Grant Likely
2010-10-08 17:36       ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Grant Likely
     [not found]       ` <20101008173650.GH3863-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2010-10-08 17:45         ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and David Miller
2010-10-08 17:45           ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace David Miller
2010-10-08 17:45           ` David Miller
2010-10-08 18:27           ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and Grant Likely
2010-10-08 18:27             ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Grant Likely
2010-10-08 18:38             ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export Andres Salomon
2010-10-08 18:38               ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Andres Salomon
2010-10-08 18:34           ` [PATCH] sparc: stop exporting openprom.h header Andres Salomon
2010-10-08 18:34             ` Andres Salomon
2010-10-08 18:52             ` David Miller
2010-10-08 18:52               ` David Miller
2010-10-08 19:00               ` Grant Likely
2010-10-08 19:00                 ` Grant Likely
2010-10-08 19:00                 ` Grant Likely
     [not found]                 ` <AANLkTikuaM5VZadCs302HwYYhOHi1Czw2BLam3ZQP=aj-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-08 19:02                   ` David Miller
2010-10-08 19:02                     ` David Miller
2010-10-08 19:02                     ` David Miller
2010-10-08 21:34                 ` Andres Salomon
2010-10-08 21:34                   ` Andres Salomon
2010-10-08 21:34                   ` Andres Salomon
2010-10-09  8:51                   ` Grant Likely
2010-10-09  8:51                     ` Grant Likely
2010-10-09  8:51                     ` Grant Likely
2010-10-09 20:48                     ` Andres Salomon
2010-10-09 20:48                       ` Andres Salomon
2010-10-10  5:13                       ` Grant Likely
2010-10-10  5:13                         ` Grant Likely
2010-10-10  7:19                         ` Andres Salomon
2010-10-10  7:19                           ` Andres Salomon

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=20101008004354.13b5b254@debxo \
    --to=dilinger@queued.net \
    --cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org \
    --cc=sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.