Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp946660rwb; Fri, 28 Jul 2023 02:14:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBENENACw/fzv58oLUy5PHdIdi8ahxVJZySzQ5FGvulTFaHFncZDPgYipGJLJ6u+Hub1tK X-Received: by 2002:a05:6402:613:b0:522:3fc6:91e6 with SMTP id n19-20020a056402061300b005223fc691e6mr1249344edv.9.1690535691122; Fri, 28 Jul 2023 02:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690535691; cv=none; d=google.com; s=arc-20160816; b=vJkt4Jz44s3vE+NIgbDN+lf44JsSsnS1HlQMZu5I/BD8zHyb3rhhiz9oCCCMjMphUb WheO3p1T0oBYgwmk34rTHWcbdcOIhaBS6DdcpL13/fPdR12FtEq5/3Yrc9H+PPXTo4mj UBsKhqQc5vVS8gP6NVCjTOb5xw+aif+QH5SVJLdPPuei7WktNZFTeClbFHesMSdw6HeV Do9ac1AhM1dOtmm0oVWEyQH4CQzzZb5cXg3700cXP6SW/qdq8LYh5FcPs5Rppu4PsUCg e///hfXps5BdcJEGCnu1qTBP9NY34qIMGfC3Rr/3gJu+O73EFG+ygQe/t2VZxiQ0iUp6 ocmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hxGE4oR7P8aIruiSRaSMCLRhB6kh6UWTYIcLRVihiyA=; fh=qYmaGvf1lqQJJDJfUYvZ/IC/YFSCIwdjZQZ0pc6+xmk=; b=uvpCuIv9kuPOIYipiEBoKF6n8WK/joXMn4be/5kzSsQq4f2/IxJqybk45pW/UfAM/V im4MI/l4S1R1xKxUAxzpT5xlwCGhrQe8/YtimSSrcABQNNPhnbdZUjAT+4KZjcJLT8lC elxQ88HiW+0cys/jdtACMVCJybp4KTrCunmmRC46d/bgcjIA3YZxHJ99nm37TBF7BycG 2lrvwz/Yx17adUGYd/EqI+wR0qTfZxubc2zhiUhU6rwFtlxKU12W7ZSAUEBCZzWIbCCB lizcSyDJA/U25EhHMTrtgCci2dLpJVFO/CyVTWkB+CaHGyg3fF5uZJ5F9NttFkPmzurO UYfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CBi6cn4L; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b25-20020aa7c6d9000000b0051e0f7c1502si2169717eds.606.2023.07.28.02.14.25; Fri, 28 Jul 2023 02:14:51 -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=@kernel.org header.s=k20201202 header.b=CBi6cn4L; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235238AbjG1Ixn (ORCPT + 99 others); Fri, 28 Jul 2023 04:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235373AbjG1IxN (ORCPT ); Fri, 28 Jul 2023 04:53:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D22A44BD; Fri, 28 Jul 2023 01:52:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0862762066; Fri, 28 Jul 2023 08:52:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6129DC433D9; Fri, 28 Jul 2023 08:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690534325; bh=vlJpUCrv2ALxslQErLAhvVvaZrwz4OsGjEvmf2Y+iu0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CBi6cn4Lj2WE+3ndu8ojTuLCbCpK7Pkmx9A6xtinX0HCBOZXhEZF98ugJzTOeLFAu +0XMAZNEYpti4YI8V6nchFBp+xpcfTWTHZps6mKo9/8VGwdADXksAATF9qh3LJsTTB /h1qfr19Z4W4JEDvguLAMduLZRTpPYOcqcmk0arqtOaHQwE4cvmDthraAt5bzOw9M1 aVv1xh2gTuR7awDFF4SXPauublFBaHAFoLy+vhYC3DRRLSTVPs3IJz2RFLX2+HnKdc qKaF7MGOAQHIF057Hd7Wa1bbsBT16hXTF2FulnhU0N3iOGJXgPcvq03ROV6GFoLYK6 tIfGzXbc2MbVA== Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-3a412653335so1461556b6e.1; Fri, 28 Jul 2023 01:52:05 -0700 (PDT) X-Gm-Message-State: ABy/qLZ64PSMxY91tVYIaDyhEm1HO01BrSBrR5J5KwrtXD/eyQ5qzMr4 csBqHukhW9Fib/Z/EzuNXjHJF+xlRaunCNcTGg0= X-Received: by 2002:a54:400b:0:b0:3a3:ed22:6b51 with SMTP id x11-20020a54400b000000b003a3ed226b51mr2282641oie.50.1690534324598; Fri, 28 Jul 2023 01:52:04 -0700 (PDT) MIME-Version: 1.0 References: <20230728043013.27776-1-rdunlap@infradead.org> In-Reply-To: <20230728043013.27776-1-rdunlap@infradead.org> From: Masahiro Yamada Date: Fri, 28 Jul 2023 17:51:27 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] um/drivers: fix hostaudio build errors To: Randy Dunlap 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Fri, Jul 28, 2023 at 1:30=E2=80=AFPM 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_modu= le': > hostaudio_kern.c:(.exit.text+0xa): undefined reference to `unregister_sou= nd_mixer' > ld: hostaudio_kern.c:(.exit.text+0x15): undefined reference to `unregiste= r_sound_dsp' > ld: arch/um/drivers/hostaudio_kern.o: in function `hostaudio_init_module'= : > hostaudio_kern.c:(.init.text+0x19): undefined reference to `register_soun= d_dsp' > ld: hostaudio_kern.c:(.init.text+0x31): undefined reference to `register_= sound_mixer' > ld: hostaudio_kern.c:(.init.text+0x49): undefined reference to `unregiste= r_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. Reviewed-by: Masahiro Yamada --=20 Best Regards Masahiro Yamada