Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp206705rdf; Mon, 20 Nov 2023 23:29:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtEe//Ny592o8/dt1E8HxYnpH4AUGtVYgFIbN3bsw/1STp3JqdchncOVU7OvyJ0TABd0KM X-Received: by 2002:a17:90a:6881:b0:280:a4a1:5d03 with SMTP id a1-20020a17090a688100b00280a4a15d03mr2906310pjd.4.1700551791813; Mon, 20 Nov 2023 23:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700551791; cv=none; d=google.com; s=arc-20160816; b=UwK6+5idu+cODvQJ5SzKkcjQwCMG4mwXUUs6hQHC2iGxQMpgTw/8drOUBVKjJfup9y S/Fx/JrGzCzPOW1dzXzRTRg05182ak2iTFcUjvvjJpFVSfJv8yNmUOInrQQ9BIhw4qRc PzSgBMMxPOtQoqjRf101FOHJjWarAWJKxVZpkDBv3alGXyOkL6ABbL29rNmx9HeNo6iN JfCpjDDqUM3+41vAgf7oQd3pFYUhSZ2A1wgL+I/kquOxJOlCYNBmuTvms9ZvlORJIF5c jDqTotm5yfzWkw7m1KQm+lEjnZjILYsiRlQYhQ4+83PKFc0dVN8LTbmBGCRZdvWyNao4 uRbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature; bh=P5QSYD8etgFbiucNgOKqmokYvfsgifsS9M8mVnHK+Ng=; fh=84EnaAUACVtiQIBVEUv8V/+moi6opmgSt0fDKpyYDB4=; b=bJJXzVGnAOtK+EfuACsGudzoP6QNdZHfg1raYopoVcSAjguytDt0/VAjmPT5SOfsik cn+oJHPINY+M6Se1f8uR3NeRZwJO3GXrxYX8fhry/CpoXZs4O7/wi1xaBBZYjbi/mdaW YwlOxjFwErjY07l8uhVFnzbH94+Eu62ZmEFd9jz2y1tiXRhsezUMc7o2nVdDo4vPJzXi prwzWPYwJ/YNw6P6CMVHDs2fVxknFWxeKD0n6WzfvlX4s4m7E2AYubvwL/v3yngQyrT4 9J+F1f3654bBQL0LAf0qXMFHnu5dmeVV7iabe0TaZ6UJ7rk93GQ//SPlZVOvIbmU0VuO Plwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=juPN3fvL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ci9-20020a17090afc8900b0028515bd32a2si5718183pjb.81.2023.11.20.23.29.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 23:29:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=juPN3fvL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D6F6F801B31F; Mon, 20 Nov 2023 23:29:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229661AbjKUH3q (ORCPT + 99 others); Tue, 21 Nov 2023 02:29:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjKUH3o (ORCPT ); Tue, 21 Nov 2023 02:29:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6839FC8 for ; Mon, 20 Nov 2023 23:29:40 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 208BAC433CA; Tue, 21 Nov 2023 07:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700551780; bh=iN2vy0G2QoY8JrojPMvjhZH+VwMN+5+iL06Cyoh3i6Y=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=juPN3fvLFhkMXE7swdscPFUoJTQpjOdIKJ6+jcN7edckVjdj7qX8yZ8OvzeHJUsbI TEUZLdyuJokywmmn/YCRBkoqCf+MA2afrLLumDnDpNGGtLiscT7wswjJnvVkDVEeMD WD8ncb5+ZgKCpCYBjvID/QLFedjFL+xocD3YcefeoIrol9dznOMD6MdOr3HVmiO1Wa lSBnUVRha0DVOdwU7JHWsmM1J9SyIrpgMHnQwsviQjw6dQAATrQLuwTuSa/9i9AMfc VofDp/0+Vxexz5tge6DpI77EZJNQ9KRetHgO0KkFP7Z7rvU5mkjWDEKLw5IQPDjpny zhFNLsxt7xnFA== Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 1AC3F27C0054; Tue, 21 Nov 2023 02:29:38 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 21 Nov 2023 02:29:38 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegkedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugeskhgvrhhnvghlrdhorhhgqeenucggtf frrghtthgvrhhnpedvveeigfetudegveeiledvgfevuedvgfetgeefieeijeejffeggeeh udegtdevheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrrhhnugdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddvkeehudej tddvgedqvdekjedttddvieegqdgrrhhnugeppehkvghrnhgvlhdrohhrghesrghrnhgusg druggv X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D5AA1B60089; Tue, 21 Nov 2023 02:29:36 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 MIME-Version: 1.0 Message-Id: <45997863-d817-48c7-ad46-8b47f5e0ce61@app.fastmail.com> In-Reply-To: <20231120215945.52027-4-pstanner@redhat.com> References: <20231120215945.52027-2-pstanner@redhat.com> <20231120215945.52027-4-pstanner@redhat.com> Date: Tue, 21 Nov 2023 08:29:15 +0100 From: "Arnd Bergmann" To: "Philipp Stanner" , "Bjorn Helgaas" , "Andrew Morton" , "Randy Dunlap" , "Jason Gunthorpe" , "Eric Auger" , "Kent Overstreet" , "Niklas Schnelle" , "Neil Brown" , "John Sanpe" , "Dave Jiang" , "Yury Norov" , "Kees Cook" , "Masami Hiramatsu" , "David Gow" , "Herbert Xu" , "Thomas Gleixner" , "wuqiang.matt" , "Jason Baron" , "Ben Dooks" , "Danilo Krummrich" Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 2/4] lib: move pci-specific devres code to drivers/pci/ Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 23:29:51 -0800 (PST) On Mon, Nov 20, 2023, at 22:59, Philipp Stanner wrote: > The pcim_*() functions in lib/devres.c are guarded by an #ifdef > CONFIG_PCI and, thus, don't belong to this file. They are only ever used > for pci and not generic infrastructure. > > Move all pcim_*() functions in lib/devres.c to drivers/pci/devres.c > > Suggested-by: Danilo Krummrich > Signed-off-by: Philipp Stanner > --- > drivers/pci/Makefile | 2 +- > drivers/pci/devres.c | 207 ++++++++++++++++++++++++++++++++++++++++++ > lib/devres.c | 208 +------------------------------------------ Since you are moving the pci_iomap() code into drivers/pci/ already, I'd suggest merging this one into the same file and keep the two halves of this interface together. Arnd