| .. | .. |
|---|
| 44 | 44 | static LIST_HEAD(blkmtd_device_list); |
|---|
| 45 | 45 | |
|---|
| 46 | 46 | |
|---|
| 47 | | -static struct page *page_read(struct address_space *mapping, int index) |
|---|
| 47 | +static struct page *page_read(struct address_space *mapping, pgoff_t index) |
|---|
| 48 | 48 | { |
|---|
| 49 | 49 | return read_mapping_page(mapping, index, NULL); |
|---|
| 50 | 50 | } |
|---|
| .. | .. |
|---|
| 54 | 54 | { |
|---|
| 55 | 55 | struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; |
|---|
| 56 | 56 | struct page *page; |
|---|
| 57 | | - int index = to >> PAGE_SHIFT; // page index |
|---|
| 57 | + pgoff_t index = to >> PAGE_SHIFT; // page index |
|---|
| 58 | 58 | int pages = len >> PAGE_SHIFT; |
|---|
| 59 | 59 | u_long *p; |
|---|
| 60 | 60 | u_long *max; |
|---|
| .. | .. |
|---|
| 103 | 103 | { |
|---|
| 104 | 104 | struct block2mtd_dev *dev = mtd->priv; |
|---|
| 105 | 105 | struct page *page; |
|---|
| 106 | | - int index = from >> PAGE_SHIFT; |
|---|
| 106 | + pgoff_t index = from >> PAGE_SHIFT; |
|---|
| 107 | 107 | int offset = from & (PAGE_SIZE-1); |
|---|
| 108 | 108 | int cpylen; |
|---|
| 109 | 109 | |
|---|
| .. | .. |
|---|
| 137 | 137 | { |
|---|
| 138 | 138 | struct page *page; |
|---|
| 139 | 139 | struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; |
|---|
| 140 | | - int index = to >> PAGE_SHIFT; // page index |
|---|
| 140 | + pgoff_t index = to >> PAGE_SHIFT; // page index |
|---|
| 141 | 141 | int offset = to & ~PAGE_MASK; // page offset |
|---|
| 142 | 142 | int cpylen; |
|---|
| 143 | 143 | |
|---|
| .. | .. |
|---|
| 329 | 329 | switch (**endp) { |
|---|
| 330 | 330 | case 'G' : |
|---|
| 331 | 331 | result *= 1024; |
|---|
| 332 | + fallthrough; |
|---|
| 332 | 333 | case 'M': |
|---|
| 333 | 334 | result *= 1024; |
|---|
| 335 | + fallthrough; |
|---|
| 334 | 336 | case 'K': |
|---|
| 335 | 337 | case 'k': |
|---|
| 336 | 338 | result *= 1024; |
|---|