Replace usage of warning_add by printk_once with a **** prefix and
suffix for errata related warnings.
This prevents the need for the assert which is not secure enough to
protect this print against wrong usage.
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
static int enable_smccc_arch_workaround_1(void *data)
{
struct arm_smccc_res res;
- static bool warned = false;
const struct arm_cpu_capabilities *entry = data;
/*
"call ARM_SMCCC_ARCH_WORKAROUND_1");
warn:
- if ( !warned )
- {
- ASSERT(system_state < SYS_STATE_active);
- warning_add("No support for ARM_SMCCC_ARCH_WORKAROUND_1.\n"
- "Please update your firmware.\n");
- warned = true;
- }
+ printk_once("**** No support for ARM_SMCCC_ARCH_WORKAROUND_1. ****\n"
+ "**** Please update your firmware. ****\n");
return 0;
}