Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp710532rdb; Tue, 23 Jan 2024 12:20:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZ/faJXjYk92Z2n+iJgqvGLbiV46L47SwAgRIrf56QbXAKDvdD2wQxMdbnJCae6CX5XSs5 X-Received: by 2002:a05:622a:178e:b0:42a:43ec:a91c with SMTP id s14-20020a05622a178e00b0042a43eca91cmr1406294qtk.70.1706041246046; Tue, 23 Jan 2024 12:20:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706041246; cv=pass; d=google.com; s=arc-20160816; b=eQJuH01ZnEBcSm6sXXwkyEWwX9BNwPc+z+hglRZh47C89gj/xTUMtYOoolk+D3dRIf QymuZqEdSR5ihV0EDpAbdGPJUxgaGvzI7iD13k07CgMIbfdW/25hi7b2VXO54tLvRZH9 nUWvBByptMyybMpZqPXQvG/MjC8cnprZ+TnPYEMRWVMjiWXetAg+HAir6BEwLMKzl3eC LRASTwgmJfObMDnpVEmOvC/HE82ceUX4E8m1rc5F6V/Z4Rcp45iELYHfWo0mZN+AOLOM DytZCg9ZbGoyi+4Cx1ueP8qTRd5LJHTMdvQhvF40XBo0skVh8xXEpmW6iwvpnaqEbkLQ CAuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=5G+b9FqX65ZMDg4gbuSX/rAAF8IzX6D1GKhxbtIqJiU=; fh=m8R4SSV/Aw5HKZXjECk+KGBHrmCVOssBh25AuzeLPWE=; b=GU8+Ywlhlu2R/buBMTW378OOT1yvCicBIwqrjCIbFLTYXh72Z7Z/gfTEZG7cir6upL 7ZWO5StB6XUT0JS1locX/1y3kAy7DPI5AtBdLCenSvnEZkTXh027AC1DNfYsv26G+pja v3CFgChFINDRjM+QjRvonT0PW9TlrAcKvUPtR3cJF7EdG/vaMJVBQvP+5nwECupIvBL+ GeFh0jrs1RNvq+pGj5WDF3ZsXm1cllZiHDBDysqy2/XzZQoYPmvyFrdaFc5Wsx7kX9J0 7la/oLAEnbOdq968RhF9A+H6C4XEhQq3efIP9EM6C6MHxA7vG9dqeopzV9Ewca4q6+iy Z70w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Slrg1J/D"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-36014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t9-20020a05622a180900b0042a2b401ed8si8706663qtc.610.2024.01.23.12.20.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 12:20:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Slrg1J/D"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-36014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 454A91C23D0B for ; Tue, 23 Jan 2024 20:20:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67BB985C5E; Tue, 23 Jan 2024 20:20:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Slrg1J/D" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8553350276; Tue, 23 Jan 2024 20:20:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706041224; cv=none; b=Crmkx4PtQtS72/MjSwpmn6172FRqfgEuallN2Em49duiVzMeU8PAd1m1OYcPbKVBl6E1//1kEO3CGCAziXpHnwZdvaMNedDMp/G9YdU5CxTXh1ZHCrQ0STwTPS9csr2uH3KtumKyfxCRnf6uPelmuWYO1lwHZUCjxGhnoHO8RxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706041224; c=relaxed/simple; bh=xM133hD/HSCXT1KX4H7xbcfslhLaVzrqvIsmxWzuX+4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=ObrBzYTIEwN7S+fJXrku0iveS4Wo7TlISb+G1zFezykxVq+nbTLpegf3jjloUUNZ273v1PtT+uwI1l/vOfakVcwpVsV4zXmalkhvUTzVgcgEspXWW43zmE7JnaKv36RdhYiFza3kQ7pMvlIZFq2tWZDBAfX2QQDB4/6f5PwbHLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Slrg1J/D; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0B4BC433C7; Tue, 23 Jan 2024 20:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706041224; bh=xM133hD/HSCXT1KX4H7xbcfslhLaVzrqvIsmxWzuX+4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Slrg1J/DScPziQN8aDITgYI9KV9hL7CVUWaDyVEig+sEaT86kWUWDlf1pBHqNorQ2 D7uAMrxpbUsQ2XESO3soOP8uR/JkEXjbHKIU9fIvov8K6SDdb4jgXgQBj9HoixB+qe 8VoXP5mbwqnR9u08d/bIFDOH+3SUVQeMBM0m95fjlqZG2HpH79124uVsUFaRTnS2GY GgHc3BmbLMhFncHqIV+F0WIAWNnLi/lJPPrcbng9gZ/JdPY1IQQ0VZl2ihzbIWHSwS iKvCNYAWzY8pKBd5VDpn+NYFnrvcMzWEexhF4OMNt+G5GpcSUldUvF6EK9jwpgKV4G Qjz4j8Gxn+y7g== Date: Tue, 23 Jan 2024 14:20:22 -0600 From: Bjorn Helgaas To: Philipp Stanner Cc: Bjorn Helgaas , Arnd Bergmann , Johannes Berg , Randy Dunlap , NeilBrown , John Sanpe , Kent Overstreet , Niklas Schnelle , Dave Jiang , Uladzislau Koshchanka , "Masami Hiramatsu (Google)" , David Gow , Kees Cook , Rae Moar , Geert Uytterhoeven , "wuqiang.matt" , Yury Norov , Jason Baron , Thomas Gleixner , Marco Elver , Andrew Morton , Ben Dooks , dakr@redhat.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v5 RESEND 2/5] lib: move pci_iomap.c to drivers/pci/ Message-ID: <20240123202022.GA325908@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240111085540.7740-3-pstanner@redhat.com> On Thu, Jan 11, 2024 at 09:55:37AM +0100, Philipp Stanner wrote: > This file is guarded by an #ifdef CONFIG_PCI. It, consequently, does not > belong to lib/ because it is not generic infrastructure. > > Move the file to drivers/pci/ and implement the necessary changes to > Makefiles and Kconfigs. > ... > --- a/drivers/pci/Kconfig > +++ b/drivers/pci/Kconfig > @@ -13,6 +13,11 @@ config FORCE_PCI > select HAVE_PCI > select PCI > > +# select this to provide a generic PCI iomap, > +# without PCI itself having to be defined > +config GENERIC_PCI_IOMAP > + bool > --- a/lib/pci_iomap.c > +++ b/drivers/pci/iomap.c > @@ -9,7 +9,6 @@ > > #include > > -#ifdef CONFIG_PCI IIUC, in the case where CONFIG_GENERIC_PCI_IOMAP=y but CONFIG_PCI was not set, pci_iomap.c was compiled but produced no code because the entire file was wrapped with this #ifdef. But after this patch, it looks like pci_iomap_range(), pci_iomap_wc_range(), etc., *will* be compiled? Is that what you intend, or did I miss something? Bjorn