diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-24 11:35:09 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-24 13:00:56 +0200 |
commit | caccc5bfc6fab5672068e6cf6c32c1318a729cba (patch) | |
tree | 10c09895788142fb547eccc0f0c718c2aa444f46 | |
parent | smptests: Fix format warnings (diff) | |
download | rtems-caccc5bfc6fab5672068e6cf6c32c1318a729cba.tar.bz2 |
bsps: Fix function declaration warnings
-rw-r--r-- | bsps/arm/include/uart.h | 4 | ||||
-rw-r--r-- | bsps/include/bsp/VME.h | 2 | ||||
-rw-r--r-- | bsps/mips/malta/include/bsp/pci.h | 2 | ||||
-rw-r--r-- | bsps/powerpc/beatnik/include/bsp/bsp_bsdnet_attach.h | 2 | ||||
-rw-r--r-- | bsps/powerpc/haleakala/include/mmu_405.h | 10 | ||||
-rw-r--r-- | bsps/powerpc/include/bsp/flashPgmPvt.h | 2 | ||||
-rw-r--r-- | bsps/powerpc/include/bsp/pci.h | 2 | ||||
-rw-r--r-- | bsps/powerpc/motorola_powerpc/include/bsp.h | 7 | ||||
-rw-r--r-- | bsps/powerpc/mvme5500/include/bsp.h | 4 | ||||
-rw-r--r-- | bsps/powerpc/mvme5500/pci/pci.c | 2 |
10 files changed, 20 insertions, 17 deletions
diff --git a/bsps/arm/include/uart.h b/bsps/arm/include/uart.h index 742c56bda3..2fcace24e7 100644 --- a/bsps/arm/include/uart.h +++ b/bsps/arm/include/uart.h @@ -36,8 +36,8 @@ int BSP_uart_polled_read(int uart); void BSP_uart_termios_set(int uart, void *ttyp); int BSP_uart_termios_write_com1(int minor, const char *buf, int len); int BSP_uart_termios_write_com2(int minor, const char *buf, int len); -void BSP_uart_termios_isr_com1(); -void BSP_uart_termios_isr_com2(); +void BSP_uart_termios_isr_com1(void); +void BSP_uart_termios_isr_com2(void); void BSP_uart_dbgisr_com1(void); void BSP_uart_dbgisr_com2(void); extern unsigned BSP_poll_char_via_serial(void); diff --git a/bsps/include/bsp/VME.h b/bsps/include/bsp/VME.h index bdaa45870e..6727665ad0 100644 --- a/bsps/include/bsp/VME.h +++ b/bsps/include/bsp/VME.h @@ -72,7 +72,7 @@ extern "C" { * VME windows and installs the VME interrupt manager. */ -void BSP_vme_config(); +void BSP_vme_config(void); /* translate through host bridge and vme master window of vme bridge */ int diff --git a/bsps/mips/malta/include/bsp/pci.h b/bsps/mips/malta/include/bsp/pci.h index c5944da548..8f12459a80 100644 --- a/bsps/mips/malta/include/bsp/pci.h +++ b/bsps/mips/malta/include/bsp/pci.h @@ -57,7 +57,7 @@ struct pcibridge void FixupPCI( const struct _int_map *, int (*swizzler)(int,int) ); /* FIXME: This probably belongs into rtems/pci.h */ -extern unsigned char pci_bus_count(); +extern unsigned char pci_bus_count(void); int indirect_pci_read_config_byte( unsigned char bus, diff --git a/bsps/powerpc/beatnik/include/bsp/bsp_bsdnet_attach.h b/bsps/powerpc/beatnik/include/bsp/bsp_bsdnet_attach.h index a12e9e2c86..6af8684e9d 100644 --- a/bsps/powerpc/beatnik/include/bsp/bsp_bsdnet_attach.h +++ b/bsps/powerpc/beatnik/include/bsp/bsp_bsdnet_attach.h @@ -39,7 +39,7 @@ typedef struct { */ BSP_NetIFDesc -BSP_availableNetIFs(); +BSP_availableNetIFs(void); /* Define this macro so applications can conditionally compile this API */ #define BSP_HAS_MULTIPLE_NETIFS(x) BSP_availableNetIFs() diff --git a/bsps/powerpc/haleakala/include/mmu_405.h b/bsps/powerpc/haleakala/include/mmu_405.h index e11cfa7738..344dfe4def 100644 --- a/bsps/powerpc/haleakala/include/mmu_405.h +++ b/bsps/powerpc/haleakala/include/mmu_405.h @@ -40,7 +40,7 @@ typedef enum MMUAccessType { } MMUAccessType; /* Initialise and clear the MMU */ -void mmu_initialise(); +void mmu_initialise(void); /* Turn on/off data access translation */ bool mmu_enable_data(bool enable); @@ -55,16 +55,16 @@ void mmu_add_space(uint32_t startAddr, uint32_t endAddr, MMUAccessType permissi void mmu_remove_space(uint32_t startAddr, uint32_t endAddr); /* Return number of TLB entries out of total in use */ -int mmu_get_tlb_count(); +int mmu_get_tlb_count(void); /* Allocate a new process ID and return it */ -uint8_t mmu_new_processID(); +uint8_t mmu_new_processID(void); /* Free a process ID that has been in use */ void mmu_free_processID(uint8_t freeThis); /* Return the current process ID */ -uint8_t mmu_current_processID(); +uint8_t mmu_current_processID(void); /* Change the process ID to ID and return the old value */ uint8_t mmu_set_processID(uint8_t toID); @@ -74,4 +74,4 @@ uint8_t mmu_set_processID(uint8_t toID); } #endif -#endif //_mmu_405.h
\ No newline at end of file +#endif //_mmu_405.h diff --git a/bsps/powerpc/include/bsp/flashPgmPvt.h b/bsps/powerpc/include/bsp/flashPgmPvt.h index c26b8ed01d..c85b9c643d 100644 --- a/bsps/powerpc/include/bsp/flashPgmPvt.h +++ b/bsps/powerpc/include/bsp/flashPgmPvt.h @@ -261,7 +261,7 @@ struct flash_bsp_ops { */ int (*flash_wp)(int bank, int enbl); /* read a running us clock (for polling timeout) */ - uint32_t (*read_us_timer)(); + uint32_t (*read_us_timer)(void); }; /* This must be provided by the BSP */ diff --git a/bsps/powerpc/include/bsp/pci.h b/bsps/powerpc/include/bsp/pci.h index 42dc43875b..b1510b269e 100644 --- a/bsps/powerpc/include/bsp/pci.h +++ b/bsps/powerpc/include/bsp/pci.h @@ -48,7 +48,7 @@ void detect_host_bridge(void); void FixupPCI( const struct _int_map *, int (*swizzler)(int,int) ); /* FIXME: This probably belongs into rtems/pci.h */ -extern unsigned char pci_bus_count(); +extern unsigned char pci_bus_count(void); /* FIXME: This also is generic and could go into rtems/pci.h */ diff --git a/bsps/powerpc/motorola_powerpc/include/bsp.h b/bsps/powerpc/motorola_powerpc/include/bsp.h index f641b4885b..6475902f47 100644 --- a/bsps/powerpc/motorola_powerpc/include/bsp.h +++ b/bsps/powerpc/motorola_powerpc/include/bsp.h @@ -129,17 +129,18 @@ extern "C" { #define BSP_CONSOLE_PORT BSP_UART_COM1 #define BSP_UART_BAUD_BASE 115200 -#if defined(MVME_HAS_DEC21140) struct rtems_bsdnet_ifconfig; + +#if defined(MVME_HAS_DEC21140) #define RTEMS_BSP_NETWORK_DRIVER_NAME "dc1" #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_dec21140_driver_attach -extern int rtems_dec21140_driver_attach(); +extern int rtems_dec21140_driver_attach(struct rtems_bsdnet_ifconfig *, int); #endif #ifdef qemu #define RTEMS_BSP_NETWORK_DRIVER_NAME "ne1" #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_ne_driver_attach -extern int rtems_ne_driver_attach(); +extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *, int); RTEMS_INLINE_ROUTINE const char* bsp_cmdline_arg(const char* arg) { diff --git a/bsps/powerpc/mvme5500/include/bsp.h b/bsps/powerpc/mvme5500/include/bsp.h index c1b17cee10..dbf0afec41 100644 --- a/bsps/powerpc/mvme5500/include/bsp.h +++ b/bsps/powerpc/mvme5500/include/bsp.h @@ -177,7 +177,9 @@ int I2Cread_eeprom( #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_i82544EI_driver_attach #endif -extern int RTEMS_BSP_NETWORK_DRIVER_ATTACH(); +struct rtems_bsdnet_ifconfig; + +extern int RTEMS_BSP_NETWORK_DRIVER_ATTACH(struct rtems_bsdnet_ifconfig *, int); #define gccMemBar() RTEMS_COMPILER_MEMORY_BARRIER() diff --git a/bsps/powerpc/mvme5500/pci/pci.c b/bsps/powerpc/mvme5500/pci/pci.c index 8ef5876047..cf68699e74 100644 --- a/bsps/powerpc/mvme5500/pci/pci.c +++ b/bsps/powerpc/mvme5500/pci/pci.c @@ -413,7 +413,7 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) ) /* * Return the number of PCI buses in the system */ -unsigned char pci_bus_count() +unsigned char pci_bus_count(void) { return(ucMaxPCIBus); } |