diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /block/scsi_ioctl.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'block/scsi_ioctl.c')
-rw-r--r-- | block/scsi_ioctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index e5b10017a50b..a8b5a10eb5b0 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c | |||
@@ -35,7 +35,9 @@ | |||
35 | struct blk_cmd_filter { | 35 | struct blk_cmd_filter { |
36 | unsigned long read_ok[BLK_SCSI_CMD_PER_LONG]; | 36 | unsigned long read_ok[BLK_SCSI_CMD_PER_LONG]; |
37 | unsigned long write_ok[BLK_SCSI_CMD_PER_LONG]; | 37 | unsigned long write_ok[BLK_SCSI_CMD_PER_LONG]; |
38 | } blk_default_cmd_filter; | 38 | }; |
39 | |||
40 | static struct blk_cmd_filter blk_default_cmd_filter; | ||
39 | 41 | ||
40 | /* Command group 3 is reserved and should never be used. */ | 42 | /* Command group 3 is reserved and should never be used. */ |
41 | const unsigned char scsi_command_size_tbl[8] = | 43 | const unsigned char scsi_command_size_tbl[8] = |
@@ -675,7 +677,7 @@ int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mod | |||
675 | } | 677 | } |
676 | EXPORT_SYMBOL(scsi_cmd_ioctl); | 678 | EXPORT_SYMBOL(scsi_cmd_ioctl); |
677 | 679 | ||
678 | int __init blk_scsi_ioctl_init(void) | 680 | static int __init blk_scsi_ioctl_init(void) |
679 | { | 681 | { |
680 | blk_set_cmd_filter_defaults(&blk_default_cmd_filter); | 682 | blk_set_cmd_filter_defaults(&blk_default_cmd_filter); |
681 | return 0; | 683 | return 0; |