staging: cxt1e1: fix sbeCrc function declaration
authorPawel Lebioda <pawel.lebioda89@gmail.com>
Sat, 21 Jun 2014 17:29:35 +0000 (19:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:35:50 +0000 (20:35 -0400)
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.

Signed-off-by: Pawel Lebioda <pawel.lebioda89@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/cxt1e1/pmcc4.h
drivers/staging/cxt1e1/pmcc4_private.h
drivers/staging/cxt1e1/sbecrc.c

index b4b5e5ad791b776e268473d33d04fcc51b39e57e..0220bbf3445a9c8a7f143eb15806286af7300ecd 100644 (file)
@@ -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 */
index 451f12f5b04c828d51e95680e95732366af0d1b3..134ddd6562e9b53ef537bed731390a6e09ae0881 100644 (file)
@@ -33,6 +33,7 @@
 #include "musycc.h"
 #include "sbe_promformat.h"
 #include "comet.h"
+#include "sbecom_inline_linux.h"
 
 
 /* driver state */
index a51780f60484608569ebe6b7e2a53b7a8765a6a9..52d3f71e5470ce41a1a963a06747919f90c8fe74 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <linux/types.h>
+#include "pmcc4.h"
 #include "pmcc4_sysdep.h"
 #include "sbecom_inline_linux.h"
 #include "sbe_promformat.h"
This page took 0.028612 seconds and 5 git commands to generate.