src: Fix the warning "type 'hex' are always defined"
This is spotted using "./util/lint/kconfig_lint" While at it, do the check in C and not the preprocessor. Change-Id: Icfda267936a23d9d14832116d67571f42f685906 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/31050 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
		| @@ -30,7 +30,7 @@ | ||||
| # include "option_table.h" | ||||
| # define BOOT_COUNT_CMOS_OFFSET (CMOS_VSTART_boot_count_offset >> 3) | ||||
| #else | ||||
| # if defined(CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET) && CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET | ||||
| # if (CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET != 0) | ||||
| #  define BOOT_COUNT_CMOS_OFFSET CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET | ||||
| # else | ||||
| #  error "Must configure CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user