summaryrefslogtreecommitdiff
path: root/drivers/staging/rts_pstor/rtsx.c
diff options
context:
space:
mode:
authorwwang <wei_wang@realsil.com.cn>2011-02-16 07:56:11 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 20:31:29 (GMT)
commit6680d2cab316a0c0e4cea0727e6d63426a77bb12 (patch)
tree6ad0af62c14488e769d9ae1520c89c4b569c8211 /drivers/staging/rts_pstor/rtsx.c
parent7eb90a3682fc42c5607cff931e5d0f6a9d52dc03 (diff)
downloadlinux-fsl-qoriq-6680d2cab316a0c0e4cea0727e6d63426a77bb12.tar.xz
staging: rts_pstor: fix sparse warning
Add static modifier before some functions and global variables. Signed-off-by: wwang <wei_wang@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rts_pstor/rtsx.c')
-rw-r--r--drivers/staging/rts_pstor/rtsx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rts_pstor/rtsx.c b/drivers/staging/rts_pstor/rtsx.c
index 2b18379..c3f33d1 100644
--- a/drivers/staging/rts_pstor/rtsx.c
+++ b/drivers/staging/rts_pstor/rtsx.c
@@ -257,7 +257,7 @@ static int bus_reset(struct scsi_cmnd *srb)
* this defines our host template, with which we'll allocate hosts
*/
-struct scsi_host_template rtsx_host_template = {
+static struct scsi_host_template rtsx_host_template = {
/* basic userland interface stuff */
.name = CR_DRIVER_NAME,
.proc_name = CR_DRIVER_NAME,
@@ -436,7 +436,7 @@ static int rtsx_resume(struct pci_dev *pci)
}
#endif /* CONFIG_PM */
-void rtsx_shutdown(struct pci_dev *pci)
+static void rtsx_shutdown(struct pci_dev *pci)
{
struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci);
struct rtsx_chip *chip;