diff options
author | Pawel Lebioda <pawel.lebioda89@gmail.com> | 2014-06-21 19:29:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-26 20:35:50 -0400 |
commit | 7bb3c79862be281c4f6cdf49c5f044981f2241a5 (patch) | |
tree | b691184e1415e3ead7b6d707d4e4c288f1b630ad | |
parent | 2eca2816752f29dd533762d9693f49e2717fb80b (diff) | |
download | blackbird-op-linux-7bb3c79862be281c4f6cdf49c5f044981f2241a5.tar.gz blackbird-op-linux-7bb3c79862be281c4f6cdf49c5f044981f2241a5.zip |
staging: cxt1e1: fix sbeCrc function declaration
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>
-rw-r--r-- | drivers/staging/cxt1e1/pmcc4.h | 2 | ||||
-rw-r--r-- | drivers/staging/cxt1e1/pmcc4_private.h | 1 | ||||
-rw-r--r-- | drivers/staging/cxt1e1/sbecrc.c | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/cxt1e1/pmcc4.h b/drivers/staging/cxt1e1/pmcc4.h index b4b5e5ad791b..0220bbf3445a 100644 --- a/drivers/staging/cxt1e1/pmcc4.h +++ b/drivers/staging/cxt1e1/pmcc4.h @@ -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 */ diff --git a/drivers/staging/cxt1e1/pmcc4_private.h b/drivers/staging/cxt1e1/pmcc4_private.h index 451f12f5b04c..134ddd6562e9 100644 --- a/drivers/staging/cxt1e1/pmcc4_private.h +++ b/drivers/staging/cxt1e1/pmcc4_private.h @@ -33,6 +33,7 @@ #include "musycc.h" #include "sbe_promformat.h" #include "comet.h" +#include "sbecom_inline_linux.h" /* driver state */ diff --git a/drivers/staging/cxt1e1/sbecrc.c b/drivers/staging/cxt1e1/sbecrc.c index a51780f60484..52d3f71e5470 100644 --- a/drivers/staging/cxt1e1/sbecrc.c +++ b/drivers/staging/cxt1e1/sbecrc.c @@ -16,6 +16,7 @@ */ #include <linux/types.h> +#include "pmcc4.h" #include "pmcc4_sysdep.h" #include "sbecom_inline_linux.h" #include "sbe_promformat.h" |