From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] ALSA: core: fix 64-bit SNDRV_PCM_IOCTL_STATUS ABI breakage Date: Mon, 29 Oct 2012 08:15:46 +0100 Message-ID: References: <508C3C2F.7070009@ladisch.de> <508D0CCF.5010408@ladisch.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 67EF6262631 for ; Mon, 29 Oct 2012 08:15:47 +0100 (CET) In-Reply-To: <508D0CCF.5010408@ladisch.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Clemens Ladisch Cc: alsa-devel@alsa-project.org, Pierre-Louis Bossart List-Id: alsa-devel@alsa-project.org At Sun, 28 Oct 2012 11:45:35 +0100, Clemens Ladisch wrote: > > Takashi Iwai wrote: > > Clemens Ladisch wrote: > >> Commit 4eeaaeaea (ALSA: core: add hooks for audio timestamps) added the > >> new audio_tstamp field to struct snd_pcm_status. However, struct > >> timespec requires 64-bit alignment, so the 64-bit compiler would insert > >> 32 bits of padding before this field, which broke SNDRV_PCM_IOCTL_STATUS > >> with error messages like this: > >> > >> kernel: unknown ioctl = 0x80984120 > >> > >> To solve this, insert the padding explicitly so that it can be taken > >> into account when calculating the ABI structure size. > >> > >> Signed-off-by: Clemens Ladisch > > > > Oops, that's bad. Thanks for catching this. > > I applied it now to for-next branch. > > > > Could you fix alsa-lib code as well? > > Oops; done. Thanks! Takashi