diff --git a/include/linux/err.h b/include/linux/err.h index 56762ab4171331f87f6ca9930a32d816b7aba581..1e3558845e4c3d986411d34b066b3e5d2518bab8 100644 --- a/include/linux/err.h +++ b/include/linux/err.h @@ -18,7 +18,7 @@ #ifndef __ASSEMBLY__ -#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) +#define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) static inline void * __must_check ERR_PTR(long error) {