Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: fas216: Introduce the function fas216_queue_command_internal()

This patch does not change any functionality but prepares for removal of
the second argument of the fas216_queue_command_lck() function.

Link: https://lore.kernel.org/r/20211007204618.2196847-13-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
0feb3429 814818fd

+10 -4
+10 -4
drivers/scsi/arm/fas216.c
··· 2184 2184 } 2185 2185 2186 2186 /** 2187 - * fas216_queue_command - queue a command for adapter to process. 2187 + * fas216_queue_command_internal - queue a command for the adapter to process 2188 2188 * @SCpnt: Command to queue 2189 2189 * @done: done function to call once command is complete 2190 2190 * ··· 2192 2192 * Returns: 0 on success, else error. 2193 2193 * Notes: io_request_lock is held, interrupts are disabled. 2194 2194 */ 2195 - static int fas216_queue_command_lck(struct scsi_cmnd *SCpnt, 2196 - void (*done)(struct scsi_cmnd *)) 2195 + static int fas216_queue_command_internal(struct scsi_cmnd *SCpnt, 2196 + void (*done)(struct scsi_cmnd *)) 2197 2197 { 2198 2198 FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; 2199 2199 int result; ··· 2231 2231 result ? "failure" : "success"); 2232 2232 2233 2233 return result; 2234 + } 2235 + 2236 + static int fas216_queue_command_lck(struct scsi_cmnd *SCpnt, 2237 + void (*done)(struct scsi_cmnd *)) 2238 + { 2239 + return fas216_queue_command_internal(SCpnt, done); 2234 2240 } 2235 2241 2236 2242 DEF_SCSI_QCMD(fas216_queue_command) ··· 2278 2272 BUG_ON(info->scsi.irq); 2279 2273 2280 2274 info->internal_done = 0; 2281 - fas216_queue_command_lck(SCpnt, fas216_internal_done); 2275 + fas216_queue_command_internal(SCpnt, fas216_internal_done); 2282 2276 2283 2277 /* 2284 2278 * This wastes time, since we can't return until the command is