Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp46332rwb; Tue, 25 Jul 2023 11:41:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlGj7ld7Pr0sCvQyjvpwUdm7S9rpiBSwEyUY4cnBVvEqiK/XLMbWiQpkrqxspe0ckqeqRucA X-Received: by 2002:a05:6402:4412:b0:51e:48e7:72ca with SMTP id y18-20020a056402441200b0051e48e772camr3644336eda.13.1690310484257; Tue, 25 Jul 2023 11:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690310484; cv=none; d=google.com; s=arc-20160816; b=kzmUPfdSNhuyTBK+6zWYdZ6zAxesZdNNqvn9NiwfSp8/y6O90AaoSDU9k8BR9U2/QK UGGo5B1x7HlekR3ZC7dOWy3lbXrqOTCK1aNmHv89uv+9EAgWiGOCznDjDfaSniVJ4nwI BFYGOyVZc0LYczyR5sviK37gGscnBomWvVn4uX7kwN3bmJ7rQGF0JtoSoFQy04YaIRXg Lf7GO5b542BBafYy4OnuJTeGlwVHlLS5KsxQQhyRETIVe7/KE3fIp00YVJqGerw5qQEP 5Pl48cuChPRCb+fjJsqwH8vNCMpfsT2LEP6OAk1UX38QjgMf70aMeMPpPrGVziybu4Vk 2MXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ywOmQ9KEGxGLt/sFlF4nzRuGBxtql0ZMvWFiLXP+ehI=; fh=i5cMzO/w4RtrDGYbuhGWOusNeK99mj3qViN6Cqjwsaw=; b=DntEHhajnBP3pVVdeUdJL0BiFSxkEy1PcKxVDhaoahr3vUlx2DNwCCI0teutsGhOVG JbMqa7Zqxk5oncNmveRx2B2emqyNbGLx/KrLlXaGQqZmGOKBNC5n9D8ZdJ8XWV1j0Gh7 sfiQrpdiz8HWi9ebbqgzr/iAtvxLk45m9V6ok1IwL1X3avDnzlpGavoCyOZHJqLcsak6 td+3xC8Q5LEoOC6T8zx5ueLE0QRMZBgm/S2V17yHjHny592FFZVDDDcspM5CZqymHJ90 X+uyM38aASspWU8GazLAR2DyplmzaZELMKfDerTyGAlqddYdZPbcQYVI75wcvW7xXXwu Oglw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=f7MS5QIN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m11-20020aa7c48b000000b00521e533adaasi7562495edq.408.2023.07.25.11.40.38; Tue, 25 Jul 2023 11:41:24 -0700 (PDT) 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=@infradead.org header.s=bombadil.20210309 header.b=f7MS5QIN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbjGYST6 (ORCPT + 99 others); Tue, 25 Jul 2023 14:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbjGYST5 (ORCPT ); Tue, 25 Jul 2023 14:19:57 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F31AA1BF8; Tue, 25 Jul 2023 11:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=ywOmQ9KEGxGLt/sFlF4nzRuGBxtql0ZMvWFiLXP+ehI=; b=f7MS5QINfxkRvRqk9Dc5NsqNQJ nAoyMaHQPjoziMDoQk4Byjmffm8kB/zg7eoHixuQiIXirpUT6hjU4PjvjANjva0vvEbfPpnAjEbzX HbyZASV+XeFICCTyaHxMdK+WMKDaR7BgW6PlFq0iHT1pnxZKdyJHEfFdHj1nKzRdihjN+QcHGuWbh wV+mlIGdkeUpVSKrhJjafXZVN6JrkE330VqeJZcAaHYvDrvJC2jgx8vrkpvsz1XfaOuL3S6Lf2GhI cWYkmf0xtmkirlnGM47RvlkDvsML3iXfIJsNUcfgFZCNDAM/YIQg8+9F028VoRIC2RKn5i7HgOvSF 7cFwDIPA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qOMdQ-008FPM-33; Tue, 25 Jul 2023 18:19:49 +0000 Message-ID: <5e56d4a9-2671-caf7-c267-9beec6f14aa3@infradead.org> Date: Tue, 25 Jul 2023 11:19:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2] um/drivers: Kconfig: fix hostaudio build errors Content-Language: en-US To: Takashi Iwai Cc: linux-kernel@vger.kernel.org, kernel test robot , Richard Weinberger , Anton Ivanov , Johannes Berg , linux-um@lists.infradead.org, Tejun Heo , Jaroslav Kysela , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kbuild@vger.kernel.org References: <20230723215756.18307-1-rdunlap@infradead.org> <87jzuoth7s.wl-tiwai@suse.de> From: Randy Dunlap In-Reply-To: <87jzuoth7s.wl-tiwai@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 7/25/23 03:31, Takashi Iwai wrote: > On Sun, 23 Jul 2023 23:57:56 +0200, > Randy Dunlap wrote: >> >> Use "select"s to ensure that the required kconfig symbols are set >> as expected. >> >> This fixes build errors when CONFIG_SOUND is not set. >> >> ld: arch/um/drivers/hostaudio_kern.o: in function `hostaudio_cleanup_module': >> hostaudio_kern.c:(.exit.text+0xa): undefined reference to `unregister_sound_mixer' >> ld: hostaudio_kern.c:(.exit.text+0x15): undefined reference to `unregister_sound_dsp' >> ld: arch/um/drivers/hostaudio_kern.o: in function `hostaudio_init_module': >> hostaudio_kern.c:(.init.text+0x19): undefined reference to `register_sound_dsp' >> ld: hostaudio_kern.c:(.init.text+0x31): undefined reference to `register_sound_mixer' >> ld: hostaudio_kern.c:(.init.text+0x49): undefined reference to `unregister_sound_dsp' >> >> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") >> Fixes: d886e87cb82b ("sound: make OSS sound core optional") >> Signed-off-by: Randy Dunlap >> Reported-by: kernel test robot >> Link: lore.kernel.org/r/202307141416.vxuRVpFv-lkp@intel.com >> Cc: Richard Weinberger >> Cc: Anton Ivanov >> Cc: Johannes Berg >> Cc: linux-um@lists.infradead.org >> Cc: Tejun Heo >> Cc: Takashi Iwai >> Cc: Jaroslav Kysela >> Cc: Masahiro Yamada >> Cc: Nathan Chancellor >> Cc: Nick Desaulniers >> Cc: Nicolas Schier >> Cc: linux-kbuild@vger.kernel.org >> --- >> v2: don't delete the HOSTAUDIO Kconfig entry (Masahiro) >> >> arch/um/drivers/Kconfig | 10 ++-------- >> 1 file changed, 2 insertions(+), 8 deletions(-) >> >> diff -- a/arch/um/drivers/Kconfig b/arch/um/drivers/Kconfig >> --- a/arch/um/drivers/Kconfig >> +++ b/arch/um/drivers/Kconfig >> @@ -111,20 +111,14 @@ config SSL_CHAN >> >> config UML_SOUND >> tristate "Sound support" >> + select SOUND >> + select SOUND_OSS_CORE >> help >> This option enables UML sound support. If enabled, it will pull in >> soundcore and the UML hostaudio relay, which acts as a intermediary >> between the host's dsp and mixer devices and the UML sound system. >> It is safe to say 'Y' here. >> >> -config SOUND >> - tristate >> - default UML_SOUND >> - >> -config SOUND_OSS_CORE >> - bool >> - default UML_SOUND >> - >> config HOSTAUDIO >> tristate >> default UML_SOUND > > And now essentially CONFIG_HOSTAUDIO is equal with CONFIG_UML_SOUND. > Then isn't it better to replace CONFIG_HOSTAUDIO in > arch/um/drivers/Makefile with CONFIG_UML_SOUND, so that you can drop > CONFIG_HOSTAUDIO as well? OK, I'll send a v3 with that change. thanks. -- ~Randy