bsps/mips/malta: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
This commit is contained in:
Joel Sherrill
2025-10-10 13:55:50 -05:00
committed by Gedare Bloom
parent 75ac5826f1
commit b5d863152a
3 changed files with 10 additions and 0 deletions

View File

@@ -45,6 +45,8 @@ void mips_default_isr( int vector );
void mips_vector_isr_handlers( CPU_Interrupt_frame *frame ) void mips_vector_isr_handlers( CPU_Interrupt_frame *frame )
{ {
(void) frame;
unsigned int sr; unsigned int sr;
unsigned int cause; unsigned int cause;
unsigned int pending; unsigned int pending;

View File

@@ -981,6 +981,8 @@ void pci_memory_enable(
unsigned char function unsigned char function
) )
{ {
(void) bus;
uint16_t data; uint16_t data;
pci_read_config_word(0, slot, function, PCI_COMMAND, &data); pci_read_config_word(0, slot, function, PCI_COMMAND, &data);
@@ -995,6 +997,8 @@ void pci_io_enable(
unsigned char function unsigned char function
) )
{ {
(void) bus;
uint16_t data; uint16_t data;
pci_read_config_word(0, slot, function, PCI_COMMAND, &data); pci_read_config_word(0, slot, function, PCI_COMMAND, &data);
@@ -1008,6 +1012,8 @@ void pci_busmaster_enable(
unsigned char function unsigned char function
) )
{ {
(void) bus;
uint16_t data; uint16_t data;
pci_read_config_word(0, slot, function, PCI_COMMAND, &data); pci_read_config_word(0, slot, function, PCI_COMMAND, &data);

View File

@@ -122,6 +122,8 @@ void bsp_start( void )
*/ */
void clear_cache( void *address, size_t n ) void clear_cache( void *address, size_t n )
{ {
(void) address;
(void) n;
} }
void get_mem_info( void get_mem_info(