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
F161745488: D56391.diff
Mon, Jul 6, 11:46 AM
Unknown Object (File)
Fri, Jun 26, 7:51 PM
Unknown Object (File)
Tue, Jun 16, 7:36 PM
Unknown Object (File)
Jun 5 2026, 8:28 AM
Unknown Object (File)
May 27 2026, 10:06 PM
Unknown Object (File)
May 27 2026, 3:59 PM
Unknown Object (File)
May 26 2026, 9:33 PM
Unknown Object (File)
May 18 2026, 3:18 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:.