k230_start.c: Fix condition for k230_copy_init_data()
Fixes regression from https://github.com/apache/nuttx/pull/12220 Error: chip/k230_start.c:80:13: error: 'k230_copy_init_data' defined but not used [-Werror=unused-function] 80 | static void k230_copy_init_data(void) | ^~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
6047a9fe14
commit
cbb07a595e
@ -117,7 +117,8 @@ void k230_start(int mhartid, const char *dtb)
|
|||||||
|
|
||||||
#ifdef CONFIG_RISCV_PERCPU_SCRATCH
|
#ifdef CONFIG_RISCV_PERCPU_SCRATCH
|
||||||
riscv_percpu_add_hart(mhartid);
|
riscv_percpu_add_hart(mhartid);
|
||||||
#else
|
#endif
|
||||||
|
#ifndef CONFIG_BUILD_KERNEL
|
||||||
k230_copy_init_data();
|
k230_copy_init_data();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user