History

scsi: scsi_ioctl: Move scsi_command_size_tbl to scsi_common.c

Move the SCSI command size table to common SCSI code.

Christoph Hellwig committed 5 years ago

Commit b69367d1 parent 2cece372 files · +6 −8Browse files

Unified · Split

2 files
  1. block/scsi_ioctl.c +0 −8
  2. drivers/scsi/scsi_common.c +6 −0
block/scsi_ioctl.c+0−8
@@ -29,14 +29,6 @@ struct blk_cmd_filter { · 28 unmodified lines
2929
3030 static struct blk_cmd_filter blk_default_cmd_filter;
3131
32−/* Command group 3 is reserved and should never be used. */
33−const unsigned char scsi_command_size_tbl[8] =
34−{
35− 6, 10, 10, 12,
36− 16, 12, 10, 10
37−};
38−EXPORT_SYMBOL(scsi_command_size_tbl);
39−
4032 static int sg_get_version(int __user *p)
4133 {
4234 static const int sg_version_num = 30527;
drivers/scsi/scsi_common.c+6−0
@@ -10,6 +10,12 @@ · 9 unmodified lines
1010 #include <asm/unaligned.h>
1111 #include <scsi/scsi_common.h>
1212
13+/* Command group 3 is reserved and should never be used. */
14+const unsigned char scsi_command_size_tbl[8] = {
15+ 6, 10, 10, 12, 16, 12, 10, 10
16+};
17+EXPORT_SYMBOL(scsi_command_size_tbl);
18+
1319 /* NB: These are exposed through /proc/scsi/scsi and form part of the ABI.
1420 * You may not alter any existing entry (although adding new ones is
1521 * encouraged once assigned by ANSI/INCITS T10).