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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 782A1EB64DA for ; Tue, 18 Jul 2023 13:35:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231613AbjGRNfV (ORCPT ); Tue, 18 Jul 2023 09:35:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231557AbjGRNfV (ORCPT ); Tue, 18 Jul 2023 09:35:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E43697 for ; Tue, 18 Jul 2023 06:35:20 -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 22FF261593 for ; Tue, 18 Jul 2023 13:35:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A64B7C433C8; Tue, 18 Jul 2023 13:35:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689687319; bh=HMGnfP7a18Hb5/1wkqaKdgbdAOS3DZhvpj4y3ByHjF4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ziMzr2VnYTCnLaqm4hFabvD+IIzgnnJLhUm1ZfPfvm5zaXDKU2NL4MMPF1n7cnU2S cu8LKWmga3zikp5StlrGutUNtvQu6OVtktVo/0cM2ISL7VFKgl/ZG92xb6LP/ICFI2 8ZOMSD8QVHMj0JvF3xl3GNy6fkwZ7BWcFK/GbjIc= Date: Tue, 18 Jul 2023 15:35:14 +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 1/5] driver core: Provide stubs for !IOMEM builds Message-ID: <2023071808-obnoxious-flyover-af63@gregkh> References: <20230718-asoc-topology-kunit-enable-v2-0-0ee11e662b92@kernel.org> <20230718-asoc-topology-kunit-enable-v2-1-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-1-0ee11e662b92@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Tue, Jul 18, 2023 at 01:28:42AM +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 HAS_IOMEM. > > The most likely use case is builds with UML for KUnit testing. > > Signed-off-by: Mark Brown > --- > include/linux/device.h | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) Reviewed-by: Greg Kroah-Hartman