mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
scsi: mpt3sas: Fix a couple of misdocumented functions/params
Fixes the following W=1 kernel build warning(s): drivers/scsi/mpt3sas/mpt3sas_transport.c:71: warning: Function parameter or member 'phy' not described in '_transport_get_port_id_by_sas_phy' drivers/scsi/mpt3sas/mpt3sas_transport.c:354: warning: Function parameter or member 'port_id' not described in '_transport_expander_report_manufacture' drivers/scsi/mpt3sas/mpt3sas_transport.c:354: warning: expecting prototype for transport_expander_report_manufacture(). Prototype was for _transport_expander_report_manufacture() instead drivers/scsi/mpt3sas/mpt3sas_transport.c:684: warning: Function parameter or member 'hba_port' not described in 'mpt3sas_transport_port_add' drivers/scsi/mpt3sas/mpt3sas_transport.c:684: warning: Excess function parameter 'port' description in 'mpt3sas_transport_port_add' Link: https://lore.kernel.org/r/20210312094738.2207817-7-lee.jones@linaro.org Cc: Sathya Prakash <sathya.prakash@broadcom.com> Cc: Sreekanth Reddy <sreekanth.reddy@broadcom.com> Cc: Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com> Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: MPT-FusionLinux.pdl@avagotech.com Cc: MPT-FusionLinux.pdl@broadcom.com Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
0dbea7c188
commit
54cb88dc30
@ -62,7 +62,7 @@
|
||||
|
||||
/**
|
||||
* _transport_get_port_id_by_sas_phy - get zone's port id that Phy belong to
|
||||
* @phy - sas_phy object
|
||||
* @phy: sas_phy object
|
||||
*
|
||||
* Return Port number
|
||||
*/
|
||||
@ -339,10 +339,11 @@ struct rep_manu_reply {
|
||||
};
|
||||
|
||||
/**
|
||||
* transport_expander_report_manufacture - obtain SMP report_manufacture
|
||||
* _transport_expander_report_manufacture - obtain SMP report_manufacture
|
||||
* @ioc: per adapter object
|
||||
* @sas_address: expander sas address
|
||||
* @edev: the sas_expander_device object
|
||||
* @port_id: Port ID number
|
||||
*
|
||||
* Fills in the sas_expander_device object when SMP port is created.
|
||||
*
|
||||
@ -671,7 +672,7 @@ _transport_sanity_check(struct MPT3SAS_ADAPTER *ioc, struct _sas_node *sas_node,
|
||||
* @ioc: per adapter object
|
||||
* @handle: handle of attached device
|
||||
* @sas_address: sas address of parent expander or sas host
|
||||
* @port: hba port entry
|
||||
* @hba_port: hba port entry
|
||||
* Context: This function will acquire ioc->sas_node_lock.
|
||||
*
|
||||
* Adding new port object to the sas_node->sas_port_list.
|
||||
|
Loading…
Reference in New Issue
Block a user