1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-02-19 17:13:58 +01:00
Files
u-boot-megous/include
Rasmus Villemoes 682fef9ff6 include/eeprom.h: fix build errors
CMD_EEPROM and ENV_IS_IN_EEPROM can be selected independently, and
cmd/eeprom.o gets built in either case, so whether to declare the real
prototypes needs to follow the same logic as whether cmd/eeprom.c is
built. Otherwise a ENV_IS_IN_EEPROM=y, CMD_EEPROM=n build fails

cmd/eeprom.c:73:1: error: expected identifier or ‘(’ before ‘{’ token
 {

While at it, fix the dummy replacements (at least assuming they are
meant to allow the code to compile) - they need to have the same type
as the expression they replace, or one gets errors such as

env/eeprom.c: In function ‘eeprom_bus_read’:
env/eeprom.c:37:8: error: void value not ignored as it ought to be
  rcode = eeprom_read(dev_addr, offset, buffer, cnt);

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Tom Rini <trini@konsulko.com>
2020-05-07 09:01:42 -04:00
..
2019-12-06 16:44:20 -05:00
2019-10-16 05:42:27 +02:00
2019-07-24 13:16:29 -04:00
2020-04-17 12:32:36 -04:00
2019-12-15 11:44:16 +08:00
2020-04-30 17:16:12 +08:00
2019-09-20 20:09:19 +02:00
2020-02-05 19:33:46 -07:00
2020-04-16 14:36:28 +08:00
2020-01-07 14:37:50 +01:00
2019-04-23 20:26:43 -06:00
2020-02-05 19:33:46 -07:00
2019-10-13 23:34:43 +02:00
2020-05-07 09:01:42 -04:00
2019-04-22 12:06:39 -04:00
2018-09-23 21:55:30 +02:00
2020-01-24 23:06:47 +05:30
2020-04-29 11:10:54 +05:30
2020-01-20 15:38:16 +01:00
2020-05-02 12:32:28 +02:00
2019-02-20 15:27:09 +08:00
2018-06-13 07:49:12 -04:00
2018-12-06 23:26:32 -05:00
2019-02-09 12:50:22 -07:00
2019-10-14 09:31:41 +02:00
2020-01-20 15:38:16 +01:00
2020-04-30 17:40:16 +08:00
2018-12-05 06:01:35 -07:00
2017-07-23 09:24:47 -04:00
2019-11-07 18:39:16 -05:00
2018-04-06 17:04:33 -04:00
2019-08-11 16:43:41 -04:00
2020-04-17 12:32:36 -04:00
2019-02-02 08:19:17 -05:00
2019-12-02 18:23:11 -05:00
2019-08-02 11:19:14 -04:00
2019-05-20 13:50:34 +02:00
2020-01-25 12:04:36 -05:00
2020-03-09 18:11:23 -05:00
2020-02-05 19:33:46 -07:00
2019-12-15 11:44:11 +08:00
2018-10-09 04:40:27 -06:00
2020-04-30 10:25:07 +02:00
2019-05-20 13:50:34 +02:00
2020-02-05 19:33:46 -07:00
2019-12-06 16:44:19 -05:00
2020-04-27 13:53:13 +02:00
2018-07-19 16:31:37 -04:00
2020-02-05 19:33:46 -07:00
2020-04-16 14:36:28 +08:00
2019-02-01 16:59:12 +01:00
2019-05-21 17:33:23 -06:00
2018-07-20 15:55:05 -04:00
2018-10-09 04:40:27 -06:00
2020-01-24 23:06:49 +05:30
2020-01-21 15:56:15 +01:00
2020-02-07 22:46:35 +08:00
2020-04-24 16:40:09 -04:00
2018-09-28 18:26:32 +02:00