Page MenuHomeFreeBSD

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

Authored by ngie on Sat, Feb 21, 6:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 17, 4:32 PM
Unknown Object (File)
Mon, Mar 16, 12:32 PM
Unknown Object (File)
Mon, Mar 16, 5:58 AM
Unknown Object (File)
Wed, Mar 11, 10:30 AM
Unknown Object (File)
Mon, Mar 9, 2:30 PM
Unknown Object (File)
Thu, Mar 5, 3:50 AM
Unknown Object (File)
Thu, Mar 5, 3:15 AM
Unknown Object (File)
Wed, Mar 4, 9:32 AM

Details

Reviewers
slm
jaeyoon
jhb
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rG0fc6c3f731a2: chore: replace {0, 0} with {DEV,KOBJ}METHOD_END
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 Not Applicable
Unit
Tests Not Applicable

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
This revision was automatically updated to reflect the committed changes.

I had commits for nearly all of these handy, but I'm lacking a commit bit. Worse I'm starving for committer bandwidth so I end up prioritizing higher-importance commits over cleanup. I've got lots more of this handy in association with D48449, just need someone I can hand it off too.