All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@globallogic.com>,
	xen-devel@lists.xen.org
Cc: Takashi Iwai <tiwai@suse.de>,
	Iurii Konovalenko <iurii.konovalenko@globallogic.com>,
	Jaroslav Kysela <perex@perex.cz>
Subject: Re: [PATCH 1/3] xen-sndfront: add sound frontend driver
Date: Mon, 19 Jan 2015 10:55:39 +0000	[thread overview]
Message-ID: <54BCE2AB.9000605@citrix.com> (raw)
In-Reply-To: <1421655574-10038-2-git-send-email-oleksandr.dmytryshyn@globallogic.com>

On 19/01/15 08:19, Oleksandr Dmytryshyn wrote:
> +
> +struct sndif_request_open {
> +	unsigned int dev_num;
> +	unsigned int card_num;
> +	unsigned int dev_type;
> +	unsigned int _pad1;
> +	uint64_t     id;           /* private guest value, echoed in resp  */
> +	unsigned int _pad2;
> +	unsigned int _pad3;
> +} __attribute__((__packed__));

Using types like unsigned int will break 32-bit guests talking to 64-bit
backends.

Always use fixed width types, naturally align them and use explicit
padding.  The packed attribute will be unnecessary.

David

  reply	other threads:[~2015-01-19 10:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-19  8:19 [PATCH 0/3] Add sound frontend driver Oleksandr Dmytryshyn
2015-01-19  8:19 ` [PATCH 1/3] xen-sndfront: add " Oleksandr Dmytryshyn
2015-01-19 10:55   ` David Vrabel [this message]
2015-01-19 11:13     ` Oleksandr Dmytryshyn
2015-01-19  8:19 ` [PATCH 2/3] xen-sndfront: switch to the v2 driver Oleksandr Dmytryshyn
2015-01-19 10:57   ` David Vrabel
2015-01-19 11:17     ` Oleksandr Dmytryshyn
2015-01-19  8:19 ` [PATCH 3/3] xen-sndfront: add capture support Oleksandr Dmytryshyn
2015-01-19 10:50 ` [PATCH 0/3] Add sound frontend driver David Vrabel
2015-01-19 11:14   ` Oleksandr Dmytryshyn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54BCE2AB.9000605@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=iurii.konovalenko@globallogic.com \
    --cc=oleksandr.dmytryshyn@globallogic.com \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.de \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.