Whamcloud - gitweb
LU-4699 libcfs: unify ERR_PTR definitions 19/9519/4
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 6 Mar 2014 01:08:24 +0000 (19:08 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 4 Apr 2014 02:39:13 +0000 (02:39 +0000)
commit4cfa87dad0a9c08bba2f86650fafab9ad21fc524
treea15956f312ccae9ea564718b1aec95ed01fd90e8
parent99727c7a1a4f4100361f79bf185cb34b70b67d99
LU-4699 libcfs: unify ERR_PTR definitions

Add libcfs/err.h which either includes linux/err.h or defines
equiavlent functions (including ERR_CAST()) for use by userspace or
any of Lustre's other imaginary platforms. Modify the definition of
__container_of() to remove the pre-call explicit cast. Remove two
unused function that used container_of0() on an already dereferenced
pointer.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I26b454f835b51f1fb17b94eec7cf184f0a82071e
Reviewed-on: http://review.whamcloud.com/9519
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/Makefile.am
libcfs/include/libcfs/darwin/darwin-prim.h
libcfs/include/libcfs/err.h [new file with mode: 0644]
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/posix/libcfs.h
libcfs/include/libcfs/winnt/winnt-fs.h
lustre/include/cl_object.h
lustre/include/darwin/obd_support.h
lustre/include/linux/obd_support.h
lustre/include/md_object.h