History log of /freebsd-13.1/sys/compat/linuxkpi/common/include/linux/bcd.h (Results 1 – 1 of 1)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0
# 111619ff 25-Oct-2021 Bjoern A. Zeeb <[email protected]>

LinuxKPI: add bcd.h

Add bcd2bin() in bcd.h.

Libkern does provide a bcd2bin() which cannot be used cirectly leaving
us with a conflict (see comment in file).
Rather than having code to re-define bcd

LinuxKPI: add bcd.h

Add bcd2bin() in bcd.h.

Libkern does provide a bcd2bin() which cannot be used cirectly leaving
us with a conflict (see comment in file).
Rather than having code to re-define bcd2bin() for the LinuxKPI
make sure libkern.h is always included before the LinuxKPI version.
Then only re-define our local LinuxKPI implementation. [1]
From the argument truncating wrapper call the libkern version.
If we change our libkern implementation in the future we can save
us the remainder of the hassle. [2].

Suggested by: Johannes Berg (johannes sipsolutions.net) [1]
Suggested by: ian [2]
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 548ada00e54a9e7745d041b1ec7f68f3bd493365)
(cherry picked from commit ae2268efd5f8aaa6aba27dfc4e34b3225f211901)

show more ...