1 #ifndef __LINUX_ERR_WRAPPER_H
2 #define __LINUX_ERR_WRAPPER_H 1
4 #include_next <linux/err.h>
8 * ERR_CAST - Explicitly cast an error-valued pointer to another pointer type
9 * @ptr: The pointer to cast.
11 * Explicitly cast an error-valued pointer to another pointer type in such a
12 * way as to make it clear that's what's going on.
14 static inline void *ERR_CAST(const void *ptr)
16 /* cast away the const */
19 #endif /* HAVE_ERR_CAST */