From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: [PATCH][TOOLS] blktap: remove unused headers Date: Fri, 30 Nov 2007 13:35:55 +0100 Message-ID: <200711301335.55347.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_rOAUHWtLGWXfCIs" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_rOAUHWtLGWXfCIs Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! Attached patch removes unused linux specific headers and makes bswap.h ready for BSD support. This is first step for BSD support in blktap. More to come. No functional change. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_rOAUHWtLGWXfCIs Content-Type: text/plain; charset=us-ascii; name=tools_blktap_headers.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=tools_blktap_headers.diff diff -r 3057f813da14 tools/blktap/drivers/blktapctrl.c --- a/tools/blktap/drivers/blktapctrl.c Thu Nov 29 19:30:33 2007 +0000 +++ b/tools/blktap/drivers/blktapctrl.c Fri Nov 30 15:34:58 2007 +0100 @@ -41,7 +41,6 @@ #include #include #include -#include #include #include #include @@ -50,7 +49,6 @@ #include #include #include -#include #include #include diff -r 3057f813da14 tools/blktap/drivers/bswap.h --- a/tools/blktap/drivers/bswap.h Thu Nov 29 19:30:33 2007 +0000 +++ b/tools/blktap/drivers/bswap.h Fri Nov 30 15:34:58 2007 +0100 @@ -4,6 +4,11 @@ //#include "config-host.h" #include + +#if defined(__NetBSD__) || defined(__OpenBSD__) +#include +#include +#else #ifdef HAVE_BYTESWAP_H #include @@ -73,6 +78,8 @@ static inline void bswap64s(uint64_t *s) *s = bswap64(*s); } +#endif + #if defined(WORDS_BIGENDIAN) #define be_bswap(v, size) (v) #define le_bswap(v, size) bswap ## size(v) diff -r 3057f813da14 tools/blktap/drivers/qcow-create.c --- a/tools/blktap/drivers/qcow-create.c Thu Nov 29 19:30:33 2007 +0000 +++ b/tools/blktap/drivers/qcow-create.c Fri Nov 30 15:34:58 2007 +0100 @@ -37,7 +37,6 @@ #include #include #include -#include #include #include "tapdisk.h" diff -r 3057f813da14 tools/blktap/drivers/tapdisk.c --- a/tools/blktap/drivers/tapdisk.c Thu Nov 29 19:30:33 2007 +0000 +++ b/tools/blktap/drivers/tapdisk.c Fri Nov 30 15:34:58 2007 +0100 @@ -27,7 +27,6 @@ #include #include #include -#include #include "blktaplib.h" #include "tapdisk.h" diff -r 3057f813da14 tools/blktap/lib/xenbus.c --- a/tools/blktap/lib/xenbus.c Thu Nov 29 19:30:33 2007 +0000 +++ b/tools/blktap/lib/xenbus.c Fri Nov 30 15:34:58 2007 +0100 @@ -37,7 +37,6 @@ #include #include -#include #include #include #include diff -r 3057f813da14 tools/blktap/lib/xs_api.c --- a/tools/blktap/lib/xs_api.c Thu Nov 29 19:30:33 2007 +0000 +++ b/tools/blktap/lib/xs_api.c Fri Nov 30 15:34:58 2007 +0100 @@ -34,7 +34,6 @@ #include #include -#include #include #include #include --Boundary-00=_rOAUHWtLGWXfCIs Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_rOAUHWtLGWXfCIs--