Whamcloud - gitweb
LU-4699 libcfs: unify ERR_PTR definitions 41/10941/2
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 6 Mar 2014 01:08:24 +0000 (19:08 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Aug 2014 15:36:46 +0000 (11:36 -0400)
commitf33cbe064812af40565ca7f3d02e1291e3b3cc5e
treeaaf712ecf5aad6d01578d5531ff8c9c1054b8c60
parent7c5e0eb8241a04b0d6ad321f0da37fbfef113b49
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