Commit 476d42f138ba82389a92a894d8a630a70d36278f
Committed by
Jens Axboe
1 parent
cc56f7de7f
block/scsi_ioctl.c: quiet sparse noise
Quiet sparse noise about symbol's not being declared. Symbol blk_default_cmd_filter is only used locally and should be static. The function blk_scsi_ioctl_init() is a fs_initcall and should also be static. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
block/scsi_ioctl.c
... | ... | @@ -35,8 +35,10 @@ |
35 | 35 | struct blk_cmd_filter { |
36 | 36 | unsigned long read_ok[BLK_SCSI_CMD_PER_LONG]; |
37 | 37 | unsigned long write_ok[BLK_SCSI_CMD_PER_LONG]; |
38 | -} blk_default_cmd_filter; | |
38 | +}; | |
39 | 39 | |
40 | +static struct blk_cmd_filter blk_default_cmd_filter; | |
41 | + | |
40 | 42 | /* Command group 3 is reserved and should never be used. */ |
41 | 43 | const unsigned char scsi_command_size_tbl[8] = |
42 | 44 | { |
... | ... | @@ -675,7 +677,7 @@ |
675 | 677 | } |
676 | 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 | 682 | blk_set_cmd_filter_defaults(&blk_default_cmd_filter); |
681 | 683 | return 0; |