Whamcloud - gitweb
LU-2675 libcfs: add libcfs/byteorder.h 86/11986/2
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 17 Sep 2014 19:24:01 +0000 (14:24 -0500)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 24 Oct 2014 18:39:22 +0000 (18:39 +0000)
commitc4a6999ceec8ac95415de4cb6099182d3f67d1cb
tree3d22b9035b7da0209aad74352409c9afc642c1f1
parentbf5db236dd09f4e671f64123a7b54c115b626853
LU-2675 libcfs: add libcfs/byteorder.h

Move the byte swapping macros out of libcfs/posix/libcfs.h and into a
new header libcfs/byteorder.h which includes asm/byteorder.h for
kernel code or defines the equivalent macros for userspace code.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I298e4d1dd224ffbb395e0df531b382a8c9e2082f
Reviewed-on: http://review.whamcloud.com/11986
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
libcfs/include/libcfs/Makefile.am
libcfs/include/libcfs/byteorder.h [new file with mode: 0644]
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/posix/libcfs.h