Page MenuHomeFreeBSD

LinuxKPI: move hex2bin() from kernel.h to new hex.h
ClosedPublic

Authored by bz on Apr 14 2026, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 11, 7:01 AM
Unknown Object (File)
Fri, Sep 11, 4:17 AM
Unknown Object (File)
Thu, Sep 10, 6:23 PM
Unknown Object (File)
Thu, Sep 10, 1:28 AM
Unknown Object (File)
Thu, Sep 10, 12:40 AM
Unknown Object (File)
Mon, Sep 7, 1:14 AM
Unknown Object (File)
Fri, Sep 4, 11:40 PM
Unknown Object (File)
Fri, Sep 4, 6:54 PM
Subscribers

Details

Summary

New Linux v7.0 drivers include hex.h. Rather than adding a dummy
header, migrate the kernel.h hex2bin() into hex.h, where it belongs.
Care needs to be taken as the _h2b() helper function is still used by
other bits in kernel.h.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Apr 14 2026, 3:31 PM

LGTM. Was added in deb9bfbd5bcea so copyright statement looks good.

This revision is now accepted and ready to land.Apr 14 2026, 4:06 PM

LGTM. Was added in deb9bfbd5bcea so copyright statement looks good.

I was wondering about that too but I believe it came from the time when I worked on rtw89 off-clock back then.
There's been a few commits around that date related to rtw89 which weren't Sponsored by:.