Patchwork bswap.h: build fix

login
register
mail settings
Submitter Christoph Egger
Date Sept. 13, 2011, 1:12 p.m.
Message ID <4E6F56A6.30403@amd.com>
Download mbox | patch
Permalink /patch/114494/
State New
Headers show

Comments

Christoph Egger - Sept. 13, 2011, 1:12 p.m.
qemu build fails when CONFIG_MACHINE_BSWAP_H is defined
because float32, float64, etc. are not defined.
This makes qemu build.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Anthony Liguori - Sept. 16, 2011, 2:44 p.m.
On 09/13/2011 08:12 AM, Christoph Egger wrote:
>
> qemu build fails when CONFIG_MACHINE_BSWAP_H is defined
> because float32, float64, etc. are not defined.
> This makes qemu build.
>
> Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>


Applied.  Thanks.

Regards,

Anthony Liguori


>
> diff --git a/bswap.h b/bswap.h
> index f41bebe..cc7f84d 100644
> --- a/bswap.h
> +++ b/bswap.h
> @@ -4,6 +4,7 @@
> #include "config-host.h"
>
> #include <inttypes.h>
> +#include "softfloat.h"
>
> #ifdef CONFIG_MACHINE_BSWAP_H
> #include <sys/endian.h>
> @@ -11,8 +12,6 @@
> #include <machine/bswap.h>
> #else
>
> -#include "softfloat.h"
> -
> #ifdef CONFIG_BYTESWAP_H
> #include <byteswap.h>
> #else
>
>
>

Patch

diff --git a/bswap.h b/bswap.h
index f41bebe..cc7f84d 100644
--- a/bswap.h
+++ b/bswap.h
@@ -4,6 +4,7 @@ 
  #include "config-host.h"

  #include <inttypes.h>
+#include "softfloat.h"

  #ifdef CONFIG_MACHINE_BSWAP_H
  #include <sys/endian.h>
@@ -11,8 +12,6 @@ 
  #include <machine/bswap.h>
  #else

-#include "softfloat.h"
-
  #ifdef CONFIG_BYTESWAP_H
  #include <byteswap.h>
  #else