Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4869306pjb; Mon, 27 Jul 2020 07:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWRW/Cus+lIzNQ6wftZ//fM3pgkAmbyh5rJyego9+FdPwbomBgc9/uif5RvnTgIv7EI34I X-Received: by 2002:a05:6402:c86:: with SMTP id cm6mr3797632edb.205.1595859264637; Mon, 27 Jul 2020 07:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859264; cv=none; d=google.com; s=arc-20160816; b=wSY+vVphsYma6xfGbRN/iyDb/E8n5Nta/Ev71qmxNNdwk1Yb0B7T7nVifmEjjBFqOF PEie18c/aCgLGVocsTSyj7X+69CH4M5bgpbOwIW3GXxRXrLewpgg6HAw6E58VTZ/8zaU 4aEeX4YF3AAfS7Xr8XET8HRSlk8PBUPu3E20Nulbq9CKouJI/lxBmlDVMzdCNVg9W573 kAOQULHhVBcPHcBx1RX2fDV4GM6JS5Z8pdhS2xCKCEFulLTN18CibujXi6FBsC+5kevZ Ou1UAieaJPA0uTkeyTy8eXDea2eEZWM8wC4RErCexXk2wq24/zGwFslr+GZg4VhdIPCT Mvpw== 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=6bejO+wpjCUK3sE+VfjENBQLpjKLm8bQ6tK/d3uImO4=; b=wP188deJ4i7KlSVvE4ncB+ykiAes6bkApN/lI0nKkWsDSRLRxflFQWydhtmeGz2DvV eeV9pmQJ1BQD+aPzlsR+ie3nt3vxUPqS6qkPVb6+1VCBhZ+GhzEiMoVV+JAKisLnqxiY cAEvgzskKoKI0U718G/R3nXOZakA0Lr5mtTxCuQF8gOt/SsI4GrXhAl70ZW+rIvtbO9Z 9lgMC6oeglkB3t7JR+ScwKiMYhkopbWO3kik4roQjMBUZJT8R9jF8V9e6IqeNTTNuGNl ZysALZOSd8zZaUFmhZDBAtkSdr90eYVup+K3ikt+hbVPsWcTonkXCjQSQGnxUXLmOcbu 8/uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0Ix48nAT; 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 u12si5549938ejb.83.2020.07.27.07.14.01; Mon, 27 Jul 2020 07:14:24 -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=0Ix48nAT; 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 S1730211AbgG0OMb (ORCPT + 99 others); Mon, 27 Jul 2020 10:12:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:36760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730194AbgG0OM2 (ORCPT ); Mon, 27 Jul 2020 10:12:28 -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 52CF621744; Mon, 27 Jul 2020 14:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859147; bh=UXqN/Skp4MHKAS0ReE2h6jHKxt9CRMFfnXibuxcri+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0Ix48nAT+KQ7QX4DgXX2vQgNP6JJlSttXcORPv0Crau4tr9ogvLgfAARmZiYQr9H0 e4aBOM83bkZ21z4RLp8Py3uD+t2pNsboVaSJ+3gycQXEFlETu3TgtzDegTp8cjz3AL 7eP1vO65sg2211fh4Q3d9kaJwCBq4dK0lp7Bauf0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Mark Brown Subject: [PATCH 4.19 83/86] ASoC: qcom: Drop HAS_DMA dependency to fix link failure Date: Mon, 27 Jul 2020 16:04:57 +0200 Message-Id: <20200727134918.565565676@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134914.312934924@linuxfoundation.org> References: <20200727134914.312934924@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 @@ -70,7 +70,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