4
/* on earlier kernels, adriver.h already gets this through linux/fs.h */
5
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
7
#define IS_ERR_VALUE(x) ((x) > (unsigned long)-1000L)
9
static inline void *ERR_PTR(long error)
11
return (void *) error;
14
static inline long PTR_ERR(const void *ptr)
19
static inline long IS_ERR(const void *ptr)
21
return IS_ERR_VALUE((unsigned long)ptr);
26
#endif /* _LINUX_ERR_H */