Page MenuHomeFreeBSD

LinuxKPI: add bcd.h
ClosedPublic

Authored by bz on Oct 25 2021, 6:20 PM.
Tags
None
Referenced Files
F132236491: D32647.id97424.diff
Wed, Oct 15, 1:51 AM
F132234190: D32647.diff
Wed, Oct 15, 1:22 AM
Unknown Object (File)
Mon, Oct 13, 10:46 PM
Unknown Object (File)
Mon, Oct 13, 9:05 AM
Unknown Object (File)
Mon, Oct 13, 4:55 AM
Unknown Object (File)
Sun, Oct 12, 8:39 PM
Unknown Object (File)
Sun, Oct 12, 8:39 PM
Unknown Object (File)
Sun, Oct 12, 8:39 PM

Details

Reviewers
hselasky
Group Reviewers
linuxkpi
Commits
rG548ada00e54a: LinuxKPI: add bcd.h
Summary

Add bcd2bin() as linuxkpi_bcd2bin(). Libkern does provide a bcd2bin()
which cannot be used leaving us with a conflict (see comment in file).
Fortunately this is only seen in one driver so far and it seems easier
to drop this in and change a single line in the driver than to add this
inline in the driver.

MFC after: 3 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42352
Build 39240: arc lint + arc unit

Event Timeline

bz requested review of this revision.Oct 25 2021, 6:20 PM
hselasky added inline comments.
sys/compat/linuxkpi/common/include/linux/bcd.h
51

Use function macros here. (Style)

Use function macros in #if 0 block for better style.

sys/compat/linuxkpi/common/include/linux/bcd.h
42

spelling: dirvers

and try to spell drivers more like it should be written.

This revision is now accepted and ready to land.Oct 25 2021, 6:33 PM
This revision was automatically updated to reflect the committed changes.
bz marked 2 inline comments as done.