mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
libfdt: Remove fdt parameter from overlay_fixup_one_phandle
When compiling with -Wall -Wextra, the unused fdt parameter becomes a warning. With -Werror, it becomes an error and fails the build. As the parameter is not used in the function, let's remove it. Signed-off-by: Bingwu Zhang <xtexchooser@duck.com> Message-ID: <20241123094814.15504-2-xtex@envs.net> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
b3bbee6b12
commit
1c745a9bd1
1 changed files with 2 additions and 4 deletions
|
@ -307,7 +307,6 @@ static int overlay_update_local_references(void *fdto, uint32_t delta)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* overlay_fixup_one_phandle - Set an overlay phandle to the base one
|
* overlay_fixup_one_phandle - Set an overlay phandle to the base one
|
||||||
* @fdt: Base Device Tree blob
|
|
||||||
* @fdto: Device tree overlay blob
|
* @fdto: Device tree overlay blob
|
||||||
* @symbols_off: Node offset of the symbols node in the base device tree
|
* @symbols_off: Node offset of the symbols node in the base device tree
|
||||||
* @path: Path to a node holding a phandle in the overlay
|
* @path: Path to a node holding a phandle in the overlay
|
||||||
|
@ -328,8 +327,7 @@ static int overlay_update_local_references(void *fdto, uint32_t delta)
|
||||||
* 0 on success
|
* 0 on success
|
||||||
* Negative error code on failure
|
* Negative error code on failure
|
||||||
*/
|
*/
|
||||||
static int overlay_fixup_one_phandle(void *fdt, void *fdto,
|
static int overlay_fixup_one_phandle(void *fdto, int symbols_off,
|
||||||
int symbols_off,
|
|
||||||
const char *path, uint32_t path_len,
|
const char *path, uint32_t path_len,
|
||||||
const char *name, uint32_t name_len,
|
const char *name, uint32_t name_len,
|
||||||
int poffset, uint32_t phandle)
|
int poffset, uint32_t phandle)
|
||||||
|
@ -443,7 +441,7 @@ static int overlay_fixup_phandle(void *fdt, void *fdto, int symbols_off,
|
||||||
if ((*endptr != '\0') || (endptr <= (sep + 1)))
|
if ((*endptr != '\0') || (endptr <= (sep + 1)))
|
||||||
return -FDT_ERR_BADOVERLAY;
|
return -FDT_ERR_BADOVERLAY;
|
||||||
|
|
||||||
ret = overlay_fixup_one_phandle(fdt, fdto, symbols_off,
|
ret = overlay_fixup_one_phandle(fdto, symbols_off,
|
||||||
path, path_len, name, name_len,
|
path, path_len, name, name_len,
|
||||||
poffset, phandle);
|
poffset, phandle);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue