]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Add offsetofend macro
authormanu <manu@FreeBSD.org>
Sun, 17 May 2020 20:14:49 +0000 (20:14 +0000)
committermanu <manu@FreeBSD.org>
Sun, 17 May 2020 20:14:49 +0000 (20:14 +0000)
commit3375c2e5710eb6b87c91de865bcf43a41cf59139
tree03e53956a74c6b33727b0d54c430a18a75596321
parentbadd1fc826038ea4a9a6262bb042fd3ad80d0d53
linuxkpi: Add offsetofend macro

This calculate the offset of the end of the member in the given struct.
Needed by DRM in Linux v5.3

Sponsored-by: The FreeBSD Foudation
Differential Revision: https://reviews.freebsd.org/D24849
sys/compat/linuxkpi/common/include/linux/kernel.h