diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/loop.c | 4 | ||||
-rw-r--r-- | drivers/block/paride/pf.c | 2 | ||||
-rw-r--r-- | drivers/block/rd.c | 2 | ||||
-rw-r--r-- | drivers/block/sx8.c | 5 |
4 files changed, 7 insertions, 6 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 9983e7200210..013c5daddb0b 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -209,7 +209,7 @@ static int do_lo_send_aops(struct loop_device *lo, struct bio_vec *bvec, | |||
209 | { | 209 | { |
210 | struct file *file = lo->lo_backing_file; /* kudos to NFsckingS */ | 210 | struct file *file = lo->lo_backing_file; /* kudos to NFsckingS */ |
211 | struct address_space *mapping = file->f_mapping; | 211 | struct address_space *mapping = file->f_mapping; |
212 | struct address_space_operations *aops = mapping->a_ops; | 212 | const struct address_space_operations *aops = mapping->a_ops; |
213 | pgoff_t index; | 213 | pgoff_t index; |
214 | unsigned offset, bv_offs; | 214 | unsigned offset, bv_offs; |
215 | int len, ret; | 215 | int len, ret; |
@@ -783,7 +783,7 @@ static int loop_set_fd(struct loop_device *lo, struct file *lo_file, | |||
783 | 783 | ||
784 | error = -EINVAL; | 784 | error = -EINVAL; |
785 | if (S_ISREG(inode->i_mode) || S_ISBLK(inode->i_mode)) { | 785 | if (S_ISREG(inode->i_mode) || S_ISBLK(inode->i_mode)) { |
786 | struct address_space_operations *aops = mapping->a_ops; | 786 | const struct address_space_operations *aops = mapping->a_ops; |
787 | /* | 787 | /* |
788 | * If we can't read - sorry. If we only can't write - well, | 788 | * If we can't read - sorry. If we only can't write - well, |
789 | * it's going to be read-only. | 789 | * it's going to be read-only. |
diff --git a/drivers/block/paride/pf.c b/drivers/block/paride/pf.c index 852b564e903a..1a9dee19efcf 100644 --- a/drivers/block/paride/pf.c +++ b/drivers/block/paride/pf.c | |||
@@ -707,7 +707,7 @@ static int pf_detect(void) | |||
707 | if (pi_init(pf->pi, 0, conf[D_PRT], conf[D_MOD], | 707 | if (pi_init(pf->pi, 0, conf[D_PRT], conf[D_MOD], |
708 | conf[D_UNI], conf[D_PRO], conf[D_DLY], | 708 | conf[D_UNI], conf[D_PRO], conf[D_DLY], |
709 | pf_scratch, PI_PF, verbose, pf->name)) { | 709 | pf_scratch, PI_PF, verbose, pf->name)) { |
710 | if (!pf_probe(pf) && pf->disk) { | 710 | if (pf->disk && !pf_probe(pf)) { |
711 | pf->present = 1; | 711 | pf->present = 1; |
712 | k++; | 712 | k++; |
713 | } else | 713 | } else |
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index e64f26ec6140..a9e1c2524c2a 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c | |||
@@ -190,7 +190,7 @@ static int ramdisk_set_page_dirty(struct page *page) | |||
190 | return 0; | 190 | return 0; |
191 | } | 191 | } |
192 | 192 | ||
193 | static struct address_space_operations ramdisk_aops = { | 193 | static const struct address_space_operations ramdisk_aops = { |
194 | .readpage = ramdisk_readpage, | 194 | .readpage = ramdisk_readpage, |
195 | .prepare_write = ramdisk_prepare_write, | 195 | .prepare_write = ramdisk_prepare_write, |
196 | .commit_write = ramdisk_commit_write, | 196 | .commit_write = ramdisk_commit_write, |
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index fbddeb4b04a2..10a4aa5fb54d 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -1690,9 +1690,10 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1690 | DPRINTK("waiting for probe_comp\n"); | 1690 | DPRINTK("waiting for probe_comp\n"); |
1691 | wait_for_completion(&host->probe_comp); | 1691 | wait_for_completion(&host->probe_comp); |
1692 | 1692 | ||
1693 | printk(KERN_INFO "%s: pci %s, ports %d, io %lx, irq %u, major %d\n", | 1693 | printk(KERN_INFO "%s: pci %s, ports %d, io %llx, irq %u, major %d\n", |
1694 | host->name, pci_name(pdev), (int) CARM_MAX_PORTS, | 1694 | host->name, pci_name(pdev), (int) CARM_MAX_PORTS, |
1695 | pci_resource_start(pdev, 0), pdev->irq, host->major); | 1695 | (unsigned long long)pci_resource_start(pdev, 0), |
1696 | pdev->irq, host->major); | ||
1696 | 1697 | ||
1697 | carm_host_id++; | 1698 | carm_host_id++; |
1698 | pci_set_drvdata(pdev, host); | 1699 | pci_set_drvdata(pdev, host); |