]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] bsg: add linux/types.h include to bsg.h
authorDouglas Gilbert <dgilbert@interlog.com>
Mon, 9 Mar 2009 14:51:38 +0000 (10:51 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 13 Mar 2009 20:33:25 +0000 (15:33 -0500)
Since bsg.h has recently been added to the list of kernel
headers that should be exported to the user space, this
attachment makes bsg.h more user space "friendly".
Specifically autotools dislike headers that don't compile
freestanding and bsg.h's use of __u32 types (and friends)
are not standard C (C90 or C99). The inclusion of
linux/types.h fixes that.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
include/linux/bsg.h

index cf0303a6061195de840a22d97ff24a7b41d4d49e..6c0a00dfa90c43a521968cc8b5d9e6ee6563c6d2 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef BSG_H
 #define BSG_H
 
+#include <linux/types.h>
+
 #define BSG_PROTOCOL_SCSI              0
 
 #define BSG_SUB_PROTOCOL_SCSI_CMD      0