Skip to content

Commit

Permalink
genhd: remove dead and duplicated scsi code
Browse files Browse the repository at this point in the history
blk_scsi_cmd_filter use was deprecated by 4beab5c and the SCSI macros
are duplicated in blkdev.h, both likely reintroduced by a bad merge from
540eed5.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Jon Derrick authored and Jens Axboe committed Dec 22, 2016
1 parent 64d656a commit 72c5296
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/linux/genhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,6 @@ enum {
DISK_EVENT_EJECT_REQUEST = 1 << 1, /* eject requested */
};

#define BLK_SCSI_MAX_CMDS (256)
#define BLK_SCSI_CMD_PER_LONG (BLK_SCSI_MAX_CMDS / (sizeof(long) * 8))

struct blk_scsi_cmd_filter {
unsigned long read_ok[BLK_SCSI_CMD_PER_LONG];
unsigned long write_ok[BLK_SCSI_CMD_PER_LONG];
struct kobject kobj;
};

struct disk_part_tbl {
struct rcu_head rcu_head;
int len;
Expand Down

0 comments on commit 72c5296

Please sign in to comment.