mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
fw_env: remove duplicated definitions
Since commit d3716dd
("env: Rename the redundancy flags"), the
definitions of ENV_REDUND_OBSOLETE & ENV_REDUND_ACTIVE was moved
to env.h.
Fixes:
tools/env/fw_env.c:122:22: error: ‘ENV_REDUND_ACTIVE’ redeclared as different kind of symbol
static unsigned char ENV_REDUND_ACTIVE = 1;
^~~~~~~~~~~~~~~~~
In file included from tools/env/fw_env.c:13:
include/env.h:63:2: note: previous definition of ‘ENV_REDUND_ACTIVE’ was here
ENV_REDUND_ACTIVE = 1,
^~~~~~~~~~~~~~~~~
tools/env/fw_env.c:127:22: error: ‘ENV_REDUND_OBSOLETE’ redeclared as different kind of symbol
static unsigned char ENV_REDUND_OBSOLETE;
^~~~~~~~~~~~~~~~~~~
In file included from tools/env/fw_env.c:13:
include/env.h:62:2: note: previous definition of ‘ENV_REDUND_OBSOLETE’ was here
ENV_REDUND_OBSOLETE = 0,
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Tested-by: Joris Offouga <offougajoris@gmail.com>
Tested-by: Heiko Schocher <hs@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
31e086e460
commit
e184a3b4fd
1 changed files with 0 additions and 7 deletions
7
tools/env/fw_env.c
vendored
7
tools/env/fw_env.c
vendored
|
@ -119,13 +119,6 @@ static struct environment environment = {
|
||||||
|
|
||||||
static int have_redund_env;
|
static int have_redund_env;
|
||||||
|
|
||||||
static unsigned char ENV_REDUND_ACTIVE = 1;
|
|
||||||
/*
|
|
||||||
* ENV_REDUND_OBSOLETE must be 0 to efficiently set it on NOR flash without
|
|
||||||
* erasing
|
|
||||||
*/
|
|
||||||
static unsigned char ENV_REDUND_OBSOLETE;
|
|
||||||
|
|
||||||
#define DEFAULT_ENV_INSTANCE_STATIC
|
#define DEFAULT_ENV_INSTANCE_STATIC
|
||||||
#include <env_default.h>
|
#include <env_default.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue