From patchwork Wed May 30 11:02:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 137246 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp5167836lji; Wed, 30 May 2018 04:03:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKlq5BEow3VVkKcjnpqhboUvI6vFpUNiYciTSPa28OZzoHp2fb4GegBspXKdfnSm/UZl7+i X-Received: by 2002:adf:8644:: with SMTP id 4-v6mr1847859wrw.73.1527678181001; Wed, 30 May 2018 04:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527678180; cv=none; d=google.com; s=arc-20160816; b=lWaZBlzCtltihd784oagM6nOBgC9dlOiiW/fXzALXhISCmCYk+Nnf1USQ0tctjHLjY VpEmCJofJDZXkV6e1c/w0FSD1gfyx0EWrYTMnpBxpiGgCbQM1Tn8ON5pt15EWJZuiVbv 86d6jbRWV/Zvjc/ds/5gxomizOskYo0snEFhEu9XqclZLCTiPNiR4vh5+Dj0LVM6m9zP GDGbpKwNVMouT4YkfIkNR7oneeXC66wbMEco/jYCiyQ+arDNTXyiJuppF5n3HSQK6v9e dJdSQnbfcKI8vh74dgbWM1EC2vK9udKkjdF3LvFgBfRaQYUFZxHz32OyooR3cy/w8aq9 0LZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=R6GC76k94GboaKsT8FhGVjrwnPtEyzGaLXnT6tzfZKY=; b=FzG5+ZiEdBEIqO88UvUdeRT+FIfSSLq+NoCeI5Q7TYuLm9LakftzIrR7Qtj91fcnyZ zDw0ObECa6ybIgSePTSi81a2wMEBvK0SYbHghbZFS7Dm8FXrlmjiPuy/vFSy/qF6tNGo YJZ4n4pOftbNJqgwFDHVVmncg4rzdTyfFOgHC2yk/PaniEM+2nx3yzGWvRtg0HEjHZ+s i/q7PIaZT4PLZ/LK5kaQeXHB4KUMnD35jQz6SzdJ1VEXOu6vaS8TJScaMI8qtYP7N2FK mSFYS68+EX4yhA9kLmx5C2IhMiOuqSkC2nyGsiJ54n/0cwffXSUFoMPcs2rNSEl1as04 H1Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=V6SzG2Br; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 130-v6si1142161wmn.139.2018.05.30.04.03.00; Wed, 30 May 2018 04:03:00 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=V6SzG2Br; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id F26332676E0; Wed, 30 May 2018 13:02:57 +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 ED03F2676E2; Wed, 30 May 2018 13:02:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id A3B122676DD for ; Wed, 30 May 2018 13:02:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=6eOJrVu1uSdWKhUwgm0R1VDr8Laz0u6O3Oaic4dUmiY=; b=V6SzG2BrMro7 a8YXavcVwzZxa32Z+RLRG+lwEBJwqq2NQysoYSVvnr1BKc9Zd78h0bZlxT1oUnXZyO18GlAfz+kEx Zl6FX5oRYf/OV3Kko0VPyboW3YQxLvcSv+Rpva3N14fYaNmWUbpzkL4bc4rxqq6sdOlrVFGZvLXZ2 /AJlc=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fNysQ-0007JK-Sb; Wed, 30 May 2018 11:02:46 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fNysQ-0006gv-Ez; Wed, 30 May 2018 12:02:46 +0100 From: Mark Brown To: Pierre-Louis Bossart In-Reply-To: <20180529233002.23656-1-pierre-louis.bossart@linux.intel.com> Message-Id: Date: Wed, 30 May 2018 12:02:46 +0100 Cc: tiwai@suse.de, liam.r.girdwood@linux.intel.com, alsa-devel@alsa-project.org, broonie@kernel.org, vkoul@kernel.org Subject: [alsa-devel] Applied "ASoC: fix 0-day warnings with snd_soc_new_compress()" to the asoc tree 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 The patch ASoC: fix 0-day warnings with snd_soc_new_compress() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 0b014d72ebae14c0c6ab3fb36a442fda91e1a1b3 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Tue, 29 May 2018 18:30:02 -0500 Subject: [PATCH] ASoC: fix 0-day warnings with snd_soc_new_compress() All conditionally-defined routines in include/sound/soc.h expose a static inline fallback to avoid 0-day warnings and compilation issues, except snd_soc_new_compress(). Fixes: 5db6aab6f36f ('ASoC: topology: Add support for compressed PCMs') Signed-off-by: Pierre-Louis Bossart Signed-off-by: Mark Brown --- include/sound/soc.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/include/sound/soc.h b/include/sound/soc.h index 600a7ebd10c0..1378dcd2128a 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -462,6 +462,11 @@ struct snd_soc_component *snd_soc_lookup_component(struct device *dev, int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num); #ifdef CONFIG_SND_SOC_COMPRESS int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num); +#else +static inline int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) +{ + return 0; +} #endif void snd_soc_disconnect_sync(struct device *dev);