diff options
Diffstat (limited to 'drivers/scsi/st.c')
| -rw-r--r-- | drivers/scsi/st.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index d001c046551b..5eb54d8019b4 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
| @@ -3577,7 +3577,8 @@ static long st_compat_ioctl(struct file *file, unsigned int cmd, unsigned long a | |||
| 3577 | static struct st_buffer * | 3577 | static struct st_buffer * |
| 3578 | new_tape_buffer(int from_initialization, int need_dma, int max_sg) | 3578 | new_tape_buffer(int from_initialization, int need_dma, int max_sg) |
| 3579 | { | 3579 | { |
| 3580 | int i, priority, got = 0, segs = 0; | 3580 | int i, got = 0, segs = 0; |
| 3581 | gfp_t priority; | ||
| 3581 | struct st_buffer *tb; | 3582 | struct st_buffer *tb; |
| 3582 | 3583 | ||
| 3583 | if (from_initialization) | 3584 | if (from_initialization) |
| @@ -3610,7 +3611,8 @@ static struct st_buffer * | |||
| 3610 | /* Try to allocate enough space in the tape buffer */ | 3611 | /* Try to allocate enough space in the tape buffer */ |
| 3611 | static int enlarge_buffer(struct st_buffer * STbuffer, int new_size, int need_dma) | 3612 | static int enlarge_buffer(struct st_buffer * STbuffer, int new_size, int need_dma) |
| 3612 | { | 3613 | { |
| 3613 | int segs, nbr, max_segs, b_size, priority, order, got; | 3614 | int segs, nbr, max_segs, b_size, order, got; |
| 3615 | gfp_t priority; | ||
| 3614 | 3616 | ||
| 3615 | if (new_size <= STbuffer->buffer_size) | 3617 | if (new_size <= STbuffer->buffer_size) |
| 3616 | return 1; | 3618 | return 1; |
| @@ -4375,7 +4377,7 @@ static void do_create_class_files(struct scsi_tape *STp, int dev_num, int mode) | |||
| 4375 | snprintf(name, 10, "%s%s%s", rew ? "n" : "", | 4377 | snprintf(name, 10, "%s%s%s", rew ? "n" : "", |
| 4376 | STp->disk->disk_name, st_formats[i]); | 4378 | STp->disk->disk_name, st_formats[i]); |
| 4377 | st_class_member = | 4379 | st_class_member = |
| 4378 | class_device_create(st_sysfs_class, | 4380 | class_device_create(st_sysfs_class, NULL, |
| 4379 | MKDEV(SCSI_TAPE_MAJOR, | 4381 | MKDEV(SCSI_TAPE_MAJOR, |
| 4380 | TAPE_MINOR(dev_num, mode, rew)), | 4382 | TAPE_MINOR(dev_num, mode, rew)), |
| 4381 | &STp->device->sdev_gendev, "%s", name); | 4383 | &STp->device->sdev_gendev, "%s", name); |
