[GSOC] Help regarding pc386 3c509.c file

Vipul Nayyar nayyar_vipul at yahoo.com
Mon Jul 15 16:47:19 UTC 2013


Hello,

I'm currently working on i386 pc386 BSP. This problem concerns the 3c509/3c509.c file.

After turning rtems_3c509_driver_attach() from global to static, since it's not being used anywhere outside in the tree, I get this warning for unused function. Ideally I should delete it. If I delete it, then I end up deleting all other functions also. But this rtems_3c509_driver_attach() stores references to different handlers & calls them by passing a ifnet structure to if_attach(). I think it's a very important method & I don't think I should delete it.

But this function rtems_3c509_driver_attach() is neither called locally , nor globally.

If I were to treat it as global function, I think it should be declared in a header file, because declaring a global function locally seems bad.
If I were to treat it as static, then I get this warning of unused function during compilation. How should I proceed ?

Regards
Vipul Nayyar 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130716/8ef5c5bf/attachment.html>


More information about the devel mailing list