LibBSD | libbsd: remove duplicate miibus DRIVER_MODULE from if_smc_nexus.c (!126)
Somil Gupta (@somil)
gitlab at rtems.org
Fri Mar 6 16:43:37 UTC 2026
Somil Gupta created a merge request: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/126
Project:Branches: somil/rtems-libbsd:fix-duplicate-driver to rtems/pkg/rtems-libbsd:7-freebsd-14
Author: Somil Gupta
## Summary
libbsd: remove duplicate miibus DRIVER_MODULE from if_smc_nexus.c
Building rtems-libbsd results in conflicting or missing SMC driver
module symbols due to DRIVER_MODULE(miibus, smc, miibus_driver, 0, 0)
being present in both if_smc.c and if_smc_nexus.c.
The miibus driver module is already defined in if_smc.c, so keeping the
same macro in if_smc_nexus.c leads to duplicate or unresolved symbols
during linking.
Remove the duplicate DRIVER_MODULE from if_smc_nexus.c to resolve the
build issue.
fixes #77
## Generative AI
<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
<!-- Default settings, if it is a dropdown it will set after submission -->
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/126
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260306/469f8e45/attachment.htm>
More information about the bugs
mailing list