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: 113188 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1630614qgf; Wed, 20 Sep 2017 23:03:46 -0700 (PDT) X-Received: by 10.98.20.78 with SMTP id 75mr4487830pfu.239.1505973826468; Wed, 20 Sep 2017 23:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505973826; cv=none; d=google.com; s=arc-20160816; b=IQ3WeK23J5PyfzIJVw08vUHrSw0zEOxez30c1h2qu4XWRh0639Op0tMYVGUFIjsYpQ kT6VotvpaDKsqZOsONeTPsT5jbHD9qLoIWCiXQmXhSXVPL6zszJuH/YESLyyn0EpTjf3 MQnuBEVLy3qsO7hrao7dK7WhQoiBdOyV1w9visG/qxT4JEIU51KeNxK5J4uqk9MQerqD 9ii1rFnXcj/O9911NiT4uCKuuEnpgrIRgXZlZIxTY/YTymIY/8S7rdgEMt5AhX5peMB9 HK5USvugFgann+DJMhJGvjQdJGNHGLGKua2RnKsl0DbP5XXj5o4y/MFW5cbWkt5zSZQ8 ZuGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=tlrUv6o8LqIwiYIUalInLT3Uua1BJyoerPCbSgGTc/E=; b=hHVVP+GrJspS53bj7Sa3deeqJatVmhK+Bpg4HCNGJzuQkcrgkrEUZ2KNxgxI2VYVcX Ue30C6zaVJEnkzJ5DdkECe0AhSgfaTWACxzIjJE2Ko1qhvNhi5TGECfmC2pHuuceJs8Y qmT85TMvd4LR2L+VpS0g2wsA8myP+CCn5YwtPxAqRgjqW/3an6iR/LcnP/9W6yczbPoK 4TiZ7/z5arayNphE0Jh+v/qP8um4wylT7T4O5dZY6JbWmZ5MMJK8ptO+2YR2LxOhoaIj ECVapPyV2pEiTtEtsCaR08Yiu3fZhwr1ki+mYFerE4gsJxDaTNsYxBshUH2KK2Tyns9+ +k2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FY/xfhE7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13si556909pgq.315.2017.09.20.23.03.46; Wed, 20 Sep 2017 23:03:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FY/xfhE7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751606AbdIUGDo (ORCPT + 26 others); Thu, 21 Sep 2017 02:03:44 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:46305 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbdIUGDn (ORCPT ); Thu, 21 Sep 2017 02:03:43 -0400 Received: by mail-pg0-f43.google.com with SMTP id i130so3002788pgc.3 for ; Wed, 20 Sep 2017 23:03:42 -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=FC6wsOvWdnj4BqYinqM6FdLLfLE+nyrheT8jhfCeUCSMv0kDIwGO84lJJYgs0oF1kK l1vmR1GW/VoufOpQSLsmPvmNfuPQn8xiFdHLjUfac32CdAWJH6bG6ncj2xLh+khriqLr 8DRY1kZKuo9i+zBBf5PPNvtIwMref0YDRgkrjAw9R8Vt5e3NIs//wLZjrRFRe53kjsta AFlTRwlonZNEo+35zTp4ovBmCm9HVg2neMpPu6C3vcw4vaLdJ8uKGMchAfd/AuldAK0r 89iXsQXUZphZZvl34LYmm48doDyBsCDnFFJ9LcKQ2rzeSL8RtfsQsF2M16d2hjw6d8vy ivgA== X-Gm-Message-State: AHPjjUjFax/LX+6VlwZWlXHOd1qyQwyHAYAuDOKZ09ULDTskhUn/vRXp V+BN1ozkSJTOwRbEZ1rFumXBxw== 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 Cc: o-takashi@sakamocchi.jp, arnd@arndb.de, broonie@kernel.org, deepa.kernel@gmail.com, baolin.wang@linaro.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] sound: core: Fix structure definition for X32 ABI Date: Thu, 21 Sep 2017 14:03:29 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 1.7.9.5 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;