[rtems commit] if_fxp.c: Add prototype of rtems_fxp_attach()

Joel Sherrill joel at rtems.org
Thu Apr 20 23:50:53 UTC 2017


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Thu Apr 20 20:44:49 2017 -0500

if_fxp.c: Add prototype of rtems_fxp_attach()

---

 c/src/libchip/network/if_fxp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/c/src/libchip/network/if_fxp.c b/c/src/libchip/network/if_fxp.c
index 82ae423..51ed64c 100644
--- a/c/src/libchip/network/if_fxp.c
+++ b/c/src/libchip/network/if_fxp.c
@@ -408,6 +408,9 @@ static __inline unsigned int fxp_pci_get_revid(struct fxp_softc *sc) {
   return revid;
 }
 
+/* Prototype to avoid warning. This must be a global symbol. */
+int rtems_fxp_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
+
 int
 rtems_fxp_attach(struct rtems_bsdnet_ifconfig *config, int attaching)
 {



More information about the vc mailing list