Commit 2b46e5c1 authored by Damien Le Moal's avatar Damien Le Moal Committed by Martin K. Petersen

scsi: megaraid: Fix kdoc comments format

Fix kernel documentation comments to avoid various warnings when compiling
with W=1.

No functional changes.

Link: https://lore.kernel.org/r/20200706123345.451783-1-damien.lemoal@wdc.comSigned-off-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c3bfffa5
This diff is collapsed.
...@@ -3304,7 +3304,6 @@ megaraid_mbox_fire_sync_cmd(adapter_t *adapter) ...@@ -3304,7 +3304,6 @@ megaraid_mbox_fire_sync_cmd(adapter_t *adapter)
* megaraid_mbox_display_scb - display SCB information, mostly debug purposes * megaraid_mbox_display_scb - display SCB information, mostly debug purposes
* @adapter : controller's soft state * @adapter : controller's soft state
* @scb : SCB to be displayed * @scb : SCB to be displayed
* @level : debug level for console print
* *
* Diplay information about the given SCB iff the current debug level is * Diplay information about the given SCB iff the current debug level is
* verbose. * verbose.
...@@ -3972,7 +3971,8 @@ megaraid_sysfs_get_ldmap(adapter_t *adapter) ...@@ -3972,7 +3971,8 @@ megaraid_sysfs_get_ldmap(adapter_t *adapter)
/** /**
* megaraid_sysfs_show_app_hndl - display application handle for this adapter * megaraid_sysfs_show_app_hndl - display application handle for this adapter
* @cdev : class device object representation for the host * @dev : class device object representation for the host
* @attr : device attribute (unused)
* @buf : buffer to send data to * @buf : buffer to send data to
* *
* Display the handle used by the applications while executing management * Display the handle used by the applications while executing management
......
...@@ -95,7 +95,6 @@ mraid_mm_open(struct inode *inode, struct file *filep) ...@@ -95,7 +95,6 @@ mraid_mm_open(struct inode *inode, struct file *filep)
/** /**
* mraid_mm_ioctl - module entry-point for ioctls * mraid_mm_ioctl - module entry-point for ioctls
* @inode : inode (ignored)
* @filep : file operations pointer (ignored) * @filep : file operations pointer (ignored)
* @cmd : ioctl command * @cmd : ioctl command
* @arg : user ioctl packet * @arg : user ioctl packet
......
This diff is collapsed.
...@@ -90,9 +90,9 @@ extern u32 megasas_readl(struct megasas_instance *instance, ...@@ -90,9 +90,9 @@ extern u32 megasas_readl(struct megasas_instance *instance,
/** /**
* megasas_adp_reset_wait_for_ready - initiate chip reset and wait for * megasas_adp_reset_wait_for_ready - initiate chip reset and wait for
* controller to come to ready state * controller to come to ready state
* @instance - adapter's soft state * @instance: adapter's soft state
* @do_adp_reset - If true, do a chip reset * @do_adp_reset: If true, do a chip reset
* @ocr_context - If called from OCR context this will * @ocr_context: If called from OCR context this will
* be set to 1, else 0 * be set to 1, else 0
* *
* This function initates a chip reset followed by a wait for controller to * This function initates a chip reset followed by a wait for controller to
...@@ -146,10 +146,10 @@ megasas_adp_reset_wait_for_ready(struct megasas_instance *instance, ...@@ -146,10 +146,10 @@ megasas_adp_reset_wait_for_ready(struct megasas_instance *instance,
/** /**
* megasas_check_same_4gb_region - check if allocation * megasas_check_same_4gb_region - check if allocation
* crosses same 4GB boundary or not * crosses same 4GB boundary or not
* @instance - adapter's soft instance * @instance: adapter's soft instance
* start_addr - start address of DMA allocation * @start_addr: start address of DMA allocation
* size - size of allocation in bytes * @size: size of allocation in bytes
* return - true : allocation does not cross same * @return: true : allocation does not cross same
* 4GB boundary * 4GB boundary
* false: allocation crosses same * false: allocation crosses same
* 4GB boundary * 4GB boundary
...@@ -174,7 +174,7 @@ static inline bool megasas_check_same_4gb_region ...@@ -174,7 +174,7 @@ static inline bool megasas_check_same_4gb_region
/** /**
* megasas_enable_intr_fusion - Enables interrupts * megasas_enable_intr_fusion - Enables interrupts
* @regs: MFI register set * @instance: adapter's soft instance
*/ */
static void static void
megasas_enable_intr_fusion(struct megasas_instance *instance) megasas_enable_intr_fusion(struct megasas_instance *instance)
...@@ -196,7 +196,7 @@ megasas_enable_intr_fusion(struct megasas_instance *instance) ...@@ -196,7 +196,7 @@ megasas_enable_intr_fusion(struct megasas_instance *instance)
/** /**
* megasas_disable_intr_fusion - Disables interrupt * megasas_disable_intr_fusion - Disables interrupt
* @regs: MFI register set * @instance: adapter's soft instance
*/ */
static void static void
megasas_disable_intr_fusion(struct megasas_instance *instance) megasas_disable_intr_fusion(struct megasas_instance *instance)
...@@ -238,6 +238,7 @@ megasas_clear_intr_fusion(struct megasas_instance *instance) ...@@ -238,6 +238,7 @@ megasas_clear_intr_fusion(struct megasas_instance *instance)
/** /**
* megasas_get_cmd_fusion - Get a command from the free pool * megasas_get_cmd_fusion - Get a command from the free pool
* @instance: Adapter soft state * @instance: Adapter soft state
* @blk_tag: Command tag
* *
* Returns a blk_tag indexed mpt frame * Returns a blk_tag indexed mpt frame
*/ */
...@@ -309,8 +310,8 @@ megasas_fire_cmd_fusion(struct megasas_instance *instance, ...@@ -309,8 +310,8 @@ megasas_fire_cmd_fusion(struct megasas_instance *instance,
/** /**
* megasas_fusion_update_can_queue - Do all Adapter Queue depth related calculations here * megasas_fusion_update_can_queue - Do all Adapter Queue depth related calculations here
* @instance: Adapter soft state * @instance: Adapter soft state
* fw_boot_context: Whether this function called during probe or after OCR * @fw_boot_context: Whether this function called during probe or after OCR
* *
* This function is only for fusion controllers. * This function is only for fusion controllers.
* Update host can queue, if firmware downgrade max supported firmware commands. * Update host can queue, if firmware downgrade max supported firmware commands.
...@@ -1016,6 +1017,7 @@ megasas_alloc_cmds_fusion(struct megasas_instance *instance) ...@@ -1016,6 +1017,7 @@ megasas_alloc_cmds_fusion(struct megasas_instance *instance)
* wait_and_poll - Issues a polling command * wait_and_poll - Issues a polling command
* @instance: Adapter soft state * @instance: Adapter soft state
* @cmd: Command packet to be issued * @cmd: Command packet to be issued
* @seconds: Maximum poll time
* *
* For polling, MFI requires the cmd_status to be set to 0xFF before posting. * For polling, MFI requires the cmd_status to be set to 0xFF before posting.
*/ */
...@@ -1906,6 +1908,7 @@ megasas_init_adapter_fusion(struct megasas_instance *instance) ...@@ -1906,6 +1908,7 @@ megasas_init_adapter_fusion(struct megasas_instance *instance)
/** /**
* megasas_fault_detect_work - Worker function of * megasas_fault_detect_work - Worker function of
* FW fault handling workqueue. * FW fault handling workqueue.
* @work: FW fault work struct
*/ */
static void static void
megasas_fault_detect_work(struct work_struct *work) megasas_fault_detect_work(struct work_struct *work)
...@@ -1989,11 +1992,13 @@ megasas_fusion_stop_watchdog(struct megasas_instance *instance) ...@@ -1989,11 +1992,13 @@ megasas_fusion_stop_watchdog(struct megasas_instance *instance)
/** /**
* map_cmd_status - Maps FW cmd status to OS cmd status * map_cmd_status - Maps FW cmd status to OS cmd status
* @cmd : Pointer to cmd * @fusion: fusion context
* @status : status of cmd returned by FW * @scmd: Pointer to cmd
* @ext_status : ext status of cmd returned by FW * @status: status of cmd returned by FW
* @ext_status: ext status of cmd returned by FW
* @data_length: command data length
* @sense: command sense data
*/ */
static void static void
map_cmd_status(struct fusion_context *fusion, map_cmd_status(struct fusion_context *fusion,
struct scsi_cmnd *scmd, u8 status, u8 ext_status, struct scsi_cmnd *scmd, u8 status, u8 ext_status,
...@@ -2234,7 +2239,7 @@ megasas_make_prp_nvme(struct megasas_instance *instance, struct scsi_cmnd *scmd, ...@@ -2234,7 +2239,7 @@ megasas_make_prp_nvme(struct megasas_instance *instance, struct scsi_cmnd *scmd,
* @scp: SCSI command from the mid-layer * @scp: SCSI command from the mid-layer
* @sgl_ptr: SGL to be filled in * @sgl_ptr: SGL to be filled in
* @cmd: cmd we are working on * @cmd: cmd we are working on
* @sge_count sge count * @sge_count: sge count
* *
*/ */
static void static void
...@@ -2343,9 +2348,12 @@ int megasas_make_sgl(struct megasas_instance *instance, struct scsi_cmnd *scp, ...@@ -2343,9 +2348,12 @@ int megasas_make_sgl(struct megasas_instance *instance, struct scsi_cmnd *scp,
/** /**
* megasas_set_pd_lba - Sets PD LBA * megasas_set_pd_lba - Sets PD LBA
* @cdb: CDB * @io_request: IO request
* @cdb_len: cdb length * @cdb_len: cdb length
* @start_blk: Start block of IO * @io_info: IO information
* @scp: SCSI command
* @local_map_ptr: Raid map
* @ref_tag: Primary reference tag
* *
* Used to set the PD LBA in CDB for FP IOs * Used to set the PD LBA in CDB for FP IOs
*/ */
...@@ -2603,10 +2611,12 @@ static void megasas_stream_detect(struct megasas_instance *instance, ...@@ -2603,10 +2611,12 @@ static void megasas_stream_detect(struct megasas_instance *instance,
* affinity (cpu of the controller) and raid_flags in the raid context * affinity (cpu of the controller) and raid_flags in the raid context
* based on IO type. * based on IO type.
* *
* @fusion: Fusion context
* @praid_context: IO RAID context * @praid_context: IO RAID context
* @raid: LD raid map * @raid: LD raid map
* @fp_possible: Is fast path possible? * @fp_possible: Is fast path possible?
* @is_read: Is read IO? * @is_read: Is read IO?
* @scsi_buff_len: SCSI command buffer length
* *
*/ */
static void static void
...@@ -2940,7 +2950,7 @@ megasas_build_ldio_fusion(struct megasas_instance *instance, ...@@ -2940,7 +2950,7 @@ megasas_build_ldio_fusion(struct megasas_instance *instance,
/** /**
* megasas_build_ld_nonrw_fusion - prepares non rw ios for virtual disk * megasas_build_ld_nonrw_fusion - prepares non rw ios for virtual disk
* @instance: Adapter soft state * @instance: Adapter soft state
* @scp: SCSI command * @scmd: SCSI command
* @cmd: Command to be prepared * @cmd: Command to be prepared
* *
* Prepares the io_request frame for non-rw io cmds for vd. * Prepares the io_request frame for non-rw io cmds for vd.
...@@ -3028,7 +3038,7 @@ static void megasas_build_ld_nonrw_fusion(struct megasas_instance *instance, ...@@ -3028,7 +3038,7 @@ static void megasas_build_ld_nonrw_fusion(struct megasas_instance *instance,
/** /**
* megasas_build_syspd_fusion - prepares rw/non-rw ios for syspd * megasas_build_syspd_fusion - prepares rw/non-rw ios for syspd
* @instance: Adapter soft state * @instance: Adapter soft state
* @scp: SCSI command * @scmd: SCSI command
* @cmd: Command to be prepared * @cmd: Command to be prepared
* @fp_possible: parameter to detect fast path or firmware path io. * @fp_possible: parameter to detect fast path or firmware path io.
* *
...@@ -3405,7 +3415,7 @@ megasas_build_and_issue_cmd_fusion(struct megasas_instance *instance, ...@@ -3405,7 +3415,7 @@ megasas_build_and_issue_cmd_fusion(struct megasas_instance *instance,
* megasas_complete_r1_command - * megasas_complete_r1_command -
* completes R1 FP write commands which has valid peer smid * completes R1 FP write commands which has valid peer smid
* @instance: Adapter soft state * @instance: Adapter soft state
* @cmd_fusion: MPT command frame * @cmd: MPT command frame
* *
*/ */
static inline void static inline void
...@@ -3459,6 +3469,9 @@ megasas_complete_r1_command(struct megasas_instance *instance, ...@@ -3459,6 +3469,9 @@ megasas_complete_r1_command(struct megasas_instance *instance,
/** /**
* complete_cmd_fusion - Completes command * complete_cmd_fusion - Completes command
* @instance: Adapter soft state * @instance: Adapter soft state
* @MSIxIndex: MSI number
* @irq_context: IRQ context
*
* Completes all commands that is in reply descriptor queue * Completes all commands that is in reply descriptor queue
*/ */
static int static int
...@@ -3634,6 +3647,7 @@ complete_cmd_fusion(struct megasas_instance *instance, u32 MSIxIndex, ...@@ -3634,6 +3647,7 @@ complete_cmd_fusion(struct megasas_instance *instance, u32 MSIxIndex,
/** /**
* megasas_enable_irq_poll() - enable irqpoll * megasas_enable_irq_poll() - enable irqpoll
* @instance: Adapter soft state
*/ */
static void megasas_enable_irq_poll(struct megasas_instance *instance) static void megasas_enable_irq_poll(struct megasas_instance *instance)
{ {
...@@ -3650,7 +3664,7 @@ static void megasas_enable_irq_poll(struct megasas_instance *instance) ...@@ -3650,7 +3664,7 @@ static void megasas_enable_irq_poll(struct megasas_instance *instance)
/** /**
* megasas_sync_irqs - Synchronizes all IRQs owned by adapter * megasas_sync_irqs - Synchronizes all IRQs owned by adapter
* @instance: Adapter soft state * @instance_addr: Adapter soft state address
*/ */
static void megasas_sync_irqs(unsigned long instance_addr) static void megasas_sync_irqs(unsigned long instance_addr)
{ {
...@@ -3706,7 +3720,7 @@ int megasas_irqpoll(struct irq_poll *irqpoll, int budget) ...@@ -3706,7 +3720,7 @@ int megasas_irqpoll(struct irq_poll *irqpoll, int budget)
/** /**
* megasas_complete_cmd_dpc_fusion - Completes command * megasas_complete_cmd_dpc_fusion - Completes command
* @instance: Adapter soft state * @instance_addr: Adapter soft state address
* *
* Tasklet to complete cmds * Tasklet to complete cmds
*/ */
...@@ -3729,6 +3743,8 @@ megasas_complete_cmd_dpc_fusion(unsigned long instance_addr) ...@@ -3729,6 +3743,8 @@ megasas_complete_cmd_dpc_fusion(unsigned long instance_addr)
/** /**
* megasas_isr_fusion - isr entry point * megasas_isr_fusion - isr entry point
* @irq: IRQ number
* @devp: IRQ context
*/ */
static irqreturn_t megasas_isr_fusion(int irq, void *devp) static irqreturn_t megasas_isr_fusion(int irq, void *devp)
{ {
...@@ -3763,7 +3779,7 @@ static irqreturn_t megasas_isr_fusion(int irq, void *devp) ...@@ -3763,7 +3779,7 @@ static irqreturn_t megasas_isr_fusion(int irq, void *devp)
/** /**
* build_mpt_mfi_pass_thru - builds a cmd fo MFI Pass thru * build_mpt_mfi_pass_thru - builds a cmd fo MFI Pass thru
* @instance: Adapter soft state * @instance: Adapter soft state
* mfi_cmd: megasas_cmd pointer * @mfi_cmd: megasas_cmd pointer
* *
*/ */
static void static void
...@@ -3880,7 +3896,7 @@ megasas_release_fusion(struct megasas_instance *instance) ...@@ -3880,7 +3896,7 @@ megasas_release_fusion(struct megasas_instance *instance)
/** /**
* megasas_read_fw_status_reg_fusion - returns the current FW status value * megasas_read_fw_status_reg_fusion - returns the current FW status value
* @regs: MFI register set * @instance: Adapter soft state
*/ */
static u32 static u32
megasas_read_fw_status_reg_fusion(struct megasas_instance *instance) megasas_read_fw_status_reg_fusion(struct megasas_instance *instance)
...@@ -3891,7 +3907,7 @@ megasas_read_fw_status_reg_fusion(struct megasas_instance *instance) ...@@ -3891,7 +3907,7 @@ megasas_read_fw_status_reg_fusion(struct megasas_instance *instance)
/** /**
* megasas_alloc_host_crash_buffer - Host buffers for Crash dump collection from Firmware * megasas_alloc_host_crash_buffer - Host buffers for Crash dump collection from Firmware
* @instance: Controller's soft instance * @instance: Controller's soft instance
* return: Number of allocated host crash buffers * @return: Number of allocated host crash buffers
*/ */
static void static void
megasas_alloc_host_crash_buffer(struct megasas_instance *instance) megasas_alloc_host_crash_buffer(struct megasas_instance *instance)
...@@ -3929,6 +3945,7 @@ megasas_free_host_crash_buffer(struct megasas_instance *instance) ...@@ -3929,6 +3945,7 @@ megasas_free_host_crash_buffer(struct megasas_instance *instance)
/** /**
* megasas_adp_reset_fusion - For controller reset * megasas_adp_reset_fusion - For controller reset
* @instance: Controller's soft instance
* @regs: MFI register set * @regs: MFI register set
*/ */
static int static int
...@@ -4006,6 +4023,7 @@ megasas_adp_reset_fusion(struct megasas_instance *instance, ...@@ -4006,6 +4023,7 @@ megasas_adp_reset_fusion(struct megasas_instance *instance,
/** /**
* megasas_check_reset_fusion - For controller reset check * megasas_check_reset_fusion - For controller reset check
* @instance: Controller's soft instance
* @regs: MFI register set * @regs: MFI register set
*/ */
static int static int
...@@ -4335,8 +4353,8 @@ static int megasas_track_scsiio(struct megasas_instance *instance, ...@@ -4335,8 +4353,8 @@ static int megasas_track_scsiio(struct megasas_instance *instance,
/** /**
* megasas_tm_response_code - translation of device response code * megasas_tm_response_code - translation of device response code
* @ioc: per adapter object * @instance: Controller's soft instance
* @mpi_reply: MPI reply returned by firmware * @mpi_reply: MPI reply returned by firmware
* *
* Return nothing. * Return nothing.
*/ */
...@@ -4391,9 +4409,9 @@ megasas_tm_response_code(struct megasas_instance *instance, ...@@ -4391,9 +4409,9 @@ megasas_tm_response_code(struct megasas_instance *instance,
* @device_handle: device handle * @device_handle: device handle
* @channel: the channel assigned by the OS * @channel: the channel assigned by the OS
* @id: the id assigned by the OS * @id: the id assigned by the OS
* @type: MPI2_SCSITASKMGMT_TASKTYPE__XXX (defined in megaraid_sas_fusion.c)
* @smid_task: smid assigned to the task * @smid_task: smid assigned to the task
* @m_type: TM_MUTEX_ON or TM_MUTEX_OFF * @type: MPI2_SCSITASKMGMT_TASKTYPE__XXX (defined in megaraid_sas_fusion.c)
* @mr_device_priv_data: private data
* Context: user * Context: user
* *
* MegaRaid use MPT interface for Task Magement request. * MegaRaid use MPT interface for Task Magement request.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment