]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: make bcd.h use libkern
authorBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 27 Oct 2021 17:07:38 +0000 (17:07 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 18 Nov 2021 23:10:34 +0000 (23:10 +0000)
commitae2268efd5f8aaa6aba27dfc4e34b3225f211901
tree3e9b3361dd95b0225c22b698188af48616c844c8
parentf4bf849bb894f4934b8df6c04a820dfa52e9576c
LinuxKPI: make bcd.h use libkern

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]  Given I need this to MFC,
which I am not sure we can with libkern, commit this intermediate
step.

Suggested by: Johannes Berg (johannes sipsolutions.net) [1]
Suggested by: ian [2]
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
X-MFC with: 548ada00e54a9e7745d041b1ec7f68f3bd493365
Differential Revision: https://reviews.freebsd.org/D32695
sys/compat/linuxkpi/common/include/linux/bcd.h