Skip to content

Commit

Permalink
[review] core: dt: cache embedded DTB node ...
Browse files Browse the repository at this point in the history
Fix build error when CFG_EMBED_DTB is disabled.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
etienne-lms committed Oct 3, 2024
1 parent e524167 commit 3aac7fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/kernel/dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,12 @@ void *get_secure_dt(void)
return fdt;
}

#if defined(CFG_EMBED_DTB)
#ifdef CFG_DT_CACHED_NODE_INFO
/* Reference to the FDT for which node information are cached */
/*
* Reference to the embedded DT for which node information are cached
* when CFG_DT_CACHED_NODE_INFO is enabled.
*/
static const void *cached_node_info_fdt;

/*
Expand Down Expand Up @@ -796,7 +800,6 @@ static void init_cached_node_info(const void *fdt __unused)
}
#endif /* CFG_DT_CACHED_NODE_INFO */

#if defined(CFG_EMBED_DTB)
void *get_embedded_dt(void)
{
static bool checked;
Expand Down

0 comments on commit 3aac7fb

Please sign in to comment.