]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: vsprintf: fix API build
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 3 Nov 2024 03:50:15 +0000 (04:50 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 13 Nov 2024 14:16:41 +0000 (08:16 -0600)
commit1cfafff3192a81055fd7e833313a85d5feede1e3
tree54ffb88b1e126d1a33d476f61095044f13ff7cac
parent9d49c73862c4c492b81b8cdd941fc4d602774673
lib: vsprintf: fix API build

Avoid a build failure when building with CONFIG_API=y, CONFIG_EXAMPLES=y:

    lib/vsprintf.c:312:14: warning:
    ‘device_path_string’ defined but not used [-Wunused-function]
     312 | static char *device_path_string(char *buf, char *end, void *dp, int field_width,
         |              ^~~~~~~~~~~~~~~~~~

Fixes: 64b5ba4d293a ("efi_loader: make device path to text protocol customizable")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/vsprintf.c