Avoid "implicit declaration of function 'tinf_crc32'"
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>
Tue, 20 Oct 2015 22:30:29 +0000 (00:30 +0200)
committerTobias Diedrich <ranma+coreboot@tdiedrich.de>
Tue, 20 Oct 2015 22:31:03 +0000 (00:31 +0200)
u-boot/include/common.h

index 3ff025531fc9c821bcbe280bf9076c78bffa73d3..82d6614e694584c9e780d9e192671e2184ac0bf1 100644 (file)
@@ -538,6 +538,7 @@ int vsprintf(char *buf, const char *fmt, va_list args);
 /* Hack: Forces compilation failure if must_be_zero is not zero. */
 #define crc32(must_be_zero, buf, len) \
        tinf_crc32(buf, len*(sizeof(char[1 - 2*!!(must_be_zero)])))
+uint tinf_crc32(const void *data, uint length);
 
 /* common/console.c */
 int    console_init_f(void);   /* Before relocation; uses the serial  stuff    */