Skip to contentSkip to conversation

genhd: remove dead and duplicated scsi code

PATCH In review Jon Derrick 3 participants 3 messages Dec 20, 2016 – Dec 22, 2016 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genhd: remove dead and duplicated scsi code

blk_scsi_cmd_filter use was deprecated by 4beab5c6 and the SCSI macros are duplicated in blkdev.h, both likely reintroduced by a bad merge from 540eed56.

---
 include/linux/genhd.h | 9 ---------
 1 file changed, 9 deletions(-)
include/linux/genhd.h +0 -9
index e0341af..76f3975 100644
@@ -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;
Signature · 1 line
1.8.3.1
maintainer
#2 lore raw
In reply to Jon Derrick
Quoted 3 lines · Jon Derrick

blk_scsi_cmd_filter use was deprecated by 4beab5c6 and the SCSI macros are duplicated in blkdev.h, both likely reintroduced by a bad merge from 540eed56.

Wow, 2008! Applied, thanks.

Signature · 1 line
Jens Axboe