pci: stage2: uniform parameter-less function prototype

pull/443/head
Marco Oliverio 2024-03-20 17:11:11 +01:00
parent a0e61f3a58
commit 71a43064f6
4 changed files with 7 additions and 7 deletions

View File

@ -41,7 +41,7 @@ struct stage2_ptr_holder {
uint8_t dummy_idt[DUMMY_IDT_DESC_SIZE];
} __attribute__((packed));
struct stage2_parameter *stage2_get_parameters();
struct stage2_parameter *stage2_get_parameters(void);
void stage2_set_parameters(struct stage2_parameter *p, struct stage2_ptr_holder *holder);
void stage2_copy_parameter(struct stage2_parameter *p);

View File

@ -151,7 +151,7 @@ static int get_top_address(uint64_t *top, struct efi_hob *hoblist)
* \param ptr Pointer to the parameter to be passed to the invoked function.
*/
static void change_stack_and_invoke(uint32_t new_stack,
void (*other_func)(void *))
void (*other_func)(void))
{
__asm__ volatile("movl %0, %%eax\n"
"mov %%eax, %%esp\n"
@ -504,7 +504,7 @@ static int self_extend_pcr(void)
*
* \param ptr Pointer to a parameter structure.
*/
static void memory_ready_entry()
static void memory_ready_entry(void)
{
struct fsp_info_header *fsp_info;
temp_ram_exit_cb TempRamExit;

View File

@ -941,12 +941,12 @@ static void pci_dump_bus(uint8_t bus)
}
}
void pci_dump_config_space()
void pci_dump_config_space(void)
{
return pci_dump_bus(0);
}
#else
void pci_dump_config_space() {};
void pci_dump_config_space(void) {};
#endif
int pci_enum_do(void)

View File

@ -79,7 +79,7 @@ void stage2_set_parameters(struct stage2_parameter *p, struct stage2_ptr_holder
asm ("lidt %0\r\n" : : "m"(idt));
}
struct stage2_parameter *stage2_get_parameters()
struct stage2_parameter *stage2_get_parameters(void)
{
struct stage2_parameter **ptr;
struct idt_descriptor idt;
@ -107,7 +107,7 @@ void stage2_copy_parameter(struct stage2_parameter *p)
* to fill the parameters */
struct stage2_parameter _stage2_params;
struct stage2_parameter *stage2_get_parameters()
struct stage2_parameter *stage2_get_parameters(void)
{
return &_stage2_params;
}