diff options
| author | Jens Axboe <jens.axboe@oracle.com> | 2007-09-21 03:19:54 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@carl.home.kernel.dk> | 2007-10-10 03:25:57 -0400 |
| commit | f5ff8422bbdd59f8c1f699df248e1b7a11073027 (patch) | |
| tree | cdd0777acc58c0badd2d0ae66f3efc2f7318e776 /include/linux/blkdev.h | |
| parent | 3317fedba9446465082bcc6ce1232451ad1d51ce (diff) | |
Fix warnings with !CONFIG_BLOCK
Hide everything in blkdev.h with CONFIG_BLOCK isn't set, and fixup
the (few) files that fail to build because they were relying on blkdev.h
pulling in extra includes for them.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 492ac946391..a0a99814044 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef _LINUX_BLKDEV_H | 1 | #ifndef _LINUX_BLKDEV_H |
| 2 | #define _LINUX_BLKDEV_H | 2 | #define _LINUX_BLKDEV_H |
| 3 | 3 | ||
| 4 | #ifdef CONFIG_BLOCK | ||
| 5 | |||
| 4 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
| 5 | #include <linux/major.h> | 7 | #include <linux/major.h> |
| 6 | #include <linux/genhd.h> | 8 | #include <linux/genhd.h> |
| @@ -32,8 +34,6 @@ | |||
| 32 | ) | 34 | ) |
| 33 | #endif | 35 | #endif |
| 34 | 36 | ||
| 35 | #ifdef CONFIG_BLOCK | ||
| 36 | |||
| 37 | struct scsi_ioctl_command; | 37 | struct scsi_ioctl_command; |
| 38 | 38 | ||
| 39 | struct request_queue; | 39 | struct request_queue; |
