crypto: crc32: fix warnings: no previous prototype for 'crc32', 'crc32_no_comp', 'file_crc'
PATCH 1/3 crypto: crc32: fix warnings: no previous prototype for 'crc32', 'crc32_no_comp', 'file_crc'
Signed-off-by Sergey Koshechkin <[email protected]>
--- crypto/crc32.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
crypto/crc32.c +6 -3
@@ -16,6 +16,9 @@#include <malloc.h> #include <linux/ctype.h> #include <errno.h> +#define STATIC +#else +#define STATIC static inline#endif #ifdef CONFIG_DYNAMIC_CRC_TABLE
@@ -138,7 +141,7 @@ static const ulong crc_table[256] = {#define DO8 (buf) DO4(buf); DO4(buf);/* ========================================================================= */ -uint32_t crc32 (uint32_t crc,const void *_buf,unsigned int len) +STATIC uint32_t crc32(uint32_t crc, const void *_buf, unsigned int len) {const unsigned char *buf = _buf;
@@ -164,7 +167,7 @@ EXPORT_SYMBOL(crc32);/* No ones complement version. JFFS2 (and other things ?) * don't use ones compliment in their CRC calculations. */ -uint32_t crc32_no_comp (uint32_t crc,const void *_buf,unsigned int len) +STATIC uint32_t crc32_no_comp(uint32_t crc, const void *_buf, unsigned int len) {const unsigned char *buf = _buf;
@@ -184,7 +187,7 @@ uint32_t crc32_no_comp(uint32_t crc, const void *_buf, unsigned int len)return crc; } -int file_crc (char *filename,ulong start,ulong size,ulong *crc, +STATIC int file_crc(char *filename, ulong start, ulong size, ulong *crc,ulong *total) {int fd, now;
Signature · 7 lines
2.6.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
Appliedcrypto/crc32.c
Quoted 6 lines · Sergey Koshechkin
Signed-off-by Sergey Koshechkin <[email protected]>--- crypto/crc32.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)crypto/crc32.c +0
-0
Applied, thanks.
Sascha
Quoted 49 lines
index e7b1bd7..58637bd 100644
crypto/crc32.c +6
-3@@ -16,6 +16,9 @@#include <malloc.h> #include <linux/ctype.h> #include <errno.h> +#define STATIC +#else +#define STATIC static inline#endif #ifdef CONFIG_DYNAMIC_CRC_TABLE @@ -138,7 +141,7 @@ static const ulong crc_table[256] = {#define DO8 (buf) DO4(buf); DO4(buf);/* ========================================================================= */ -uint32_t crc32 (uint32_t crc,const void *_buf,unsigned int len) +STATIC uint32_t crc32(uint32_t crc, const void *_buf, unsigned int len) {const unsigned char *buf = _buf;@@ -164,7 +167,7 @@ EXPORT_SYMBOL(crc32);/* No ones complement version. JFFS2 (and other things ?) * don't use ones compliment in their CRC calculations. */ -uint32_t crc32_no_comp (uint32_t crc,const void *_buf,unsigned int len) +STATIC uint32_t crc32_no_comp(uint32_t crc, const void *_buf, unsigned int len) {const unsigned char *buf = _buf;@@ -184,7 +187,7 @@ uint32_t crc32_no_comp(uint32_t crc, const void *_buf, unsigned int len)return crc; } -int file_crc (char *filename,ulong start,ulong size,ulong *crc, +STATIC int file_crc(char *filename, ulong start, ulong size, ulong *crc,ulong *total) {int fd, now;Signature · 7 lines
2.6.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox