Skip to content

Commit

Permalink
core: remove unused arguments from boot_init_primary_early()
Browse files Browse the repository at this point in the history
Removes the now unused arguments from boot_init_primary_early().

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Raymond Mao <raymond.mao@linaro.org>
  • Loading branch information
jenswi-linaro authored and jforissier committed Oct 23, 2023
1 parent 720e880 commit 9c5eac7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions core/arch/arm/kernel/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1248,9 +1248,9 @@ static void init_secondary_helper(unsigned long nsec_entry)
* Note: this function is weak just to make it possible to exclude it from
* the unpaged area so that it lies in the init area.
*/
void __weak boot_init_primary_early(unsigned long pageable_part,
unsigned long nsec_entry __unused)
void __weak boot_init_primary_early(void)
{
unsigned long pageable_part = 0;
unsigned long e = PADDR_INVALID;

if (!IS_ENABLED(CFG_WITH_ARM_TRUSTED_FW))
Expand Down
3 changes: 1 addition & 2 deletions core/arch/arm/kernel/link_dummies_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ core_init_mmu_map(unsigned long seed __unused,
}

void __section(".text.dummy.boot_init_primary_early")
boot_init_primary_early(unsigned long pageable_part __unused,
unsigned long nsec_entry __unused)
boot_init_primary_early(void)
{
}
3 changes: 1 addition & 2 deletions core/arch/riscv/kernel/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ __weak void boot_secondary_init_intc(void)
{
}

void boot_init_primary_early(unsigned long pageable_part __unused,
unsigned long nsec_entry __unused)
void boot_init_primary_early(void)
{
unsigned long e = PADDR_INVALID;

Expand Down
4 changes: 1 addition & 3 deletions core/include/kernel/boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ struct boot_embdata {

extern const struct core_mmu_config boot_mmu_config;

/* @nsec_entry is unused if using CFG_WITH_ARM_TRUSTED_FW */
void boot_init_primary_early(unsigned long pageable_part,
unsigned long nsec_entry);
void boot_init_primary_early(void);
void boot_init_primary_late(unsigned long fdt, unsigned long manifest);
void boot_init_memtag(void);
void boot_save_args(unsigned long a0, unsigned long a1, unsigned long a2,
Expand Down

0 comments on commit 9c5eac7

Please sign in to comment.