diff options
| author | Evgeny Bachinin <EABachinin@salutedevices.com> | 2024-12-02 16:45:22 +0300 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-12-18 15:19:16 -0600 |
| commit | e5178be68678e0c010cb11d107679aa8ed96e648 (patch) | |
| tree | c7f956719da5c9faf7ad4337755b5cb4839ba79c /include/bloblist.h | |
| parent | b066ac51e0430966d8028bcdfa12f461d9013f57 (diff) | |
sandbox: fix bloblist_finish() linker error if BLOBLIST=n
Having CONFIG_OF_EMBED=y && CONFIG_BLOBLIST=n leads to the link
error:
```
ld: /tmp/ccwtRVty.ltrans0.ltrans.o: in function `state_uninit':
arch/sandbox/cpu/state.c:508: undefined reference to `bloblist_finish'
```
Fixes: 1c52fcca72b ("sandbox: Write out bloblist when exiting")
Signed-off-by: Evgeny Bachinin <EABachinin@salutedevices.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bloblist.h')
| -rw-r--r-- | include/bloblist.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/bloblist.h b/include/bloblist.h index ff32d3fecfd..f999391f74b 100644 --- a/include/bloblist.h +++ b/include/bloblist.h @@ -357,6 +357,7 @@ int bloblist_new(ulong addr, uint size, uint flags, uint align_log2); */ int bloblist_check(ulong addr, uint size); +#if CONFIG_IS_ENABLED(BLOBLIST) /** * bloblist_finish() - Set up the bloblist for the next U-Boot part * @@ -366,6 +367,12 @@ int bloblist_check(ulong addr, uint size); * Return: 0 */ int bloblist_finish(void); +#else +static inline int bloblist_finish(void) +{ + return 0; +} +#endif /* BLOBLIST */ /** * bloblist_get_stats() - Get information about the bloblist |
