Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Lawrence and committed by
Christoph Hellwig
5767d25f 35b62362

+5 -5
+1 -1
drivers/message/fusion/mptbase.c
··· 7007 7007 * IOC doesn't reply to any outstanding request. This will transfer IOC 7008 7008 * to READY state. 7009 7009 **/ 7010 - int 7010 + static int 7011 7011 mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag) 7012 7012 { 7013 7013 int rc;
+3 -3
drivers/message/fusion/mptsas.c
··· 1575 1575 mptsas_port_delete(ioc, phy_info->port_details); 1576 1576 } 1577 1577 1578 - struct mptsas_phyinfo * 1578 + static struct mptsas_phyinfo * 1579 1579 mptsas_refreshing_device_handles(MPT_ADAPTER *ioc, 1580 1580 struct mptsas_devinfo *sas_device) 1581 1581 { ··· 3648 3648 * @handle: 3649 3649 * 3650 3650 */ 3651 - struct mptsas_portinfo * 3651 + static struct mptsas_portinfo * 3652 3652 mptsas_expander_add(MPT_ADAPTER *ioc, u16 handle) 3653 3653 { 3654 3654 struct mptsas_portinfo buffer, *port_info; ··· 5321 5321 return error; 5322 5322 } 5323 5323 5324 - void 5324 + static void 5325 5325 mptsas_shutdown(struct pci_dev *pdev) 5326 5326 { 5327 5327 MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
+1 -1
drivers/message/fusion/mptspi.c
··· 620 620 spi_width(starget) = (nego & MPI_SCSIDEVPAGE0_NP_WIDE) ? 1 : 0; 621 621 } 622 622 623 - int 623 + static int 624 624 mptscsih_quiesce_raid(MPT_SCSI_HOST *hd, int quiesce, u8 channel, u8 id) 625 625 { 626 626 MPT_ADAPTER *ioc = hd->ioc;