Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6680d2ca authored by wwang's avatar wwang Committed by Greg Kroah-Hartman
Browse files

staging: rts_pstor: fix sparse warning



Add static modifier before some functions and global variables.

Signed-off-by: default avatarwwang <wei_wang@realsil.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7eb90a36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3594,7 +3594,7 @@ void ms_free_l2p_tbl(struct rtsx_chip *chip)
#ifdef SUPPORT_MAGIC_GATE

#ifdef READ_BYTES_WAIT_INT
int ms_poll_int(struct rtsx_chip *chip)
static int ms_poll_int(struct rtsx_chip *chip)
{
	int retval;
	u8 val;
+2 −2
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ void do_reset_ms_card(struct rtsx_chip *chip)
	}
}

void release_sdio(struct rtsx_chip *chip)
static void release_sdio(struct rtsx_chip *chip)
{
	if (chip->sd_io) {
		rtsx_write_register(chip, CARD_STOP, SD_STOP | SD_CLR_ERR,
+4 −4
Original line number Diff line number Diff line
@@ -657,7 +657,7 @@ static inline int check_sd_current_prior(u32 sd_current_prior)
	return !fake_para;
}

int rts5209_init(struct rtsx_chip *chip)
static int rts5209_init(struct rtsx_chip *chip)
{
	int retval;
	u32 lval = 0;
@@ -805,7 +805,7 @@ int rts5209_init(struct rtsx_chip *chip)
	return STATUS_SUCCESS;
}

int rts5208_init(struct rtsx_chip *chip)
static int rts5208_init(struct rtsx_chip *chip)
{
	int retval;
	u16 reg = 0;
@@ -871,7 +871,7 @@ int rts5208_init(struct rtsx_chip *chip)
	return STATUS_SUCCESS;
}

int rts5288_init(struct rtsx_chip *chip)
static int rts5288_init(struct rtsx_chip *chip)
{
	int retval;
	u8 val = 0, max_func;
@@ -1097,7 +1097,7 @@ static inline void rtsx_blink_led(struct rtsx_chip *chip)
}
#endif

void rtsx_monitor_aspm_config(struct rtsx_chip *chip)
static void rtsx_monitor_aspm_config(struct rtsx_chip *chip)
{
	int maybe_support_aspm, reg_changed;
	u32 tmp = 0;
+4 −4
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ static int test_unit_ready(struct scsi_cmnd *srb, struct rtsx_chip *chip)
	return TRANSPORT_GOOD;
}

unsigned char formatter_inquiry_str[20] = {
static unsigned char formatter_inquiry_str[20] = {
	'M', 'E', 'M', 'O', 'R', 'Y', 'S', 'T', 'I', 'C', 'K',
#ifdef SUPPORT_MAGIC_GATE
	'-', 'M', 'G', /* Byte[47:49] */
@@ -2690,7 +2690,7 @@ static int ms_format_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip)
}

#ifdef SUPPORT_PCGL_1P18
int get_ms_information(struct scsi_cmnd *srb, struct rtsx_chip *chip)
static int get_ms_information(struct scsi_cmnd *srb, struct rtsx_chip *chip)
{
	struct ms_info *ms_card = &(chip->ms_card);
	unsigned int lun = SCSI_LUN(srb);
@@ -2864,7 +2864,7 @@ static int sd_extention_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip)
#endif

#ifdef SUPPORT_MAGIC_GATE
int mg_report_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
static int mg_report_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
{
	struct ms_info *ms_card = &(chip->ms_card);
	unsigned int lun = SCSI_LUN(srb);
@@ -2962,7 +2962,7 @@ int mg_report_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
	return TRANSPORT_GOOD;
}

int mg_send_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
static int mg_send_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
{
	struct ms_info *ms_card = &(chip->ms_card);
	unsigned int lun = SCSI_LUN(srb);
Loading