.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2000-2002 Michael Cornwell <cornwell@acm.org> |
---|
3 | 4 | * Copyright (C) 2000-2002 Andre Hedrick <andre@linux-ide.org> |
---|
.. | .. |
---|
128 | 129 | return pre_task_out_intr(drive, cmd); |
---|
129 | 130 | } |
---|
130 | 131 | handler = task_pio_intr; |
---|
131 | | - /* fall through */ |
---|
| 132 | + fallthrough; |
---|
132 | 133 | case ATA_PROT_NODATA: |
---|
133 | 134 | if (handler == NULL) |
---|
134 | 135 | handler = task_no_data_intr; |
---|
.. | .. |
---|
140 | 141 | hwif->expiry = dma_ops->dma_timer_expiry; |
---|
141 | 142 | ide_execute_command(drive, cmd, ide_dma_intr, 2 * WAIT_CMD); |
---|
142 | 143 | dma_ops->dma_start(drive); |
---|
143 | | - /* fall through */ |
---|
| 144 | + fallthrough; |
---|
144 | 145 | default: |
---|
145 | 146 | return ide_started; |
---|
146 | 147 | } |
---|
.. | .. |
---|
228 | 229 | ide_hwif_t *hwif = drive->hwif; |
---|
229 | 230 | struct scatterlist *sg = hwif->sg_table; |
---|
230 | 231 | struct scatterlist *cursg = cmd->cursg; |
---|
231 | | - unsigned long uninitialized_var(flags); |
---|
232 | 232 | struct page *page; |
---|
233 | 233 | unsigned int offset; |
---|
234 | 234 | u8 *buf; |
---|
.. | .. |
---|
440 | 440 | goto put_req; |
---|
441 | 441 | } |
---|
442 | 442 | |
---|
443 | | - rq->special = cmd; |
---|
| 443 | + ide_req(rq)->special = cmd; |
---|
444 | 444 | cmd->rq = rq; |
---|
445 | 445 | |
---|
446 | 446 | blk_execute_rq(drive->queue, NULL, rq, 0); |
---|
.. | .. |
---|
579 | 579 | goto abort; |
---|
580 | 580 | } |
---|
581 | 581 | cmd.tf_flags |= IDE_TFLAG_MULTI_PIO; |
---|
582 | | - /* fall through */ |
---|
| 582 | + fallthrough; |
---|
583 | 583 | case TASKFILE_OUT: |
---|
584 | 584 | cmd.protocol = ATA_PROT_PIO; |
---|
585 | | - /* fall through */ |
---|
| 585 | + fallthrough; |
---|
586 | 586 | case TASKFILE_OUT_DMAQ: |
---|
587 | 587 | case TASKFILE_OUT_DMA: |
---|
588 | 588 | cmd.tf_flags |= IDE_TFLAG_WRITE; |
---|
.. | .. |
---|
598 | 598 | goto abort; |
---|
599 | 599 | } |
---|
600 | 600 | cmd.tf_flags |= IDE_TFLAG_MULTI_PIO; |
---|
601 | | - /* fall through */ |
---|
| 601 | + fallthrough; |
---|
602 | 602 | case TASKFILE_IN: |
---|
603 | 603 | cmd.protocol = ATA_PROT_PIO; |
---|
604 | | - /* fall through */ |
---|
| 604 | + fallthrough; |
---|
605 | 605 | case TASKFILE_IN_DMAQ: |
---|
606 | 606 | case TASKFILE_IN_DMA: |
---|
607 | 607 | nsect = taskin / SECTOR_SIZE; |
---|