Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3921469rwb; Sun, 30 Jul 2023 20:11:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUOsiKmc/0WfakKc0mzEWnA8ImtNQomuIIfL/VhZNBvFv2FPQOQUYysqRZXvFm2oz0WO8M X-Received: by 2002:a17:907:6da9:b0:98d:4b97:acc8 with SMTP id sb41-20020a1709076da900b0098d4b97acc8mr6301943ejc.25.1690773061342; Sun, 30 Jul 2023 20:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690773061; cv=none; d=google.com; s=arc-20160816; b=N6s9NkAEJlwW0GiHX5leR0SXTFOgs33K9Wl+yzmlwuk/doyQ4rMjvwH0cSn9Hgt73z z3MrDY2DiAETLh1J7AgHF0sc8X/d+mVV2JWcXv1acaMR1Z8XB+a9Vrna6G6uBccUSprF 1Lc2I/OgBVuAPJDpZjYeV/RieyHs+nJR+5ZEMxu8/y+6XO3LIgyP294BvzceEKmOWrR6 0v+wdll9jj7FzYonvaiYl834oZZjPqK5pGrGwfsbyFZLCmuWugnuUofVwdTn4vf4eqfD KH7nql/qneN9BgZ7o0sAbxlwHtRoNrFhR1XHADcVt1MdyBpt59rO/yro5caL/snxhvg5 YvMg== 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=A0dSOH2m8ipT3K2klg7qGf7lmKLpHt051xKXzyE3rJM=; fh=RmJYYQ4K9cqbHhVUU73xv6KD7lnDbXquKWVlhYHj1tU=; b=pM2DCDGGF7kx3Y3J84q7kAO3B00f6JsXbMLxF7w5m9paD96iE51n8DMFKrGLpNzENG BNl0ZIDacz2u0RRO5WXC7gqe9GxqianC7nsL97N0rmlgpGFx3Kdg0xBol4KYUm0VK2CL 0AQK8Rzmy1+oKLfS2l2ehVpcwcnNs1Xc+ZZiovY7o2bkoywR93BF6MLUebN7lANC/IF9 pZO1Byk1ygP8d+45+nL803zjyk0vEJBC8mBI4y3ZgE1xFBMADfmR0idJUTGAw2eNkiC3 3bIFvf/1RqE+iH1HCxM7T9w6VLbrbWFdRJHphde0txQ/cz+QlWC9tfKUYjcKNX3lx4tw L8fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VyNdj1Oc; 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 y13-20020a17090668cd00b0099bcae0f9b0si5344599ejr.978.2023.07.30.20.10.37; Sun, 30 Jul 2023 20:11:01 -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=VyNdj1Oc; 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 S229707AbjGaCiP (ORCPT + 99 others); Sun, 30 Jul 2023 22:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjGaCiO (ORCPT ); Sun, 30 Jul 2023 22:38:14 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B11ACDC; Sun, 30 Jul 2023 19:38:13 -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=A0dSOH2m8ipT3K2klg7qGf7lmKLpHt051xKXzyE3rJM=; b=VyNdj1OcZ3+XjZSsavP5dMPZfd DD97JrAQxEahFOM/M1BOdotTpd0YDkfMznCWXL9/PywliVdHpWBDEhTauTfF5Nhq4+uvjDNZnVhDT YHqlEpwo8/HfJK1l1kPPD5qSNveOe7DlU6wVkf3jfsZ/H0J0WKe4/+TX5ToQe6WWNkjHUw7uc4HKK QDnfzSM3q7bIEMux4N45LtqfZz2Qu+HDqEuba9nGuUeNvH1N61GGC4VOip5FbCr+wm984CiopVjIF PNqSqDpsRoTC+7ttwLFujsiQp0TgD+uRa6NnQ0nM8hoMJRrWFgAxjXMSYp64URl5AI+O/Rtgpf9Lq h2KWXmzw==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qQInP-00DXEJ-0Z; Mon, 31 Jul 2023 02:38:07 +0000 Message-ID: <3cd0e5b7-7e20-ce3b-e391-eb77443f63b1@infradead.org> Date: Sun, 30 Jul 2023 19:38:05 -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 v3] um/drivers: fix hostaudio build errors Content-Language: en-US To: Masahiro Yamada Cc: linux-kernel@vger.kernel.org, kernel test robot , Richard Weinberger , Anton Ivanov , Johannes Berg , linux-um@lists.infradead.org, Tejun Heo , Takashi Iwai , Jaroslav Kysela , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kbuild@vger.kernel.org, alsa-devel@alsa-project.org References: <20230728043013.27776-1-rdunlap@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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/28/23 01:51, Masahiro Yamada wrote: > On Fri, Jul 28, 2023 at 1:30 PM Randy Dunlap wrote: >> >> Use "select"s to ensure that the required kconfig symbols are set >> as expected. >> Drop HOSTAUDIO since it is now equivalent to UML_SOUND. >> >> Allow SOUND with UML regardless of HAS_IOMEM. Otherwise there is a >> kconfig warning for unmet dependencies. (This was not an issue when >> SOUND was defined in arch/um/drivers/Kconfig. I have done 50 randconfig >> builds and didn't find any issues.) >> >> 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' >> >> and this kconfig warning: >> WARNING: unmet direct dependencies detected for SOUND >> >> 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 >> Cc: alsa-devel@alsa-project.org >> --- >> v2: don't delete the HOSTAUDIO Kconfig entry (Masahiro) >> v3: drop HOSTAUDIO and use CONFIG_UML_SOUND for it in Makefile (Takashi); >> add SOUND depends on "|| UML" to HAS_IOMEM >> >> arch/um/drivers/Kconfig | 14 ++------------ >> arch/um/drivers/Makefile | 2 +- >> sound/Kconfig | 2 +- >> 3 files changed, 4 insertions(+), 14 deletions(-) >> >> diff -- a/arch/um/drivers/Kconfig b/arch/um/drivers/Kconfig >> --- a/arch/um/drivers/Kconfig >> +++ b/arch/um/drivers/Kconfig >> @@ -111,24 +111,14 @@ config SSL_CHAN >> >> config UML_SOUND >> tristate "Sound support" >> + select SOUND > > > This would be the only instance that select's SOUND. > Perhaps, this could be 'depends on SOUND'. > (in that case, arch/um/configs/*_defconfig needs modification). > > Just my two cents. > Oh, good point, and one that I agree with. I'll send a v4. > > Reviewed-by: Masahiro Yamada Takashi, I don't know who will merge the patch, but I would expect that one of the UML maintainers to merge it.... FWIW. Thanks. -- ~Randy