Skip to content

Commit

Permalink
[BLOCK] Only include the compat ioctl code if CONFIG_BLOCK is set
Browse files Browse the repository at this point in the history
Add an extra CONFIG_BLOCK_COMPAT that we can use in the Makefile

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Oct 12, 2007
1 parent 43d28d9 commit 99874d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ config BLK_DEV_BSG
protocols (e.g. Task Management Functions and SMP in Serial
Attached SCSI).

config BLOCK_COMPAT
bool
default y

endif # BLOCK

source block/Kconfig.iosched
2 changes: 1 addition & 1 deletion block/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o

obj-$(CONFIG_BLK_DEV_IO_TRACE) += blktrace.o
obj-$(CONFIG_COMPAT) += compat_ioctl.o
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o

0 comments on commit 99874d5

Please sign in to comment.