[rtems commit] bsps: Fix function declaration warnings

Sebastian Huber sebh at rtems.org
Tue Jul 24 12:37:15 UTC 2018


Module:    rtems
Branch:    master
Commit:    caccc5bfc6fab5672068e6cf6c32c1318a729cba
Changeset: http://git.rtems.org/rtems/commit/?id=caccc5bfc6fab5672068e6cf6c32c1318a729cba

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jul 24 11:35:09 2018 +0200

bsps: Fix function declaration warnings

---

 bsps/arm/include/uart.h                              |  4 ++--
 bsps/include/bsp/VME.h                               |  2 +-
 bsps/mips/malta/include/bsp/pci.h                    |  2 +-
 bsps/powerpc/beatnik/include/bsp/bsp_bsdnet_attach.h |  2 +-
 bsps/powerpc/haleakala/include/mmu_405.h             | 10 +++++-----
 bsps/powerpc/include/bsp/flashPgmPvt.h               |  2 +-
 bsps/powerpc/include/bsp/pci.h                       |  2 +-
 bsps/powerpc/motorola_powerpc/include/bsp.h          |  7 ++++---
 bsps/powerpc/mvme5500/include/bsp.h                  |  4 +++-
 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 742c56b..2fcace2 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 bdaa458..6727665 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 c5944da..8f12459 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 a12e9e2..6af8684 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 e11cfa7..344dfe4 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 c26b8ed..c85b9c6 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 42dc438..b1510b2 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 f641b48..6475902 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 c1b17ce..dbf0afe 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 8ef5876..cf68699 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);
 }




More information about the vc mailing list