[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu.
From: |
Christoph Hellwig |
Subject: |
Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu. |
Date: |
Thu, 2 Oct 2008 10:21:37 +0200 |
User-agent: |
Mutt/1.3.28i |
On Wed, Oct 01, 2008 at 04:12:52PM +0200, Gerd Hoffmann wrote:
>
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
> bswap.h | 7 +++++++
> hw/usb-net.c | 2 --
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/bswap.h b/bswap.h
> index 523d805..b294d96 100644
> --- a/bswap.h
> +++ b/bswap.h
> @@ -206,4 +206,11 @@ static inline void cpu_to_be32wu(uint32_t *p, uint32_t v)
> #undef le_bswaps
> #undef be_bswaps
>
> +typedef uint16_t le16;
> +typedef uint32_t le32;
> +typedef uint64_t le64;
> +typedef uint16_t be16;
> +typedef uint32_t be32;
> +typedef uint64_t be64;
Any chance you could add sparse __bitwise__ declarations so one could
use spare to check for using these types correctly?
- [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/01
- [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Gerd Hoffmann, 2008/10/01
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Anthony Liguori, 2008/10/01
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Gerd Hoffmann, 2008/10/01
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Anthony Liguori, 2008/10/01
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Gerd Hoffmann, 2008/10/02
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Anthony Liguori, 2008/10/02
- Re: [Qemu-devel] [PATCH 4/4] pci: use pci_config_header in pci.c, Gerd Hoffmann, 2008/10/06
[Qemu-devel] [PATCH 2/4] pci: add config space struct (from qemu-xen)., Gerd Hoffmann, 2008/10/01
[Qemu-devel] [PATCH 3/4] pci: add default pci subsystem id for all devices., Gerd Hoffmann, 2008/10/01
Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu.,
Christoph Hellwig <=
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Christoph Hellwig, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Christoph Hellwig, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Anthony Liguori, 2008/10/02
- Re: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu., Gerd Hoffmann, 2008/10/06