diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-04-20 13:36:01 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-04-20 13:36:01 +0000 |
| commit | 47c0672b08c1be0afe19188693a7360f4179e721 (patch) | |
| tree | fc21efd0667174bdce21a527809d476ad45a8786 /sys/compat/linuxkpi/common/include/linux/err.h | |
| parent | 0fbdc3726a50a2e5f8530f08da858d3ff175d960 (diff) | |
Notes
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/err.h')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/err.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/err.h b/sys/compat/linuxkpi/common/include/linux/err.h index a0eb74c2e37d..5f71ebf59b5b 100644 --- a/sys/compat/linuxkpi/common/include/linux/err.h +++ b/sys/compat/linuxkpi/common/include/linux/err.h @@ -31,6 +31,8 @@ #ifndef _LINUX_ERR_H_ #define _LINUX_ERR_H_ +#include <sys/types.h> + #include <linux/compiler.h> #define MAX_ERRNO 4095 @@ -62,9 +64,9 @@ IS_ERR_OR_NULL(const void *ptr) } static inline void * -ERR_CAST(void *ptr) +ERR_CAST(const void *ptr) { - return (void *)ptr; + return __DECONST(void *, ptr); } static inline int |
