Skip to contentSkip to conversation

staging: cxt1e1: fix sbeCrc function declaration

PATCH New Pawel Lebioda 1 participant 1 message Jun 21, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: cxt1e1: fix sbeCrc function declaration

Hi,

This patch fixes the following sparse warning:

drivers/staging/cxt1e1/sbecrc.c:86:1: warning: symbol 'sbeCrc' was not declared. Should it be static?

Furthermore it fixes wring sbeCrc return type in function declaration.

Regards
Pawel Lebioda

---
 drivers/staging/cxt1e1/pmcc4.h         | 2 +-
 drivers/staging/cxt1e1/pmcc4_private.h | 1 +
 drivers/staging/cxt1e1/sbecrc.c        | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
drivers/staging/cxt1e1/pmcc4.h +1 -1
index b4b5e5a..0220bbf 100644
@@ -94,7 +94,7 @@ void        sbecom_set_loglevel (int debuglevel);
 char       *sbeid_get_bdname (ci_t *ci);
 void        sbeid_set_bdtype (ci_t *ci);
 void        sbeid_set_hdwbid (ci_t *ci);
-u_int32_t   sbeCrc (u_int8_t *, u_int32_t, u_int32_t, u_int32_t *);
+void        sbeCrc(u_int8_t *, u_int32_t, u_int32_t, u_int32_t *);
 
 void        VMETRO_TRIGGER (ci_t *, int);       /* Note: int = 0(default)
                                                  * thru 15 */
drivers/staging/cxt1e1/pmcc4_private.h +1 -0
index 451f12f..134ddd6 100644
@@ -33,6 +33,7 @@
 #include "musycc.h"
 #include "sbe_promformat.h"
 #include "comet.h"
+#include "sbecom_inline_linux.h"
 
 
 /* driver state */
drivers/staging/cxt1e1/sbecrc.c +1 -0
index a51780f..52d3f71 100644
@@ -16,6 +16,7 @@
  */
 
 #include <linux/types.h>
+#include "pmcc4.h"
 #include "pmcc4_sysdep.h"
 #include "sbecom_inline_linux.h"
 #include "sbe_promformat.h"