opnsense-src/sys
Bjoern A. Zeeb 111619ff70 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 548ada00e5)
(cherry picked from commit ae2268efd5)
2021-11-21 18:15:58 +00:00
..
amd64
arm
arm64
bsm
cam
cddl
compat
conf
contrib
crypto
ddb
dev
dts
fs
gdb
geom
gnu
i386
isa
kern
kgssapi
libkern
mips
modules
net
net80211
netgraph
netinet
netinet6
netipsec
netpfil
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc
riscv
rpc
security
sys
teken
tests
tools
ufs
vm
x86
xdr
xen
Makefile