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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0923BEB64DA for ; Tue, 18 Jul 2023 13:36:46 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A471D1E9; Tue, 18 Jul 2023 15:35:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A471D1E9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689687404; bh=87x/ZiICR+wjR2rxh0LCkN4th6j+MlFTVrqott7G8JI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ECW0MR3CHJE56tNuA2ukKMDc4dFgaghArdrFzz17RUwvtW0z5+6IyPZYPf+bdtZR4 wL+nBwDIkx8o8hx1P6QIpUK4m0ldVlEGrWUQlE43zdgK5r6jsnO8IHu1eaAfSu5Szl FBBOsy9a5SPuJeAPrXjkjD2jz0GWpx/PKCvKrbT0= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8857CF8053B; Tue, 18 Jul 2023 15:35:26 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 039D4F800D2; Tue, 18 Jul 2023 15:35:26 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 108C4F8032D; Tue, 18 Jul 2023 15:35:22 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A482BF800D2 for ; Tue, 18 Jul 2023 15:35:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A482BF800D2 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Gw9YXTCx 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 EC3886157A; Tue, 18 Jul 2023 13:35:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6ABEAC433C9; Tue, 18 Jul 2023 13:35:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689687312; bh=87x/ZiICR+wjR2rxh0LCkN4th6j+MlFTVrqott7G8JI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gw9YXTCxOIGRmdlzFeIxvMZpmglLv3KMDBtgMHMqX5xa+LT3ujlhNLKB1AUCE2LCW shvyT4eaxIqTQoU/fhQGMOEZNc/Lv9+kNA0ZSXQQRxCHI3jbiKA+fmQ5r2irqSIbTR PTwXRkrdu1EQoVygN47SgtA3iexsKIeQvxXu6I/A= Date: Tue, 18 Jul 2023 15:35:06 +0200 From: Greg Kroah-Hartman To: Mark Brown Cc: Liam Girdwood , Brendan Higgins , David Gow , Jaroslav Kysela , Takashi Iwai , "Rafael J. Wysocki" , alsa-devel@alsa-project.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Subject: Re: [PATCH v2 2/5] platform: Provide stubs for !HAS_IOMEM builds Message-ID: <2023071855-decimal-sarcastic-65b9@gregkh> References: <20230718-asoc-topology-kunit-enable-v2-0-0ee11e662b92@kernel.org> <20230718-asoc-topology-kunit-enable-v2-2-0ee11e662b92@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230718-asoc-topology-kunit-enable-v2-2-0ee11e662b92@kernel.org> Message-ID-Hash: 2UKOBD2FPJIUCFL57ETVT4NQIVBXZUKC X-Message-ID-Hash: 2UKOBD2FPJIUCFL57ETVT4NQIVBXZUKC X-MailFrom: gregkh@linuxfoundation.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue, Jul 18, 2023 at 01:28:43AM +0100, Mark Brown wrote: > The various _ioremap_resource functions are not built when > CONFIG_HAS_IOMEM is disabled but no stubs are provided. Given how > widespread IOMEM usage is in drivers and how rare !IOMEM configurations > are in practical use let's just provide some stubs so users will build > without having to add explicit dependencies on IOMEM. > > The most likely use case is builds with UML for KUnit testing. > > Signed-off-by: Mark Brown > --- > include/linux/platform_device.h | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) Reviewed-by: Greg Kroah-Hartman