Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5586929pxb; Mon, 14 Feb 2022 02:45:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbG5a0yTBzmaZt8SnpIk3JDRuUzbBGYqLR0ME4ZYghjev5qJDH1VWlccmjDepUWJMaGFHa X-Received: by 2002:a63:8349:: with SMTP id h70mr747875pge.345.1644835510512; Mon, 14 Feb 2022 02:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644835510; cv=none; d=google.com; s=arc-20160816; b=AHZoPb8pJAQ6jAdUSRgqdTgApuGUpYDsagK/X/H0y3VBZuHrYVvHYtFDXk1lv3BgH6 cwkmhKA6ijTxm8ZfaQKSyEq1o5bf4T3rOxl7+BmAeW68/Hku5y+iIMGlc4+Ml49P8Ruf sIKmeulf3Pc9Q7RzSsfSscqzZqK2KvvbGYAz34BlWgd0rCC+1c75AEeJCOZCmFq0ixdK akFramb/L5bNlDQpXkeY70Ezn/pHO+OkniZTlrJ+7ZhrBhapfzDwRqk3ThrXnPvVfcLB erFlLqfOS4xwxIuBhXl7XaLzg0Ft3SEuVYv3PPQnPFvTABfY2/LcjPQ0Lq9YjrtTo68+ iVSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DCyc/x5IBgMAX9MXbLN61vX4TcfVCd+1vLd1sOTjK9M=; b=mnt2aLR+y1924+ciMSPZ2hgEghc/Lzk86IpIX+OytKmuvyfx417bWuKv6CniOn5VRa jD/Y02owglfX+h33Wdp/5gEgw65aWU0OTvhQEy9aSW6fStgbyNKh5AIGlM/Y59C8CAO3 8FKJRRJmeLKU7sZfGLj0V6CA4UY41ifYwSpk9C3NJIBFtjZ8cMU36QarMw0JayqGuh7K T81WvhZjQMqO0Z7PLnPAaLROV9IosApaHCG0R6ALyxOxJHBZPJ6SimkSHUvBGIuVyspH seBEQ0K3qDRlnRQeFBNtoWKvq0UdJTUgvzp/MsqOsoxT9zqu+cOCLT2qafa63t11nFbe ylbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=T+sj4Ij6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13si11947833plx.19.2022.02.14.02.44.56; Mon, 14 Feb 2022 02:45:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=T+sj4Ij6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241165AbiBNHNm (ORCPT + 99 others); Mon, 14 Feb 2022 02:13:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232494AbiBNHNl (ORCPT ); Mon, 14 Feb 2022 02:13:41 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5033583BC for ; Sun, 13 Feb 2022 23:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644822812; x=1676358812; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=I7BC7uehC4gM2EkjutEKUCeYM2QbUvM4xLthNGJb+Wc=; b=T+sj4Ij6kIm2MAHBWd/1RslpLLzEfV80IEhchD+jdg4oinFwpGlm7/c2 A0ScEPxmu2E4g3zhyvg5qzl8lugSPrT3/TsDZG4Wzhe9iSUYVvigvlVxD zb3ps/Z+sIORE7A7YW8I2E58yUWVGV+FjJOv5e39BydAkVmGsjM5y2fc3 t3Dk/n7SNXXvV3Pc44D/aOxdA83uQLg+d8qrQ1VzA8snBIH0iweELjIek GreoASDthiGtnJfJA8MpAbVF11T+0yKBTU8PpsrKYiKVwL4g1rjM8Vce+ +yc8OARznKMLe/yMpy67jbf1+K2EScPGwN3Aq7xDDRxxejexAO3bZIvet Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10257"; a="237441050" X-IronPort-AV: E=Sophos;i="5.88,367,1635231600"; d="scan'208";a="237441050" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2022 23:13:32 -0800 X-IronPort-AV: E=Sophos;i="5.88,367,1635231600"; d="scan'208";a="527949550" Received: from amrobles-mobl1.amr.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.249.47.75]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2022 23:13:29 -0800 From: Peter Ujfalusi To: lgirdwood@gmail.com, broonie@kernel.org, pierre-louis.bossart@linux.intel.com, ranjani.sridharan@linux.intel.com Cc: alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com, daniel.baluta@nxp.com, tiwai@suse.com, linux-kernel@vger.kernel.org, fred.oh@linux.intel.com Subject: [PATCH v2] ASoC: SOF: Makefile: Fix randconfig sof-client build when SND_SOC_SOF=y Date: Mon, 14 Feb 2022 09:13:30 +0200 Message-Id: <20220214071330.22151-1-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Intel's kernel test robot found the following randconfig combination: SND_SOC_SOF=y SND_SOC_SOF_CLIENT=m In this the sof-client object is not going to be built into the snd-sof.o and we will have undefined references to the sof-client functions. Fixes: 6955d9512d0e ("ASoC: SOF: Introduce IPC SOF client support") Reported-by: kernel test robot Signed-off-by: Peter Ujfalusi > --- Hi Mark, Pierre, Changes since v1: - fix author and SoB from gmail.com to linux.intel.com When the client support was added we did some permutation tests (at least I did) but missed this combination. It is a valid one for sure and the proper fix is via the Makefile. Sorry for mising this Regards, Peter sound/soc/sof/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/sof/Makefile b/sound/soc/sof/Makefile index 4d31282c847d..a0459f06c68a 100644 --- a/sound/soc/sof/Makefile +++ b/sound/soc/sof/Makefile @@ -2,7 +2,9 @@ snd-sof-objs := core.o ops.o loader.o ipc.o pcm.o pm.o debug.o topology.o\ control.o trace.o iomem-utils.o sof-audio.o stream-ipc.o -snd-sof-$(CONFIG_SND_SOC_SOF_CLIENT) += sof-client.o +ifneq ($(CONFIG_SND_SOC_SOF_CLIENT),) +snd-sof-objs += sof-client.o +endif snd-sof-$(CONFIG_SND_SOC_SOF_COMPRESS) += compress.o -- 2.35.1