From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0B8BC352A3 for ; Thu, 13 Feb 2020 22:32:11 +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 1B2A921734 for ; Thu, 13 Feb 2020 22:32:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="bmJrbSq1"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="THiYYtRd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B2A921734 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 965FC16A3; Thu, 13 Feb 2020 22:12:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 965FC16A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581628411; bh=1J9s6yK8GAnjapE41SGO03BnXM9C+pdhiV1KKpftUmk=; h=References:In-Reply-To:From:Date:To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=bmJrbSq1N1T24ZLui/x8j3drRNUnRmK3CxJkoBhkirZn4+PpJ4X0DK1OSgND8UDkq LigGqHI9I1FF5rQrBOKC6ROz/uaCQ0Bow9JErdr5V2mqoy3GPp6PK/duysFqk4mxmA Jo6yecr/3Bk+0sh1VEAlXEb8zaSst7vX2xQEnOwI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0CD7AF80138; Thu, 13 Feb 2020 22:12:41 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F1A64F80138; Thu, 13 Feb 2020 22:12:38 +0100 (CET) Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 19470F80138 for ; Thu, 13 Feb 2020 22:12:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 19470F80138 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="THiYYtRd" Received: by mail-wr1-x441.google.com with SMTP id t3so8459605wru.7 for ; Thu, 13 Feb 2020 13:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iLnuSGH6jNEPRpXsbLdWMvvm70on1OtXGRCIuCTYax4=; b=THiYYtRd1Hw9OOJtDh3m0bsQpuPbcL6D15Or8KKVQBdszixBwTMpdrWI1sdey73UL6 OMnfWvyrWMTpxJtIWoOC3klZgu1IWrwgGpKzMr1l6YiTs0DTZmmHJJcXX96UNF87RkqM HIFVzoYj/EtPV4PceO73UE9E2E+l505vMkvdCLvqEdLKR6NepxAChTX8Ksv5A3MY10wx MRDdAInFdByqnE458Nnhm4UsbhvGkS+b6VwbMIinCdiLagqLPLJoH+eJrkk9PW7dAYay e6CshZ/C9jEucmAiBLXhWu3nU7PBF+CispXbP2m0DDejFGVPd1+CTDQtGHZ+f7WzC7Ag k7gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iLnuSGH6jNEPRpXsbLdWMvvm70on1OtXGRCIuCTYax4=; b=FOJp4Mz1qdINY5ZZEnb4osM55tYq/QNWFTGxDAv24zy2mcGkx9a3WbMzCuA9Xa1MdS 2cachKIy+QE1O3ouhxa6ckC7hzEf1xMVYNlv/gjfwagiRFt9Mh0wJHHgxjMw99QGbmRn S4h/0gt9cxBmzbk484ajb6kScTQ2Ai7YxzlZmZ3l+2LQi4WQVktDu0FxQIMedK1+Fqjn fCu1P+fsmUDnJT24jY3wZMcITZSvTR0GBymjjUfK7sP8U650oqnzJxhycnkcOXqpI6Ht ePNLfr6OWn+UmFHDfyCVVkJyBQPQS+7JI9XRNOM7v8LM0iewu0bM/5e813MHWgnG9Mil ugmw== X-Gm-Message-State: APjAAAU1EcPBcb088b1IbDrtF7dmgtm2e43c0x7edIqbtBS9QpcM0Pi2 O+8v34Al26UtMxzRMne91r1NU/01CpJnanU3RPo= X-Google-Smtp-Source: APXvYqz2/8nyozAwb5c39LHVAvkkzIlzsIxS4KXcp3M3SHYFP+afkm8+EUw7r7XUouiqxTfEbIygo0weNf0szTqLQ0o= X-Received: by 2002:adf:ed09:: with SMTP id a9mr24147253wro.350.1581628354989; Thu, 13 Feb 2020 13:12:34 -0800 (PST) MIME-Version: 1.0 References: <20200210061544.7600-1-yuehaibing@huawei.com> <9351a746-8823-ee26-70da-fd3127a02c91@linux.intel.com> In-Reply-To: From: Daniel Baluta Date: Thu, 13 Feb 2020 23:12:23 +0200 Message-ID: To: Krzysztof Kozlowski Cc: Daniel Baluta , Pierre-Louis Bossart , Linux-ALSA , Liam Girdwood , Fabio Estevam , Sascha Hauer , Yuehaibing , Takashi Iwai , Mark Brown , dl-linux-imx , Pengutronix Kernel Team , Shawn Guo , Linux Kernel Mailing List , linux-arm-kernel Subject: Re: [alsa-devel] [PATCH -next] ASoC: SOF: imx8: Fix randbuild error 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, Feb 11, 2020 at 11:59 AM Krzysztof Kozlowski wrote: > > On Tue, 11 Feb 2020 at 10:46, Daniel Baluta wrote: > > > > On Tue, Feb 11, 2020 at 3:59 AM Yuehaibing wrote: > > > > > > On 2020/2/11 5:00, Pierre-Louis Bossart wrote: > > > > > > > > > > > > On 2/10/20 12:15 AM, YueHaibing wrote: > > > >> when do randconfig like this: > > > >> CONFIG_SND_SOC_SOF_IMX8_SUPPORT=y > > > >> CONFIG_SND_SOC_SOF_IMX8=y > > > >> CONFIG_SND_SOC_SOF_OF=y > > > >> CONFIG_IMX_DSP=m > > > >> CONFIG_IMX_SCU=y > > > >> > > > >> there is a link error: > > > >> > > > >> sound/soc/sof/imx/imx8.o: In function 'imx8_send_msg': > > > >> imx8.c:(.text+0x380): undefined reference to 'imx_dsp_ring_doorbell' > > > >> > > > >> Select IMX_DSP in SND_SOC_SOF_IMX8_SUPPORT to fix this > > > >> > > > >> Reported-by: Hulk Robot > > > >> Fixes: f9ad75468453 ("ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency") > > > >> Signed-off-by: YueHaibing > > > > > > > > Thanks for the report. > > > > > > > > Would you mind sharing the .config and instructions to reproduce this case? we have an unrelated issue with allyesconfig that was reviewed here: > > > > > > > > https://github.com/thesofproject/linux/pull/1778 > > > > > > > > and I'd probably a good thing to fix everything in one shot. > > > > > > config is attached, which is on x86_64 > > > > Thanks, I think this is legit. It was introduced with: > > > > commit f52cdcce9197fef9d4a68792dd3b840ad2b77117 > > Author: Daniel Baluta > > Date: Sat Jan 4 15:39:53 2020 +0000 > > > > firmware: imx: Allow IMX DSP to be selected as module > > > > IMX DSP is only needed by SOF or any other module that > > wants to communicate with the DSP. When SOF is build > > as a module IMX DSP is forced to be built inside the > > kernel image. This is not optimal, so allow IMX DSP > > to be built as a module. > > > > Signed-off-by: Daniel Baluta > > Signed-off-by: Shawn Guo > > Hi, > > Since it's a module, don't you just miss EXPORT_SYMBOL there? > > > So, I think we should change the Fixes tag. Are there > > any clear rules on when to use select vs depends? > > > > On my side, I know what both are doing but it is not clear > > when to use them. > > Visible symbols usually should not be selected. The same with symbols > with dependencies. The docs have this rule mentioned. You mean if module X depends on module Y, we shouldn't use select? But this exactly what this patch does :). The problem here is that when X depends on Y, and X=y and Y=m when we try to compile X if get an error because we cannot find a symbol from Y. I think if X depends on Y, and X is forced to "y" then also Y should be forced on "y". _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel