Skip to content

Commit

Permalink
[SCSI] bsg: add linux/types.h include to bsg.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Douglas Gilbert authored and James Bottomley committed Mar 13, 2009
1 parent 154229a commit 4ab3b73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/bsg.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4ab3b73

Please sign in to comment.