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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BBAAC433EF for ; Mon, 14 Feb 2022 11:39:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A02366B0078; Mon, 14 Feb 2022 06:39:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9B0E36B007B; Mon, 14 Feb 2022 06:39:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 89EBA6B007D; Mon, 14 Feb 2022 06:39:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0058.hostedemail.com [216.40.44.58]) by kanga.kvack.org (Postfix) with ESMTP id 7A79C6B0078 for ; Mon, 14 Feb 2022 06:39:23 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 2A2719D656 for ; Mon, 14 Feb 2022 11:39:23 +0000 (UTC) X-FDA: 79141189806.29.7DDD468 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf17.hostedemail.com (Postfix) with ESMTP id 1085D4000A for ; Mon, 14 Feb 2022 11:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644838762; x=1676374762; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=4+TjcTMCbvde7rmAMLmTxd1coghqCq25gDn9EklIb38=; b=XcaUCtvtP6OQKG2X9hwLmXuJMNiwUmEbqwS9j2sOIqJ+O2+xAPe47brI RfYAixDx0413TAVh9KLspP112dI3GcBaajIv/lKr05824ehFS2rrZ3uhi jppCKUNM4ztIH57+U9f3tuXuRgzuzXQ3OYQOaZbcLFajCAAF78KWTpn3p 7L7hiIwIyidvk7mOn0GCyDT4zJHDHTQ/hUhNOLI6u4RjKUjA/qfeHf5Gr MELstQ/YRxpnGPP+cI4zkj4+e0mqoYSU1gZ1O+VHP4ks5TozxhQPkHjvX rcniqiBTvPMaqb+o1cqpd9kEnApgn0blAkBB9dcGTQIh9ls6RAD8XeAO7 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10257"; a="247667765" X-IronPort-AV: E=Sophos;i="5.88,367,1635231600"; d="scan'208";a="247667765" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 03:39:20 -0800 X-IronPort-AV: E=Sophos;i="5.88,367,1635231600"; d="scan'208";a="543480346" Received: from amrobles-mobl1.amr.corp.intel.com (HELO [10.249.47.75]) ([10.249.47.75]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 03:39:18 -0800 Message-ID: <2427ac68-bc54-a129-35f2-96b61099bf06@linux.intel.com> Date: Mon, 14 Feb 2022 13:39:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [linux-next:master 4766/5417] sound/soc/sof/core.c:135: undefined reference to `sof_client_fw_state_dispatcher' Content-Language: en-US To: Pierre-Louis Bossart , kernel test robot Cc: kbuild-all@lists.01.org, Linux Memory Management List , Mark Brown , Ranjani Sridharan , Kai Vehmanen References: <202202130429.GEdTKNDQ-lkp@intel.com> <69845e3e-6dac-fc9b-5914-78833b2cfa5a@linux.intel.com> From: =?UTF-8?Q?P=c3=a9ter_Ujfalusi?= In-Reply-To: <69845e3e-6dac-fc9b-5914-78833b2cfa5a@linux.intel.com> Content-Type: text/plain; charset=UTF-8 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1085D4000A X-Stat-Signature: aeaby17p3emouruch67ch4qjjunr5dxd Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XcaUCtvt; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf17.hostedemail.com: domain of peter.ujfalusi@linux.intel.com has no SPF policy when checking 192.55.52.93) smtp.mailfrom=peter.ujfalusi@linux.intel.com X-HE-Tag: 1644838761-509759 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 13/02/2022 00:42, Pierre-Louis Bossart wrote: >=20 >=20 > On 2/12/22 15:00, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-nex= t.git master >> head: 6d9bd4ad4ca08b1114e814c2c42383b8b13be631 >> commit: 3dc0d709177828a22dfc9d0072e3ac937ef90d06 [4766/5417] ASoC: SOF= : Convert the generic probe support to SOF client >> config: i386-randconfig-a003-20210930 (https://download.01.org/0day-ci= /archive/20220213/202202130429.GEdTKNDQ-lkp@intel.com/config) >> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 >> reproduce (this is a W=3D1 build): >> # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-n= ext.git/commit/?id=3D3dc0d709177828a22dfc9d0072e3ac937ef90d06 >> git remote add linux-next https://git.kernel.org/pub/scm/linux= /kernel/git/next/linux-next.git >> git fetch --no-tags linux-next master >> git checkout 3dc0d709177828a22dfc9d0072e3ac937ef90d06 >> # save the config file to linux build tree >> mkdir build_dir >> make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot >> >> All errors (new ones prefixed by >>): >> >> ld: sound/soc/sof/core.o: in function `sof_set_fw_state': >>>> sound/soc/sof/core.c:135: undefined reference to `sof_client_fw_stat= e_dispatcher' >> ld: sound/soc/sof/core.o: in function `sof_probe_continue': >>>> sound/soc/sof/core.c:287: undefined reference to `sof_register_clien= ts' >> ld: sound/soc/sof/core.o: in function `sof_set_fw_state': >>>> sound/soc/sof/core.c:135: undefined reference to `sof_client_fw_stat= e_dispatcher' >> ld: sound/soc/sof/core.o: in function `snd_sof_device_remove': >>>> sound/soc/sof/core.c:427: undefined reference to `sof_unregister_cli= ents' >> ld: sound/soc/sof/core.o: in function `sof_set_fw_state': >>>> sound/soc/sof/core.c:135: undefined reference to `sof_client_fw_stat= e_dispatcher' >> ld: sound/soc/sof/ipc.o: in function `snd_sof_ipc_msgs_rx': >>>> sound/soc/sof/ipc.c:574: undefined reference to `sof_client_ipc_rx_d= ispatcher' >> ld: sound/soc/sof/pm.o: in function `sof_suspend': >>>> sound/soc/sof/pm.c:227: undefined reference to `sof_suspend_clients' >>>> ld: sound/soc/sof/pm.c:217: undefined reference to `sof_suspend_clie= nts' >> ld: sound/soc/sof/pm.o: in function `sof_resume': >>>> sound/soc/sof/pm.c:171: undefined reference to `sof_resume_clients' >> >=20 > I can reproduce this with the attached config with networking disabled, > otherwise I have a compilation issues. I was also able to reproduce it. > Not sure why we are only seeing this now, this code has been in the SOF > tree for months. It came out of randconfig, we might not been lucky enough to get this combination... > At any rate, it seems like a legit problem, where some configs result i= n > the sof core configured as built-in but the clients configured as > modules. We need to find a way to force the client to use the same > configuration as the core. Changing the SOC_SOF_CLIENT from tristate to bool worked, but I think the fix via the Makefile is better: https://lore.kernel.org/alsa-devel/20220214071330.22151-1-peter.ujfalusi@= linux.intel.com/ --=20 P=C3=A9ter