Home
last modified time | relevance | path

Searched hist:"64 dab63f" (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkernel.h64dab63f Sat Dec 25 18:42:15 GMT 2021 Vladimir Kondratyev <wulf@FreeBSD.org> LinuxKPI: Use negative bit field size to trigger BUILD_BUG_ON_ZERO

compile time assertion on non-NULL pointers. Tests conducted show that
_Static_assert, negative array size method and current code does not
handle pointers well enough. Bit field method solves this problem.

This change is derrived from Linux implementation of BUILD_BUG_ON_ZERO.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33674