Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4879588pjb; Mon, 27 Jul 2020 07:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwotDYMbVRwGYiH/EWuQam2E/uta7byFMXUPkVTotkVZ922OVPJNKEI6kvooo4Flmbn3ERs X-Received: by 2002:a17:907:72c8:: with SMTP id du8mr10721814ejc.237.1595860067101; Mon, 27 Jul 2020 07:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860067; cv=none; d=google.com; s=arc-20160816; b=qBsG4eorHMuUEoYYdze6DGT1o+dwJPGBr5L0RwlwQC4wYlxNLLEZNQPWz3zkOKHTJe 7KDGYSFkjkkGRFekkLH+SGt11S/xamZzDRVfLeaqFKM4CqM2o9yKjWzstCiX9f7zgjqx RHaiYhpfXfJ6D7nDuKgvvys3/e79o1U6taMdwaCdNLuuhDj1JEamjn5alkiSvspG+6Zr O9a/KgM23A4Be0Xgn9dqZeU2ZzTPseaaPHwhLbDy3LzkRCjVj5S50h/SEup3QfIYfABW xoUKIbNLhAakfW+aK/g2pg/phGubv5n1UdhUtnRFBSTJGGdgGPUv882Dlt2GV3hk2CEE dJLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZoV9NRyJlqLdIdlDdh6lS45Xf/c10GuAnHbt/ZD75+g=; b=obD2TTxIQ5e/LZUmJXRnzBl7BggsB3bCfoIvUluREj8SS3mMwT83BQHX45+qw6nAYY HzGGQOSq5JgBUFZclDaYKryMnX6UxDHsemqBhjAsdc52HNFnk+Sqo+Yt36AbQsZnk7Bp YzvZW6TKaWP2K0Mym9TfZu5YJNymakaKByMOxfsGsHBlpek0T6krnPTFHO0kR4tfN3Ew REeTe6GcOGcv65T1fVh9zAUDgG1qN/O9KulzeY9x6mFGD4fOfXN0QOTMa0mI8ZePUaVp DTs5TaowZjAsXP3xndsSPnHVglj8nmKrsi4J4jzW5t2i7A8wM0IPNUZ3X5lGZy9RybeJ qwig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=czpkNObi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si5429771ejj.546.2020.07.27.07.27.25; Mon, 27 Jul 2020 07:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=czpkNObi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732577AbgG0O0M (ORCPT + 99 others); Mon, 27 Jul 2020 10:26:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:56268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730001AbgG0O0F (ORCPT ); Mon, 27 Jul 2020 10:26:05 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A0BB2070A; Mon, 27 Jul 2020 14:26:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859965; bh=3Hmqgwr1tD2S0HFwH63ITNi5sClWaaetAgCJAU9oYEg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=czpkNObix80r1RLIbZhR/NO2WPYCiDEw3mdnaYcTjG+b1UoahOJzVrhC/o4/LdV5+ oVRLWOUpdP66q6dnEO+VF2b8zWR001bkmvsNF5Mm1hW5BcALhEz70TQnSzcuSzo9Ao zFzcDh/F1FOgfuoIHwCz3jKoIQbQbRz748KgcX/I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Mark Brown Subject: [PATCH 5.7 173/179] ASoC: qcom: Drop HAS_DMA dependency to fix link failure Date: Mon, 27 Jul 2020 16:05:48 +0200 Message-Id: <20200727134941.085092218@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven commit b6aa06de7757667bac88997a8807b143b8436035 upstream. When building on allyesconfig kernel for a NO_DMA=y platform (e.g. Sun-3), CONFIG_SND_SOC_QCOM_COMMON=y, but CONFIG_SND_SOC_QDSP6_AFE=n, leading to a link failure: sound/soc/qcom/common.o: In function `qcom_snd_parse_of': common.c:(.text+0x2e2): undefined reference to `q6afe_is_rx_port' While SND_SOC_QDSP6 depends on HAS_DMA, SND_SOC_MSM8996 and SND_SOC_SDM845 don't, so the following warning is seen: WARNING: unmet direct dependencies detected for SND_SOC_QDSP6 Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && QCOM_APR [=y] && HAS_DMA [=n] Selected by [y]: - SND_SOC_MSM8996 [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && QCOM_APR [=y] - SND_SOC_SDM845 [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && QCOM_APR [=y] && CROS_EC [=y] && I2C [=y] && SOUNDWIRE [=y] Until recently, this warning was harmless (from a compile-testing point-of-view), but the new user of q6afe_is_rx_port() turned this into a hard failure. As the QDSP6 driver itself builds fine if NO_DMA=y, and it depends on QCOM_APR (which in turns depends on ARCH_QCOM || COMPILE_TEST), it is safe to increase compile testing coverage. Hence fix the link failure by dropping the HAS_DMA dependency of SND_SOC_QDSP6. Fixes: a2120089251f1fe2 ("ASoC: qcom: common: set correct directions for dailinks") Fixes: 6b1687bf76ef84cb ("ASoC: qcom: add sdm845 sound card support") Fixes: a6f933f63f2ffdb2 ("ASoC: qcom: apq8096: Add db820c machine driver") Signed-off-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/20200629122443.21736-1-geert@linux-m68k.org Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/qcom/Kconfig +++ b/sound/soc/qcom/Kconfig @@ -72,7 +72,7 @@ config SND_SOC_QDSP6_ASM_DAI config SND_SOC_QDSP6 tristate "SoC ALSA audio driver for QDSP6" - depends on QCOM_APR && HAS_DMA + depends on QCOM_APR select SND_SOC_QDSP6_COMMON select SND_SOC_QDSP6_CORE select SND_SOC_QDSP6_AFE