Go to the documentation of this file.
4 #include <linux/compiler.h>
16 #define MAX_ERRNO 4095
20 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
24 return (
void *)
error;
37 static inline long __must_check IS_ERR_OR_NULL(
const void *ptr)
49 static inline void *
__must_check ERR_CAST(
const void *ptr)