error: fix build when CONFIG_PANIC_DUMP_STACK is disabled