| To: | Sam Ravnborg <sam@ravnborg.org> |
|---|---|
| Subject: | [PATCH 4/6] headers_check fix: mips, ioctl.h |
| From: | Jaswinder Singh Rajput <jaswinder@kernel.org> |
| Date: | Thu, 04 Jun 2009 18:05:49 +0530 |
| Cc: | Ingo Molnar <mingo@elte.hu>, Andrew Morton <akpm@linux-foundation.org>, LKML <linux-kernel@vger.kernel.org>, Ralf Baechle <ralf@linux-mips.org>, linux-mips <linux-mips@linux-mips.org>, Michael Abbott <michael@araneidae.co.uk> |
| In-reply-to: | <1244118714.5172.33.camel@ht.satnam> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1244118232.5172.26.camel@ht.satnam> <1244118476.5172.29.camel@ht.satnam> <1244118599.5172.31.camel@ht.satnam> <1244118714.5172.33.camel@ht.satnam> |
| Sender: | linux-mips-bounce@linux-mips.org |
Make ioctl.h compatible with asm-generic/ioctl.h and userspace
fix the following 'make headers_check' warning:
usr/include/asm-mips/ioctl.h:64: extern's make no sense in userspace
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
arch/mips/include/asm/ioctl.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include/asm/ioctl.h
b/arch/mips/include/asm/ioctl.h
index 85067e2..9161634 100644
--- a/arch/mips/include/asm/ioctl.h
+++ b/arch/mips/include/asm/ioctl.h
@@ -60,12 +60,16 @@
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))
+#ifdef __KERNEL__
/* provoke compile error for invalid uses of size argument */
extern unsigned int __invalid_size_argument_for_IOC;
#define _IOC_TYPECHECK(t) \
((sizeof(t) == sizeof(t[1]) && \
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
sizeof(t) : __invalid_size_argument_for_IOC)
+#else
+#define _IOC_TYPECHECK(t) (sizeof(t))
+#endif
/* used to create numbers */
#define _IO(type, nr) _IOC(_IOC_NONE, (type), (nr), 0)
--
1.6.0.6
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH-v2] Hibernation Support in mips system, wuzhangjin |
|---|---|
| Next by Date: | Re: [PATCH 4/6] headers_check fix: mips, ioctl.h, Ralf Baechle |
| Previous by Thread: | [PATCH-v2] Hibernation Support in mips system, wuzhangjin |
| Next by Thread: | Re: [PATCH 4/6] headers_check fix: mips, ioctl.h, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |