Commit 4beb4867 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: mpt3sas: Improve kernel-doc headers

Avoids that warnings about the kernel headers appear when building with
W=1. Remove useless "@Returns - Nothing" clauses. Change "@Return - " into
"Return: ".
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Sathya Prakash <sathya.prakash@broadcom.com>
Cc: Chaitra P B <chaitra.basappa@broadcom.com>
Cc: Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c7a35705
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -134,7 +134,7 @@ _transport_convert_phy_link_rate(u8 link_rate) ...@@ -134,7 +134,7 @@ _transport_convert_phy_link_rate(u8 link_rate)
* *
* Populates sas identify info. * Populates sas identify info.
* *
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
*/ */
static int static int
_transport_set_identify(struct MPT3SAS_ADAPTER *ioc, u16 handle, _transport_set_identify(struct MPT3SAS_ADAPTER *ioc, u16 handle,
...@@ -226,8 +226,8 @@ _transport_set_identify(struct MPT3SAS_ADAPTER *ioc, u16 handle, ...@@ -226,8 +226,8 @@ _transport_set_identify(struct MPT3SAS_ADAPTER *ioc, u16 handle,
* Callback handler when sending internal generated transport cmds. * Callback handler when sending internal generated transport cmds.
* The callback index passed is `ioc->transport_cb_idx` * The callback index passed is `ioc->transport_cb_idx`
* *
* Return 1 meaning mf should be freed from _base_interrupt * Return: 1 meaning mf should be freed from _base_interrupt
* 0 means the mf is freed from this function. * 0 means the mf is freed from this function.
*/ */
u8 u8
mpt3sas_transport_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, mpt3sas_transport_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
...@@ -287,7 +287,7 @@ struct rep_manu_reply { ...@@ -287,7 +287,7 @@ struct rep_manu_reply {
* *
* Fills in the sas_expander_device object when SMP port is created. * Fills in the sas_expander_device object when SMP port is created.
* *
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
*/ */
static int static int
_transport_expander_report_manufacture(struct MPT3SAS_ADAPTER *ioc, _transport_expander_report_manufacture(struct MPT3SAS_ADAPTER *ioc,
...@@ -460,8 +460,6 @@ _transport_expander_report_manufacture(struct MPT3SAS_ADAPTER *ioc, ...@@ -460,8 +460,6 @@ _transport_expander_report_manufacture(struct MPT3SAS_ADAPTER *ioc,
* _transport_delete_port - helper function to removing a port * _transport_delete_port - helper function to removing a port
* @ioc: per adapter object * @ioc: per adapter object
* @mpt3sas_port: mpt3sas per port object * @mpt3sas_port: mpt3sas per port object
*
* Returns nothing.
*/ */
static void static void
_transport_delete_port(struct MPT3SAS_ADAPTER *ioc, _transport_delete_port(struct MPT3SAS_ADAPTER *ioc,
...@@ -489,8 +487,6 @@ _transport_delete_port(struct MPT3SAS_ADAPTER *ioc, ...@@ -489,8 +487,6 @@ _transport_delete_port(struct MPT3SAS_ADAPTER *ioc,
* @ioc: per adapter object * @ioc: per adapter object
* @mpt3sas_port: mpt3sas per port object * @mpt3sas_port: mpt3sas per port object
* @mpt3sas_phy: mpt3sas per phy object * @mpt3sas_phy: mpt3sas per phy object
*
* Returns nothing.
*/ */
static void static void
_transport_delete_phy(struct MPT3SAS_ADAPTER *ioc, _transport_delete_phy(struct MPT3SAS_ADAPTER *ioc,
...@@ -513,8 +509,6 @@ _transport_delete_phy(struct MPT3SAS_ADAPTER *ioc, ...@@ -513,8 +509,6 @@ _transport_delete_phy(struct MPT3SAS_ADAPTER *ioc,
* @ioc: per adapter object * @ioc: per adapter object
* @mpt3sas_port: mpt3sas per port object * @mpt3sas_port: mpt3sas per port object
* @mpt3sas_phy: mpt3sas per phy object * @mpt3sas_phy: mpt3sas per phy object
*
* Returns nothing.
*/ */
static void static void
_transport_add_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_port *mpt3sas_port, _transport_add_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_port *mpt3sas_port,
...@@ -538,8 +532,6 @@ _transport_add_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_port *mpt3sas_port, ...@@ -538,8 +532,6 @@ _transport_add_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_port *mpt3sas_port,
* @sas_node: sas node object (either expander or sas host) * @sas_node: sas node object (either expander or sas host)
* @mpt3sas_phy: mpt3sas per phy object * @mpt3sas_phy: mpt3sas per phy object
* @sas_address: sas address of device/expander were phy needs to be added to * @sas_address: sas address of device/expander were phy needs to be added to
*
* Returns nothing.
*/ */
static void static void
_transport_add_phy_to_an_existing_port(struct MPT3SAS_ADAPTER *ioc, _transport_add_phy_to_an_existing_port(struct MPT3SAS_ADAPTER *ioc,
...@@ -573,8 +565,6 @@ _transport_add_phy_to_an_existing_port(struct MPT3SAS_ADAPTER *ioc, ...@@ -573,8 +565,6 @@ _transport_add_phy_to_an_existing_port(struct MPT3SAS_ADAPTER *ioc,
* @ioc: per adapter object * @ioc: per adapter object
* @sas_node: sas node object (either expander or sas host) * @sas_node: sas node object (either expander or sas host)
* @mpt3sas_phy: mpt3sas per phy object * @mpt3sas_phy: mpt3sas per phy object
*
* Returns nothing.
*/ */
static void static void
_transport_del_phy_from_an_existing_port(struct MPT3SAS_ADAPTER *ioc, _transport_del_phy_from_an_existing_port(struct MPT3SAS_ADAPTER *ioc,
...@@ -635,7 +625,7 @@ _transport_sanity_check(struct MPT3SAS_ADAPTER *ioc, struct _sas_node *sas_node, ...@@ -635,7 +625,7 @@ _transport_sanity_check(struct MPT3SAS_ADAPTER *ioc, struct _sas_node *sas_node,
* *
* Adding new port object to the sas_node->sas_port_list. * Adding new port object to the sas_node->sas_port_list.
* *
* Returns mpt3sas_port. * Return: mpt3sas_port.
*/ */
struct _sas_port * struct _sas_port *
mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc, u16 handle, mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc, u16 handle,
...@@ -794,8 +784,6 @@ mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc, u16 handle, ...@@ -794,8 +784,6 @@ mpt3sas_transport_port_add(struct MPT3SAS_ADAPTER *ioc, u16 handle,
* *
* Removing object and freeing associated memory from the * Removing object and freeing associated memory from the
* ioc->sas_port_list. * ioc->sas_port_list.
*
* Return nothing.
*/ */
void void
mpt3sas_transport_port_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address, mpt3sas_transport_port_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address,
...@@ -860,7 +848,7 @@ mpt3sas_transport_port_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address, ...@@ -860,7 +848,7 @@ mpt3sas_transport_port_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address,
* @phy_pg0: sas phy page 0 * @phy_pg0: sas phy page 0
* @parent_dev: parent device class object * @parent_dev: parent device class object
* *
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
*/ */
int int
mpt3sas_transport_add_host_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy mpt3sas_transport_add_host_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
...@@ -928,7 +916,7 @@ mpt3sas_transport_add_host_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy ...@@ -928,7 +916,7 @@ mpt3sas_transport_add_host_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
* @expander_pg1: expander page 1 * @expander_pg1: expander page 1
* @parent_dev: parent device class object * @parent_dev: parent device class object
* *
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
*/ */
int int
mpt3sas_transport_add_expander_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy mpt3sas_transport_add_expander_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
...@@ -995,10 +983,8 @@ mpt3sas_transport_add_expander_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy ...@@ -995,10 +983,8 @@ mpt3sas_transport_add_expander_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy
* @ioc: per adapter object * @ioc: per adapter object
* @sas_address: sas address of parent expander or sas host * @sas_address: sas address of parent expander or sas host
* @handle: attached device handle * @handle: attached device handle
* @phy_numberv: phy number * @phy_number: phy number
* @link_rate: new link rate * @link_rate: new link rate
*
* Returns nothing.
*/ */
void void
mpt3sas_transport_update_links(struct MPT3SAS_ADAPTER *ioc, mpt3sas_transport_update_links(struct MPT3SAS_ADAPTER *ioc,
...@@ -1090,7 +1076,7 @@ struct phy_error_log_reply { ...@@ -1090,7 +1076,7 @@ struct phy_error_log_reply {
* @ioc: per adapter object * @ioc: per adapter object
* @phy: The sas phy object * @phy: The sas phy object
* *
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
* *
*/ */
static int static int
...@@ -1262,7 +1248,7 @@ _transport_get_expander_phy_error_log(struct MPT3SAS_ADAPTER *ioc, ...@@ -1262,7 +1248,7 @@ _transport_get_expander_phy_error_log(struct MPT3SAS_ADAPTER *ioc,
* _transport_get_linkerrors - return phy counters for both hba and expanders * _transport_get_linkerrors - return phy counters for both hba and expanders
* @phy: The sas phy object * @phy: The sas phy object
* *
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
* *
*/ */
static int static int
...@@ -1311,10 +1297,11 @@ _transport_get_linkerrors(struct sas_phy *phy) ...@@ -1311,10 +1297,11 @@ _transport_get_linkerrors(struct sas_phy *phy)
/** /**
* _transport_get_enclosure_identifier - * _transport_get_enclosure_identifier -
* @phy: The sas phy object * @rphy: The sas phy object
* @identifier: ?
* *
* Obtain the enclosure logical id for an expander. * Obtain the enclosure logical id for an expander.
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
*/ */
static int static int
_transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
...@@ -1342,9 +1329,9 @@ _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) ...@@ -1342,9 +1329,9 @@ _transport_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
/** /**
* _transport_get_bay_identifier - * _transport_get_bay_identifier -
* @phy: The sas phy object * @rphy: The sas phy object
* *
* Returns the slot id for a device that resides inside an enclosure. * Return: the slot id for a device that resides inside an enclosure.
*/ */
static int static int
_transport_get_bay_identifier(struct sas_rphy *rphy) _transport_get_bay_identifier(struct sas_rphy *rphy)
...@@ -1400,8 +1387,9 @@ struct phy_control_reply { ...@@ -1400,8 +1387,9 @@ struct phy_control_reply {
* _transport_expander_phy_control - expander phy control * _transport_expander_phy_control - expander phy control
* @ioc: per adapter object * @ioc: per adapter object
* @phy: The sas phy object * @phy: The sas phy object
* @phy_operation: ?
* *
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
* *
*/ */
static int static int
...@@ -1571,7 +1559,7 @@ _transport_expander_phy_control(struct MPT3SAS_ADAPTER *ioc, ...@@ -1571,7 +1559,7 @@ _transport_expander_phy_control(struct MPT3SAS_ADAPTER *ioc,
* @phy: The sas phy object * @phy: The sas phy object
* @hard_reset: * @hard_reset:
* *
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
*/ */
static int static int
_transport_phy_reset(struct sas_phy *phy, int hard_reset) _transport_phy_reset(struct sas_phy *phy, int hard_reset)
...@@ -1623,7 +1611,7 @@ _transport_phy_reset(struct sas_phy *phy, int hard_reset) ...@@ -1623,7 +1611,7 @@ _transport_phy_reset(struct sas_phy *phy, int hard_reset)
* @enable: enable phy when true * @enable: enable phy when true
* *
* Only support sas_host direct attached phys. * Only support sas_host direct attached phys.
* Returns 0 for success, non-zero for failure. * Return: 0 for success, non-zero for failure.
*/ */
static int static int
_transport_phy_enable(struct sas_phy *phy, int enable) _transport_phy_enable(struct sas_phy *phy, int enable)
...@@ -1761,7 +1749,8 @@ _transport_phy_enable(struct sas_phy *phy, int enable) ...@@ -1761,7 +1749,8 @@ _transport_phy_enable(struct sas_phy *phy, int enable)
* @rates: rates defined in sas_phy_linkrates * @rates: rates defined in sas_phy_linkrates
* *
* Only support sas_host direct attached phys. * Only support sas_host direct attached phys.
* Returns 0 for success, non-zero for failure. *
* Return: 0 for success, non-zero for failure.
*/ */
static int static int
_transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates) _transport_phy_speed(struct sas_phy *phy, struct sas_phy_linkrates *rates)
...@@ -1904,9 +1893,9 @@ _transport_unmap_smp_buffer(struct device *dev, struct bsg_buffer *buf, ...@@ -1904,9 +1893,9 @@ _transport_unmap_smp_buffer(struct device *dev, struct bsg_buffer *buf,
/** /**
* _transport_smp_handler - transport portal for smp passthru * _transport_smp_handler - transport portal for smp passthru
* @job: ?
* @shost: shost object * @shost: shost object
* @rphy: sas transport rphy object * @rphy: sas transport rphy object
* @req:
* *
* This used primarily for smp_utils. * This used primarily for smp_utils.
* Example: * Example:
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
/** /**
* _mpt3sas_raise_sigio - notifiy app * _mpt3sas_raise_sigio - notifiy app
* @ioc: per adapter object * @ioc: per adapter object
* @event_data: * @event_data: ?
*/ */
static void static void
_mpt3sas_raise_sigio(struct MPT3SAS_ADAPTER *ioc, _mpt3sas_raise_sigio(struct MPT3SAS_ADAPTER *ioc,
...@@ -107,7 +107,7 @@ _mpt3sas_raise_sigio(struct MPT3SAS_ADAPTER *ioc, ...@@ -107,7 +107,7 @@ _mpt3sas_raise_sigio(struct MPT3SAS_ADAPTER *ioc,
/** /**
* mpt3sas_process_trigger_data - process the event data for the trigger * mpt3sas_process_trigger_data - process the event data for the trigger
* @ioc: per adapter object * @ioc: per adapter object
* @event_data: * @event_data: ?
*/ */
void void
mpt3sas_process_trigger_data(struct MPT3SAS_ADAPTER *ioc, mpt3sas_process_trigger_data(struct MPT3SAS_ADAPTER *ioc,
...@@ -209,8 +209,8 @@ mpt3sas_trigger_master(struct MPT3SAS_ADAPTER *ioc, u32 trigger_bitmask) ...@@ -209,8 +209,8 @@ mpt3sas_trigger_master(struct MPT3SAS_ADAPTER *ioc, u32 trigger_bitmask)
/** /**
* mpt3sas_trigger_event - Event trigger handler * mpt3sas_trigger_event - Event trigger handler
* @ioc: per adapter object * @ioc: per adapter object
* @event: * @event: ?
* @log_entry_qualifier: * @log_entry_qualifier: ?
* *
*/ */
void void
...@@ -288,9 +288,9 @@ mpt3sas_trigger_event(struct MPT3SAS_ADAPTER *ioc, u16 event, ...@@ -288,9 +288,9 @@ mpt3sas_trigger_event(struct MPT3SAS_ADAPTER *ioc, u16 event,
/** /**
* mpt3sas_trigger_scsi - SCSI trigger handler * mpt3sas_trigger_scsi - SCSI trigger handler
* @ioc: per adapter object * @ioc: per adapter object
* @sense_key: * @sense_key: ?
* @asc: * @asc: ?
* @ascq: * @ascq: ?
* *
*/ */
void void
...@@ -364,8 +364,8 @@ mpt3sas_trigger_scsi(struct MPT3SAS_ADAPTER *ioc, u8 sense_key, u8 asc, ...@@ -364,8 +364,8 @@ mpt3sas_trigger_scsi(struct MPT3SAS_ADAPTER *ioc, u8 sense_key, u8 asc,
/** /**
* mpt3sas_trigger_mpi - MPI trigger handler * mpt3sas_trigger_mpi - MPI trigger handler
* @ioc: per adapter object * @ioc: per adapter object
* @ioc_status: * @ioc_status: ?
* @loginfo: * @loginfo: ?
* *
*/ */
void void
......
...@@ -267,9 +267,6 @@ mpt3sas_init_warpdrive_properties(struct MPT3SAS_ADAPTER *ioc, ...@@ -267,9 +267,6 @@ mpt3sas_init_warpdrive_properties(struct MPT3SAS_ADAPTER *ioc,
* @scmd: pointer to scsi command object * @scmd: pointer to scsi command object
* @raid_device: pointer to raid device data structure * @raid_device: pointer to raid device data structure
* @mpi_request: pointer to the SCSI_IO reqest message frame * @mpi_request: pointer to the SCSI_IO reqest message frame
* @smid: system request message index
*
* Returns nothing
*/ */
void void
mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd,
......
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