Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5885064ybc; Wed, 27 Nov 2019 11:03:37 -0800 (PST) X-Google-Smtp-Source: APXvYqzbc5ZiM5JgirPONKAi325irq48oQwdhZrkDu/fPeLoLAdra14IAIBAiF8cXJG5UjXPkpFr X-Received: by 2002:a17:906:6847:: with SMTP id a7mr24766218ejs.95.1574881417585; Wed, 27 Nov 2019 11:03:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574881417; cv=none; d=google.com; s=arc-20160816; b=hMGwNpEbUyOsc1+mCiw2LnC+7TbaBILjEfimFoKqfcrNyuV4cPH5aFIIcdYES9fG+i AnXkdLZJwQt95z0pUvDQGm9NydNYRkhl5G3I7FgMuVInw6rxzytwJwHtv8J7cHaezErd y9A0ivP7iKC1jnKadX8u+6yHsKGF4F7ogdlAZ3wMh4NUXLgu2ryzyVrsFIavvi6YlmxD iCABC6l0T5utdtAEoPtCl+Sb9xu4TnuBI9wkijnvg8xmidaQNvRTmhf/cHXIjIc+qS5P xLdf45725p5/bg8C+AyHjqJnJg8+ElvlxRvem9oJ3Sccn2Zua7LPmJ4tnHrbUeGBA5X8 Hdzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=geVGu8MBW5PeHjvdy4rCo2MPVBJQGl//bajAqe2ly1A=; b=zICp1Hfyy8QfCfcXE31eRIGPMt3BZ1PQ5VWN7gIGKI5cpiN8u7WvO2f3gpvIrKovtO tVM90thUd0yjNIccOlLVNz3b5v+G64/+aCfvf4swbenMQkLyBCx1enIM1DEXcFSQnPKk ptWrfW5a92L6uywwmn/tNXLeftzS4E686o1Z09DFe9D2N6F6+mO8DnHsPsmnxwrhon7b Noud0dHzS9LTWFcRa7ShAGLnBVwyCjfc8akA3vqMp1C1TP+FmjheAdsPoc8HHMaalWeL VpkUuaoSnynCb1yK3dga2AUjM7BmXNwF3wULdRzSSRbPRgQcTVDRmhEAXk+lEs9yBlHz YGog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eHCTU1QY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si10640969edp.357.2019.11.27.11.03.11; Wed, 27 Nov 2019 11:03:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eHCTU1QY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727141AbfK0S7g (ORCPT + 99 others); Wed, 27 Nov 2019 13:59:36 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:44828 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727091AbfK0S7g (ORCPT ); Wed, 27 Nov 2019 13:59:36 -0500 Received: by mail-qv1-f68.google.com with SMTP id t11so545124qvz.11 for ; Wed, 27 Nov 2019 10:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=geVGu8MBW5PeHjvdy4rCo2MPVBJQGl//bajAqe2ly1A=; b=eHCTU1QYxVuGhChIncMyHJ9Pm+6/dZy6dgMluWm3zrkYV9jdgNv+PuDkJdqjp/SQ68 OAUxXumGOl5myH27v6FfcWTuDGABtRiSSQMK+xtAX4a4jCFMCvADUT2oCN+GwyYYlTZV YwQw+7TMamciR05gVvQZS1Tq4jRYuOAcAwghj/slaAzH/qIFSG5+RwI6zyiw2aVEwPI8 UBfV74BpdOo0iL2DNIcEMk6Metyucdu2pJfjg8BNCka4XchEnxLK4ZVVPzXe53AZXFys XRx3BjrqTHHfWOezDRDr3bKoncCv+SKdRT/bXor99Ezi6spieeClLT4gsoP1gmDb9XWj kehA== 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=geVGu8MBW5PeHjvdy4rCo2MPVBJQGl//bajAqe2ly1A=; b=jBCmB76FCSmWKZntXnCj/ijfCu79GdBPA3IyW0EjkEwKzEwzLKGsnltVRWOih5+nBe /sreDthTOzTRNg+tWf43gbxkAFiqntS0UvUssixQy64SVwI/OuR0bH6f5Hn0mPProNWs 0zemueHWhbtGgHWT2OtjV7uW09vbqbnUsQ1GVCtamxtzeEVSX90vCchVOMJw3DPO2CfN BKnaHlQT4GK8q/dNJTcJL3rGAzm/p4sEC6CbjX16SHLpYCmFyzIj/TGdLiOtgkRvE+68 MRLKkLwlWBAN4Yo9sZDHF0Vchh0QBBRujrdo7OBjAlhCuljjvJxqCjMhF7hojIH3dVZ9 uhnw== X-Gm-Message-State: APjAAAW2cQp8BwCj3foDC7CHy7/iIUraUoT1rGeQxiyv9K3MPH71hbk1 BjPA4nBrlchFWJhDGwgK7hkVWevyIDgc5Tk23zDRiw== X-Received: by 2002:ad4:4c4e:: with SMTP id cs14mr6646423qvb.198.1574881174864; Wed, 27 Nov 2019 10:59:34 -0800 (PST) MIME-Version: 1.0 References: <20191127082145.6100-1-yuehaibing@huawei.com> In-Reply-To: <20191127082145.6100-1-yuehaibing@huawei.com> From: Curtis Malainey Date: Wed, 27 Nov 2019 10:59:24 -0800 Message-ID: Subject: Re: [PATCH -next] ASoC: rt5677: Fix build error without CONFIG_SPI To: YueHaibing Cc: Bard Liao , Oder Chiou , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Ben Zhang , Curtis Malainey , ALSA development , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 27, 2019 at 12:22 AM YueHaibing wrote: > > If CONFIG_SPI is n, SND_SOC_RT5677_SPI also is n, building fails: > > sound/soc/codecs/rt5677.o: In function `rt5677_irq': > rt5677.c:(.text+0x2dbf): undefined reference to `rt5677_spi_hotword_detected' > sound/soc/codecs/rt5677.o: In function `rt5677_dsp_work': > rt5677.c:(.text+0x3709): undefined reference to `rt5677_spi_write' > > This adds stub helpers to fix this. > > Reported-by: Hulk Robot > Fixes: 461c623270e4 ("ASoC: rt5677: Load firmware via SPI using delayed work") > Signed-off-by: YueHaibing Acked-by: Curtis Malainey > --- > sound/soc/codecs/rt5677-spi.h | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+)