Details
Details
- Reviewers
imp andrew manu - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) - Commits
- rG18250ec6c089: Replace calls to bus_generic_attach with bus_attach_children
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I spot checked a few, they looked good.
The Linux folks use coccinelle https://en.wikipedia.org/wiki/Coccinelle_(software) to mechanically do these sorts of transformations and publish the script used.
Comment Actions
The Linux folks use coccinelle
Yeah it would be great to have coccinelle for downstream projects to apply the same change in derived repos.
Comment Actions
Both of these were not fully automatable since the new functions return void instead of always returning 0, so you have to fix places that were checking for an error. That said, I just used sed -i -e 's/bus_generic_attach/bus_attach_children/g' and then fixed the errors for places that were checking for error.