X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Finclude%2Ferr.h;fp=src%2Fceph%2Fsrc%2Finclude%2Ferr.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=ba4b32aec38ced8ae1b7f802b082b26f5c71133c;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/include/err.h b/src/ceph/src/include/err.h deleted file mode 100644 index ba4b32a..0000000 --- a/src/ceph/src/include/err.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef CEPH_ERR_H -#define CEPH_ERR_H - -/* - * adapted from linux 2.6.24 include/linux/err.h - */ -#define MAX_ERRNO 4095 -#define IS_ERR_VALUE(x) ((x) >= (unsigned long)-MAX_ERRNO) - -#include - -/* this generates a warning in c++; caller can do the cast manually -static inline void *ERR_PTR(long error) -{ - return (void *) error; -} -*/ - -static inline long PTR_ERR(const void *ptr) -{ - return (long) ptr; -} - -static inline long IS_ERR(const void *ptr) -{ - return IS_ERR_VALUE((unsigned long)ptr); -} - -#endif