diff options
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas.c')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.c b/drivers/scsi/megaraid/megaraid_sas.c index c0bb8061401f..511ed52a5807 100644 --- a/drivers/scsi/megaraid/megaraid_sas.c +++ b/drivers/scsi/megaraid/megaraid_sas.c | |||
@@ -81,7 +81,7 @@ static DEFINE_MUTEX(megasas_async_queue_mutex); | |||
81 | * | 81 | * |
82 | * Returns a free command from the pool | 82 | * Returns a free command from the pool |
83 | */ | 83 | */ |
84 | static inline struct megasas_cmd *megasas_get_cmd(struct megasas_instance | 84 | static struct megasas_cmd *megasas_get_cmd(struct megasas_instance |
85 | *instance) | 85 | *instance) |
86 | { | 86 | { |
87 | unsigned long flags; | 87 | unsigned long flags; |
@@ -263,7 +263,7 @@ megasas_issue_blocked_abort_cmd(struct megasas_instance *instance, | |||
263 | * If successful, this function returns the number of SG elements. Otherwise, | 263 | * If successful, this function returns the number of SG elements. Otherwise, |
264 | * it returnes -1. | 264 | * it returnes -1. |
265 | */ | 265 | */ |
266 | static inline int | 266 | static int |
267 | megasas_make_sgl32(struct megasas_instance *instance, struct scsi_cmnd *scp, | 267 | megasas_make_sgl32(struct megasas_instance *instance, struct scsi_cmnd *scp, |
268 | union megasas_sgl *mfi_sgl) | 268 | union megasas_sgl *mfi_sgl) |
269 | { | 269 | { |
@@ -311,7 +311,7 @@ megasas_make_sgl32(struct megasas_instance *instance, struct scsi_cmnd *scp, | |||
311 | * If successful, this function returns the number of SG elements. Otherwise, | 311 | * If successful, this function returns the number of SG elements. Otherwise, |
312 | * it returnes -1. | 312 | * it returnes -1. |
313 | */ | 313 | */ |
314 | static inline int | 314 | static int |
315 | megasas_make_sgl64(struct megasas_instance *instance, struct scsi_cmnd *scp, | 315 | megasas_make_sgl64(struct megasas_instance *instance, struct scsi_cmnd *scp, |
316 | union megasas_sgl *mfi_sgl) | 316 | union megasas_sgl *mfi_sgl) |
317 | { | 317 | { |
@@ -360,7 +360,7 @@ megasas_make_sgl64(struct megasas_instance *instance, struct scsi_cmnd *scp, | |||
360 | * This function prepares CDB commands. These are typcially pass-through | 360 | * This function prepares CDB commands. These are typcially pass-through |
361 | * commands to the devices. | 361 | * commands to the devices. |
362 | */ | 362 | */ |
363 | static inline int | 363 | static int |
364 | megasas_build_dcdb(struct megasas_instance *instance, struct scsi_cmnd *scp, | 364 | megasas_build_dcdb(struct megasas_instance *instance, struct scsi_cmnd *scp, |
365 | struct megasas_cmd *cmd) | 365 | struct megasas_cmd *cmd) |
366 | { | 366 | { |
@@ -441,7 +441,7 @@ megasas_build_dcdb(struct megasas_instance *instance, struct scsi_cmnd *scp, | |||
441 | * | 441 | * |
442 | * Frames (and accompanying SGLs) for regular SCSI IOs use this function. | 442 | * Frames (and accompanying SGLs) for regular SCSI IOs use this function. |
443 | */ | 443 | */ |
444 | static inline int | 444 | static int |
445 | megasas_build_ldio(struct megasas_instance *instance, struct scsi_cmnd *scp, | 445 | megasas_build_ldio(struct megasas_instance *instance, struct scsi_cmnd *scp, |
446 | struct megasas_cmd *cmd) | 446 | struct megasas_cmd *cmd) |
447 | { | 447 | { |
@@ -563,7 +563,7 @@ megasas_build_ldio(struct megasas_instance *instance, struct scsi_cmnd *scp, | |||
563 | * @scp: SCSI command | 563 | * @scp: SCSI command |
564 | * @frame_count: [OUT] Number of frames used to prepare this command | 564 | * @frame_count: [OUT] Number of frames used to prepare this command |
565 | */ | 565 | */ |
566 | static inline struct megasas_cmd *megasas_build_cmd(struct megasas_instance | 566 | static struct megasas_cmd *megasas_build_cmd(struct megasas_instance |
567 | *instance, | 567 | *instance, |
568 | struct scsi_cmnd *scp, | 568 | struct scsi_cmnd *scp, |
569 | int *frame_count) | 569 | int *frame_count) |
@@ -914,7 +914,7 @@ megasas_complete_abort(struct megasas_instance *instance, | |||
914 | * @instance: Adapter soft state | 914 | * @instance: Adapter soft state |
915 | * @cmd: Completed command | 915 | * @cmd: Completed command |
916 | */ | 916 | */ |
917 | static inline void | 917 | static void |
918 | megasas_unmap_sgbuf(struct megasas_instance *instance, struct megasas_cmd *cmd) | 918 | megasas_unmap_sgbuf(struct megasas_instance *instance, struct megasas_cmd *cmd) |
919 | { | 919 | { |
920 | dma_addr_t buf_h; | 920 | dma_addr_t buf_h; |
@@ -958,7 +958,7 @@ megasas_unmap_sgbuf(struct megasas_instance *instance, struct megasas_cmd *cmd) | |||
958 | * an alternate status (as in the case of aborted | 958 | * an alternate status (as in the case of aborted |
959 | * commands) | 959 | * commands) |
960 | */ | 960 | */ |
961 | static inline void | 961 | static void |
962 | megasas_complete_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd, | 962 | megasas_complete_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd, |
963 | u8 alt_status) | 963 | u8 alt_status) |
964 | { | 964 | { |
@@ -1105,7 +1105,7 @@ megasas_complete_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd, | |||
1105 | * SCSI mid-layer instead of the status | 1105 | * SCSI mid-layer instead of the status |
1106 | * returned by the FW | 1106 | * returned by the FW |
1107 | */ | 1107 | */ |
1108 | static inline int | 1108 | static int |
1109 | megasas_deplete_reply_queue(struct megasas_instance *instance, u8 alt_status) | 1109 | megasas_deplete_reply_queue(struct megasas_instance *instance, u8 alt_status) |
1110 | { | 1110 | { |
1111 | u32 status; | 1111 | u32 status; |