From patchwork Thu Sep 21 06:03:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 9963467 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A673D601D5 for ; Thu, 21 Sep 2017 08:25:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 940FF28717 for ; Thu, 21 Sep 2017 08:25:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88D4B2934A; Thu, 21 Sep 2017 08:25:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (unknown [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45E9C29357 for ; Thu, 21 Sep 2017 08:25:01 +0000 (UTC) Received: from alsa.alsa-project.org (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3E9E42675BB; Thu, 21 Sep 2017 10:21:11 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B4F97266CE2; Thu, 21 Sep 2017 08:03:46 +0200 (CEST) Received: from mail-pg0-f44.google.com (mail-pg0-f44.google.com [74.125.83.44]) by alsa0.perex.cz (Postfix) with ESMTP id 706B1266CE2 for ; Thu, 21 Sep 2017 08:03:44 +0200 (CEST) Received: by mail-pg0-f44.google.com with SMTP id 7so2990580pgd.13 for ; Wed, 20 Sep 2017 23:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=tlrUv6o8LqIwiYIUalInLT3Uua1BJyoerPCbSgGTc/E=; b=FY/xfhE7jqQQwFODR1uokhb6D6FPTiaNXq2elL5ZKaZZQsboqzo/K4ArM9i+zPNBHX 0iHFQu9ZTnrmXjxin5knXpBwThY1dt6b6DjUUJtFkhrOvYmYbgakgfNVeQNw29BNhPG4 jVczZpxzS0gENK8vCUJHusL0rP76Ny386nRyo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tlrUv6o8LqIwiYIUalInLT3Uua1BJyoerPCbSgGTc/E=; b=SzwkZNf2E7tZtKOADUzZVR1vPreV6ikfWNRyhCHTmEsT+NpwIos+CjffUHXGSsS6oS RXsInS4I9CMtzDwhzUrHhvP4qcgEepy13mCQtbmHKFiWNG2Np2fbFv7j/LvuNW0QMgHD YZVxuyxk4WZ1spBMYNn9dud5+dyyqnGt0TRrMsVKrjNmzLIhjIKUM+haIwJIqO/EQd56 EYsC+8OqDTGbkzQnp19D9QSXIONCzwQkGacAiTaLvknWebeY09UD3qbE+2y6omvDjy+X BAINAdIjUgwkWgxoGhVtkgcy6YbFODqrgyt7GHycfxshQQEQ9X+XAHCxUP7eGEV4xZy7 nbEw== X-Gm-Message-State: AHPjjUhAcY+t+j+f5gWYDQ7F61lUAEH34AEzfuoahJ1rAFWoHeXwGcsf fSzdBw8YaDm3MZqVGk+0oRHAqQ== X-Google-Smtp-Source: AOwi7QCtB4ytjloFTNCMDjeCjuAalrWH5b8dXMZws8RRgh5d1fQ0gxgR4oXh3U7Q7EG159WPuVzLRw== X-Received: by 10.99.114.17 with SMTP id n17mr4672103pgc.43.1505973822558; Wed, 20 Sep 2017 23:03:42 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id p10sm1275355pfd.152.2017.09.20.23.03.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Sep 2017 23:03:41 -0700 (PDT) From: Baolin Wang To: perex@perex.cz, tiwai@suse.com Date: Thu, 21 Sep 2017 14:03:29 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 X-Mailman-Approved-At: Thu, 21 Sep 2017 10:19:53 +0200 Cc: alsa-devel@alsa-project.org, arnd@arndb.de, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, o-takashi@sakamocchi.jp, broonie@kernel.org, deepa.kernel@gmail.com Subject: [alsa-devel] [PATCH] sound: core: Fix structure definition for X32 ABI X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP X32 ABI uses the 64bit timespec in addition to 64bit alignment of 64bit values. We have added compat ABI for these ioctls, but this patch adds one missing padding into 'struct snd_pcm_mmap_status_x32' to fix incompatibilities. Signed-off-by: Baolin Wang --- sound/core/pcm_compat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/core/pcm_compat.c b/sound/core/pcm_compat.c index 10f537f..29ab480 100644 --- a/sound/core/pcm_compat.c +++ b/sound/core/pcm_compat.c @@ -547,6 +547,7 @@ struct snd_pcm_mmap_status_x32 { u32 pad2; /* alignment */ struct timespec tstamp; s32 suspended_state; + s32 pad3; struct timespec audio_tstamp; } __packed;