Skip to content

Commit 5767d25

Browse files
Joe LawrenceChristoph Hellwig
authored andcommitted
mptfusion: mark file-private functions as static
Fixes the following sparse warnings: drivers/message/fusion/mptbase.c:7011:1: warning: symbol 'mpt_SoftResetHandler' was not declared. Should it be static? drivers/message/fusion/mptsas.c:1578:23: warning: symbol 'mptsas_refreshing_device_handles' was not declared. Should it be static? drivers/message/fusion/mptsas.c:3653:24: warning: symbol 'mptsas_expander_add' was not declared. Should it be static? drivers/message/fusion/mptsas.c:5327:1: warning: symbol 'mptsas_shutdown' was not declared. Should it be static? drivers/message/fusion/mptspi.c:624:1: warning: symbol 'mptscsih_quiesce_raid' was not declared. Should it be static? Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com> Acked-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 35b6236 commit 5767d25

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/message/fusion/mptbase.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7007,7 +7007,7 @@ EXPORT_SYMBOL(mpt_halt_firmware);
70077007
* IOC doesn't reply to any outstanding request. This will transfer IOC
70087008
* to READY state.
70097009
**/
7010-
int
7010+
static int
70117011
mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag)
70127012
{
70137013
int rc;

‎drivers/message/fusion/mptsas.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ mptsas_del_end_device(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info)
15751575
mptsas_port_delete(ioc, phy_info->port_details);
15761576
}
15771577

1578-
struct mptsas_phyinfo *
1578+
static struct mptsas_phyinfo *
15791579
mptsas_refreshing_device_handles(MPT_ADAPTER *ioc,
15801580
struct mptsas_devinfo *sas_device)
15811581
{
@@ -3648,7 +3648,7 @@ mptsas_send_expander_event(struct fw_event_work *fw_event)
36483648
* @handle:
36493649
*
36503650
*/
3651-
struct mptsas_portinfo *
3651+
static struct mptsas_portinfo *
36523652
mptsas_expander_add(MPT_ADAPTER *ioc, u16 handle)
36533653
{
36543654
struct mptsas_portinfo buffer, *port_info;
@@ -5321,7 +5321,7 @@ mptsas_probe(struct pci_dev *pdev, const struct pci_device_id *id)
53215321
return error;
53225322
}
53235323

5324-
void
5324+
static void
53255325
mptsas_shutdown(struct pci_dev *pdev)
53265326
{
53275327
MPT_ADAPTER *ioc = pci_get_drvdata(pdev);

‎drivers/message/fusion/mptspi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ static void mptspi_read_parameters(struct scsi_target *starget)
620620
spi_width(starget) = (nego & MPI_SCSIDEVPAGE0_NP_WIDE) ? 1 : 0;
621621
}
622622

623-
int
623+
static int
624624
mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id)
625625
{
626626
MPT_ADAPTER *ioc = hd->ioc;

0 commit comments

Comments
 (0)