2 * (C) Copyright 2007-2010 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
25 #define PTR_ERR(ptr) ((s64) ptr)
26 #define ERR_PTR(err) ((void*) (long) err)
27 #define ERR_CAST(err) ((void*) err)
29 static inline int IS_ERR(void *ptr
)
31 return -1024 < PTR_ERR(ptr
) && PTR_ERR(ptr
) < 0;
34 extern char *errstrings
[];