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)
Mon, May 18, 3:18 PM
Unknown Object (File)
Mon, May 18, 3:10 PM
Unknown Object (File)
Sun, May 17, 4:20 PM
Unknown Object (File)
Sun, May 17, 4:14 PM
Unknown Object (File)
Sun, May 17, 11:22 AM
Unknown Object (File)
Sun, May 17, 5:54 AM
Unknown Object (File)
Sat, May 16, 10:33 PM
Unknown Object (File)
Sat, May 16, 8:21 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:.