diff mbox series

[1/4] cmd: sys_eeprom: add missing implicit header

Message ID 20200119071050.16240-2-mrjoel@lixil.net
State New
Headers show
Series Updates for ClearFog EEPROM | expand

Commit Message

Joel Johnson Jan. 19, 2020, 7:10 a.m. UTC
This addresses the following compiler warning:

../cmd/sys_eeprom.c: In function ‘is_checksum_valid’:
../cmd/sys_eeprom.c:96:13: warning: implicit declaration of function ‘crc32’ [-Wimplicit-function-declaration]
  calc_crc = crc32(0, (void *)eeprom,
             ^~~~~

Signed-off-by: Joel Johnson <mrjoel at lixil.net>
---

 cmd/sys_eeprom.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/cmd/sys_eeprom.c b/cmd/sys_eeprom.c
index 373673a526..9e9c1ae8ff 100644
--- a/cmd/sys_eeprom.c
+++ b/cmd/sys_eeprom.c
@@ -12,6 +12,7 @@ 
 #include <i2c_eeprom.h>
 #include <env.h>
 #include <linux/ctype.h>
+#include <u-boot/crc.h>
 
 #include "sys_eeprom.h"