]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Cleanups to *ERR* compat shims.
authorjhb <jhb@FreeBSD.org>
Thu, 17 Dec 2020 20:28:53 +0000 (20:28 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 17 Dec 2020 20:28:53 +0000 (20:28 +0000)
commit3cb1068b26ea4a8e39b58049ad487165dd0dca60
tree1445d4d940aa3428cd47da5b2dbb2098b83a62b8
parent02c632eb3a357dd8c7de2731a808b8a81c473c27
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