staging: rts5139: fix bad symbol declaration
authorNeil Armstrong <superna9999@gmail.com>
Fri, 11 Apr 2014 12:58:58 +0000 (14:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 22:30:52 +0000 (15:30 -0700)
With sparse, the following error appears :
  CHECK   drivers/staging/rts5139/ms_mg.c
drivers/staging/rts5139/ms_mg.c:82:5: warning: symbol 'mg_set_tpc_para_sub' was not declared. Should it be static?

Rename function with correct prefix and move declaration to coherent internal header file.

Signed-off-by: Neil 'Superna' Armstrong <superna9999@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5139/ms.c
drivers/staging/rts5139/ms_mg.c
drivers/staging/rts5139/ms_mg.h

index 390292ad456659c60b5fe2149cc051acb15f6049..a843a2f4392b08b8dd5f2e4474dcea7be11dc8c5 100644 (file)
@@ -36,6 +36,7 @@
 #include "rts51x_scsi.h"
 #include "rts51x_card.h"
 #include "ms.h"
+#include "ms_mg.h"
 
 static inline void ms_set_err_code(struct rts51x_chip *chip, u8 err_code)
 {
@@ -1183,10 +1184,6 @@ static int ms_read_attribute_info(struct rts51x_chip *chip)
        return STATUS_SUCCESS;
 }
 
-#ifdef SUPPORT_MAGIC_GATE
-int mg_set_tpc_para_sub(struct rts51x_chip *chip, int type, u8 mg_entry_num);
-#endif
-
 static int reset_ms_pro(struct rts51x_chip *chip)
 {
        struct ms_info *ms_card = &(chip->ms_card);
@@ -1232,7 +1229,7 @@ Retry:
 #endif
 
 #ifdef SUPPORT_MAGIC_GATE
-       retval = mg_set_tpc_para_sub(chip, 0, 0);
+       retval = rts51x_mg_set_tpc_para_sub(chip, 0, 0);
        if (retval != STATUS_SUCCESS)
                TRACE_RET(chip, retval);
 #endif
index 00862c1a36dbee1870c4c91856cab1ea4b44fb77..c8f26062c6824ed9d787cb6dd6c172541af1d2a2 100644 (file)
@@ -79,7 +79,7 @@ static int mg_send_ex_cmd(struct rts51x_chip *chip, u8 cmd, u8 entry_num)
        return STATUS_SUCCESS;
 }
 
-int mg_set_tpc_para_sub(struct rts51x_chip *chip, int type, u8 mg_entry_num)
+int rts51x_mg_set_tpc_para_sub(struct rts51x_chip *chip, int type, u8 mg_entry_num)
 {
        int retval;
        u8 buf[6];
index d15733a992ae5f17295ac4461a0cbf868323f9d5..109c71290953563a5eddd69189d70fcdd4213d58 100644 (file)
@@ -30,6 +30,7 @@
 #include "rts51x_chip.h"
 #include "ms.h"
 
+int rts51x_mg_set_tpc_para_sub(struct rts51x_chip *chip, int type, u8 mg_entry_num);
 int rts51x_mg_set_leaf_id(struct scsi_cmnd *srb, struct rts51x_chip *chip);
 int rts51x_mg_get_local_EKB(struct scsi_cmnd *srb, struct rts51x_chip *chip);
 int rts51x_mg_chg(struct scsi_cmnd *srb, struct rts51x_chip *chip);
This page took 0.026477 seconds and 5 git commands to generate.