common/spl/spl_ufs.c uses BOOT_DEVICE_UFS, which the common list does not define, so enabling CONFIG_SPL_UFS_SUPPORT on RISC-V fails to build:
common/spl/spl_ufs.c:49:33: error: 'BOOT_DEVICE_UFS' undeclared here (not in a function); did you mean 'BOOT_DEVICE_DFU'? Add it before BOOT_DEVICE_NONE, which stays last as the list terminator. The BOOT_DEVICE_* values are SPL-internal and are not passed to the next stage, so this is not an ABI change. Signed-off-by: Urvashi Sharma <[email protected]> --- include/asm-generic/spl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/asm-generic/spl.h b/include/asm-generic/spl.h index 7b4789596a2..5b50ae2acf3 100644 --- a/include/asm-generic/spl.h +++ b/include/asm-generic/spl.h @@ -31,6 +31,7 @@ enum { BOOT_DEVICE_XIP, BOOT_DEVICE_BOOTROM, BOOT_DEVICE_SMH, + BOOT_DEVICE_UFS, BOOT_DEVICE_NONE }; -- 2.34.1
