sandbox: fix bloblist_finish() linker error if BLOBLIST=n
authorEvgeny Bachinin <EABachinin@salutedevices.com>
Mon, 2 Dec 2024 13:45:22 +0000 (16:45 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 18 Dec 2024 21:19:16 +0000 (15:19 -0600)
commite5178be68678e0c010cb11d107679aa8ed96e648
treec7f956719da5c9faf7ad4337755b5cb4839ba79c
parentb066ac51e0430966d8028bcdfa12f461d9013f57
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>
include/bloblist.h