* [PATCH] Include <linux/types.h> for definitions of __[us]{8,16,32,64} types
@ 2009-01-01 16:17 Anders Larsen
2009-01-07 19:37 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Anders Larsen @ 2009-01-01 16:17 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
On 2008-12-30 11:32:33, Sam Ravnborg wrote:
> We have added a few additional validation checks of the userspace headers:
...
> 3) We should include <linux/types.h> and not <asm/types.h>
> 4) If we use a __[us]{8,16,32,64} type then we must include <linux/types.h>
Satisfy these requirements for the linux/qnx*.h headers.
Signed-off-by: Anders Larsen <al@alarsen.net>
---
include/linux/qnx4_fs.h | 4 +---
include/linux/qnxtypes.h | 5 ++---
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/include/linux/qnx4_fs.h b/include/linux/qnx4_fs.h
index 34a196e..787d19e 100644
--- a/include/linux/qnx4_fs.h
+++ b/include/linux/qnx4_fs.h
@@ -2,14 +2,12 @@
* Name : qnx4_fs.h
* Author : Richard Frowijn
* Function : qnx4 global filesystem definitions
- * Version : 1.0.2
- * Last modified : 2000-01-31
- *
* History : 23-03-1998 created
*/
#ifndef _LINUX_QNX4_FS_H
#define _LINUX_QNX4_FS_H
+#include <linux/types.h>
#include <linux/qnxtypes.h>
#include <linux/magic.h>
diff --git a/include/linux/qnxtypes.h b/include/linux/qnxtypes.h
index a3eb113..bebbe5c 100644
--- a/include/linux/qnxtypes.h
+++ b/include/linux/qnxtypes.h
@@ -2,9 +2,6 @@
* Name : qnxtypes.h
* Author : Richard Frowijn
* Function : standard qnx types
- * Version : 1.0.2
- * Last modified : 2000-01-06
- *
* History : 22-03-1998 created
*
*/
@@ -12,6 +9,8 @@
#ifndef _QNX4TYPES_H
#define _QNX4TYPES_H
+#include <linux/types.h>
+
typedef __le16 qnx4_nxtnt_t;
typedef __u8 qnx4_ftype_t;
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Include <linux/types.h> for definitions of __[us]{8,16,32,64} types
2009-01-01 16:17 [PATCH] Include <linux/types.h> for definitions of __[us]{8,16,32,64} types Anders Larsen
@ 2009-01-07 19:37 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2009-01-07 19:37 UTC (permalink / raw)
To: Anders Larsen; +Cc: Linus Torvalds, linux-kernel
On Thu, Jan 01, 2009 at 05:17:35PM +0100, Anders Larsen wrote:
> On 2008-12-30 11:32:33, Sam Ravnborg wrote:
> > We have added a few additional validation checks of the userspace headers:
> ...
> > 3) We should include <linux/types.h> and not <asm/types.h>
> > 4) If we use a __[us]{8,16,32,64} type then we must include <linux/types.h>
>
> Satisfy these requirements for the linux/qnx*.h headers.
>
> Signed-off-by: Anders Larsen <al@alarsen.net>
Applied to kbuild-fixes.git
Thanks,
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-07 19:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-01 16:17 [PATCH] Include <linux/types.h> for definitions of __[us]{8,16,32,64} types Anders Larsen
2009-01-07 19:37 ` Sam Ravnborg
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).