aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r--drivers/scsi/sd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 8e2e893db9e7..2714becc2eaf 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -119,8 +119,8 @@ static DEFINE_IDA(sd_index_ida);
119 * object after last put) */ 119 * object after last put) */
120static DEFINE_MUTEX(sd_ref_mutex); 120static DEFINE_MUTEX(sd_ref_mutex);
121 121
122struct kmem_cache *sd_cdb_cache; 122static struct kmem_cache *sd_cdb_cache;
123mempool_t *sd_cdb_pool; 123static mempool_t *sd_cdb_pool;
124 124
125static const char *sd_cache_types[] = { 125static const char *sd_cache_types[] = {
126 "write through", "none", "write back", 126 "write through", "none", "write back",
@@ -147,7 +147,7 @@ sd_store_cache_type(struct device *dev, struct device_attribute *attr,
147 return -EINVAL; 147 return -EINVAL;
148 148
149 for (i = 0; i < ARRAY_SIZE(sd_cache_types); i++) { 149 for (i = 0; i < ARRAY_SIZE(sd_cache_types); i++) {
150 const int len = strlen(sd_cache_types[i]); 150 len = strlen(sd_cache_types[i]);
151 if (strncmp(sd_cache_types[i], buf, len) == 0 && 151 if (strncmp(sd_cache_types[i], buf, len) == 0 &&
152 buf[len] == '\n') { 152 buf[len] == '\n') {
153 ct = i; 153 ct = i;
@@ -1423,7 +1423,7 @@ sd_spinup_disk(struct scsi_disk *sdkp)
1423/* 1423/*
1424 * Determine whether disk supports Data Integrity Field. 1424 * Determine whether disk supports Data Integrity Field.
1425 */ 1425 */
1426void sd_read_protection_type(struct scsi_disk *sdkp, unsigned char *buffer) 1426static void sd_read_protection_type(struct scsi_disk *sdkp, unsigned char *buffer)
1427{ 1427{
1428 struct scsi_device *sdp = sdkp->device; 1428 struct scsi_device *sdp = sdkp->device;
1429 u8 type; 1429 u8 type;
@@ -1969,7 +1969,7 @@ defaults:
1969 * The ATO bit indicates whether the DIF application tag is available 1969 * The ATO bit indicates whether the DIF application tag is available
1970 * for use by the operating system. 1970 * for use by the operating system.
1971 */ 1971 */
1972void sd_read_app_tag_own(struct scsi_disk *sdkp, unsigned char *buffer) 1972static void sd_read_app_tag_own(struct scsi_disk *sdkp, unsigned char *buffer)
1973{ 1973{
1974 int res, offset; 1974 int res, offset;
1975 struct scsi_device *sdp = sdkp->device; 1975 struct scsi_device *sdp = sdkp->device;
@@ -2315,7 +2315,7 @@ static int sd_probe(struct device *dev)
2315 struct scsi_device *sdp = to_scsi_device(dev); 2315 struct scsi_device *sdp = to_scsi_device(dev);
2316 struct scsi_disk *sdkp; 2316 struct scsi_disk *sdkp;
2317 struct gendisk *gd; 2317 struct gendisk *gd;
2318 u32 index; 2318 int index;
2319 int error; 2319 int error;
2320 2320
2321 error = -ENODEV; 2321 error = -ENODEV;