From patchwork Thu Jan 23 20:17:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Glaser X-Patchwork-Id: 11349219 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE2D6924 for ; Thu, 23 Jan 2020 20:33:51 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8395921835 for ; Thu, 23 Jan 2020 20:33:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="gB32HSQT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8395921835 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tarent.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A4D69166E; Thu, 23 Jan 2020 21:33:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A4D69166E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1579811629; bh=g1YSURGQ7jCuAQTwIGY5roLPR3oarbI8AGbx0/9snas=; h=In-Reply-To:References:To:From:Date:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=gB32HSQT8MgOFQthkmZALJQYn1H3KTrKW/b44wA0rBP07UT3SzCTbKvR1NVBE8UJP Eyhb0RueGOwcjk1+T8GNgLCi8gPwVf2e25xH1z/Y6ZSj5lCjP2k66/K+dUU8Q5HIYU qYxcM7p5iGIkyt6q2GdXdLDQyVq23O7/VxON6GAU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1AAADF80112; Thu, 23 Jan 2020 21:33:05 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5FB9EF801D9; Thu, 23 Jan 2020 21:33:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=SPF_HELO_NONE,SPF_SOFTFAIL autolearn=disabled version=3.4.0 Received: from herc.mirbsd.org (herc.mirbsd.org [IPv6:2001:470:1f15:10c:202:b3ff:feb7:54e8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EFB1EF800BA for ; Thu, 23 Jan 2020 21:32:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EFB1EF800BA Received: from herc.mirbsd.org (tg@localhost [IPv6:::1]) by herc.mirbsd.org (8.14.9/8.14.5) with ESMTP id 00NKWOvr002047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Jan 2020 20:32:26 GMT Received: (from tg@localhost) by herc.mirbsd.org (8.14.9/8.14.5/Submit) id 00NKWMar023632; Thu, 23 Jan 2020 20:32:22 GMT Message-Id: <202001232032.00NKWMar023632@herc.mirbsd.org> X-Authentication-Warning: herc.mirbsd.org: tg set sender to t.glaser@tarent.de using -f In-Reply-To: References: <157133531799.6063.9249463816269134459.reportbug@tglase.lan.tarent.de> To: alsa-devel@alsa-project.org From: mirabilos Date: Thu, 23 Jan 2020 21:17:34 +0100 Cc: 870396@bugs.debian.org Subject: [alsa-devel] [PATCH 1/3] pcm: ensure amd64-specific asm code is not used on x32 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" This fixes segfaults on x32 systems. Signed-off-by: mirabilos --- src/pcm/pcm_dmix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index d533f40c..407f644d 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -142,7 +142,7 @@ static void dmix_server_free(snd_pcm_direct_t *dmix) #include "pcm_dmix_generic.c" #if defined(__i386__) #include "pcm_dmix_i386.c" -#elif defined(__x86_64__) +#elif defined(__x86_64__) && !defined(__ILP32__) #include "pcm_dmix_x86_64.c" #else #ifndef DOC_HIDDEN