Page MenuHomeFreeBSD

chore: replace {0, 0} with {DEV,KOBJ}METHOD_END where appropriate
AcceptedPublic

Authored by ngie on Sat, Feb 21, 6:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 23, 6:02 PM
Unknown Object (File)
Mon, Feb 23, 10:53 AM
Unknown Object (File)
Mon, Feb 23, 8:07 AM
Subscribers

Details

Reviewers
slm
jaeyoon
jhb
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Summary

Both of the aforementioned macros have been present in FreeBSD
for well over a decade: 2009 for KOBJMETHOD_END; 2011 for
DEVMETHOD_END.

Adapt all hardcoded references of {0, 0} with DEVMETHOD_END
and KOBJMETHOD_END as appropriate. This helps ensure that
future adaptations to drivers following patterns documented
in driver(9) can be made more easily/without issue.

MFC after: 1 week

Test Plan
  • This change boots on my MacBook13,2 (which uses a limited of drivers touched here).

TODO: a full tinderbox build is in progress.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70847
Build 67730: arc lint + arc unit

Event Timeline

Owners added a reviewer: Restricted Owners Package.Sat, Feb 21, 6:22 AM
ngie requested review of this revision.Sat, Feb 21, 6:22 AM
ngie retitled this revision from chore: replace {0, 0} with {DEVMETHOD,KOBJ}_END where appropriate to chore: replace {0, 0} with {DEVMETHOD,KOBJMETHOD}_END where appropriate.Sat, Feb 21, 6:43 PM
ngie edited the summary of this revision. (Show Details)
ngie added subscribers: jhb, markj.
ngie retitled this revision from chore: replace {0, 0} with {DEVMETHOD,KOBJMETHOD}_END where appropriate to chore: replace {0, 0} with {DEV,KOBJ}METHOD_END where appropriate.Sat, Feb 21, 7:05 PM

These all look good to me.

This revision is now accepted and ready to land.Wed, Feb 25, 2:16 AM