]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Cleanups to *ERR* compat shims.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 17 Dec 2020 20:28:53 +0000 (20:28 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 17 Dec 2020 20:28:53 +0000 (20:28 +0000)
commitde66c9a118f8d5ebeb768cf416ecc1938ef1eb76
tree1445d4d940aa3428cd47da5b2dbb2098b83a62b8
parent352b4e209258994b2fc7e45f4181dbd6699bcd04
Cleanups to *ERR* compat shims.

- Use [u]intptr_t casts to convert pointers to integers.

- Change IS_ERR* to return bool instead of long.

Reviewed by: manu
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27577
sys/compat/linuxkpi/common/include/linux/err.h