[rtems commit] bsps: Remove bogus config declaration

Sebastian Huber sebh at rtems.org
Mon May 6 05:57:51 UTC 2019


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon May  6 07:56:01 2019 +0200

bsps: Remove bogus config declaration

Replace it with a proper struct rtems_bsdnet_ifconfig forward
declaration.

Close #3742.

---

 bsps/arm/csb336/include/bsp.h  | 2 +-
 bsps/arm/csb337/include/bsp.h  | 2 +-
 bsps/mips/csb350/include/bsp.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bsps/arm/csb336/include/bsp.h b/bsps/arm/csb336/include/bsp.h
index 9e6cbf7..996708f 100644
--- a/bsps/arm/csb336/include/bsp.h
+++ b/bsps/arm/csb336/include/bsp.h
@@ -50,7 +50,7 @@ int get_perclk1_freq(void);
 /**
  * @brief Network driver configuration
  */
-extern struct rtems_bsdnet_ifconfig *config;
+struct rtems_bsdnet_ifconfig;
 
 /* Change these to match your board */
 int rtems_mc9328mxl_enet_attach(struct rtems_bsdnet_ifconfig *config,
diff --git a/bsps/arm/csb337/include/bsp.h b/bsps/arm/csb337/include/bsp.h
index d5daa63..52f7a57 100644
--- a/bsps/arm/csb337/include/bsp.h
+++ b/bsps/arm/csb337/include/bsp.h
@@ -61,7 +61,7 @@ static inline int32_t BSP_get_baud(void) {return 38400;}
 /**
  * @brief Network driver configuration
  */
-extern struct rtems_bsdnet_ifconfig *config;
+struct rtems_bsdnet_ifconfig;
 
 /* Change these to match your board */
 int rtems_at91rm9200_emac_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
diff --git a/bsps/mips/csb350/include/bsp.h b/bsps/mips/csb350/include/bsp.h
index df39b02..26dbe3c 100644
--- a/bsps/mips/csb350/include/bsp.h
+++ b/bsps/mips/csb350/include/bsp.h
@@ -44,7 +44,7 @@ extern "C" {
 /*
  * Network driver configuration
  */
-extern struct rtems_bsdnet_ifconfig *config;
+struct rtems_bsdnet_ifconfig;
 
 int rtems_au1x00_emac_attach(struct rtems_bsdnet_ifconfig *config,
                              int attaching);



More information about the vc mailing list