Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp218420rdf; Tue, 21 Nov 2023 00:03:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHT8ZzXEjdm2niG/Zkg7wi6B09ExewT8g89oFPI6YlNvqSAt3ncXp+KDjx5meNmDqBt/Vb0 X-Received: by 2002:a05:6a00:a18:b0:690:d620:7801 with SMTP id p24-20020a056a000a1800b00690d6207801mr9421456pfh.11.1700553814187; Tue, 21 Nov 2023 00:03:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700553814; cv=none; d=google.com; s=arc-20160816; b=YZSmXUoS390jTsNHs21hwYHR6t6cwWeSHdpLqB4S9cHynwmvIUjDPKk6t50h0vBBEm CbWJIze31z7uVJEfdZvRFEilC8QvtQOwrtdP6Mxgf+6v9mE1OIqbn+gn3HtJ84InFWz3 eFamfMSzAewu0k9NuXxAJdch61GBhywn7hC9Xla/MDyltL8yARFleuWJR1ujXT8mYz0s T3Vu/jv9xd9J2D/inLHG4O+XJEI0rd5b9haa5vZZmDZZFvHHffdxbE6igbDEIFzTU40t NhdtAfDHchFZmQWAE0rHKdNOEL0FYYY7aujeVCIjZRoKHhbhDZdPVI4bUfjnPYwCr2jf i1qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=T40r14k+GJH8froFyeHTEYys3h09bU1RbAgHUM0HR7M=; fh=HDfJWqHse2bKyU9EDSbTHrqntK1nbN9tw6ZhPRmqqCY=; b=ekH/Bw3t6IhRGpzh6XPEqiM/4U5CVTS8ULcjeK0MSUp7WdXdsb84AUz5QK6uls6WoU 4lYC8AoEOfff+OfjP1Fw8I3276uDsxaKe3tZPMwysGbeqrHCKk2PdSSlFafYtABYli9L xXwO3LZkDHITTdnLiPz82KDGdKq+mo62UwDZW0S2jYajPnl92J1KipR/e0ryW04m9ah4 19Xo+nbN6VQgr04XAHQpwayeeCDo5VdKcjy4i4sRRA4vN6ZnxTLgM8SXHp4OsBEX5yt5 xWcEV7/KlNmFTJfOtooV1qAqHJb0mYVS550sa/VeCsiaG4cSmtn6PGsjkUHls7FrXf+2 r7hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gxuvrpU4; 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=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d1-20020a056a00244100b006c3b70b6433si9899190pfj.206.2023.11.21.00.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:03:34 -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=@redhat.com header.s=mimecast20190719 header.b=gxuvrpU4; 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=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 77CD9807C6F8; Tue, 21 Nov 2023 00:01:24 -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 S229620AbjKUIBQ (ORCPT + 99 others); Tue, 21 Nov 2023 03:01:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKUIBO (ORCPT ); Tue, 21 Nov 2023 03:01:14 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98F4DBE for ; Tue, 21 Nov 2023 00:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700553668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T40r14k+GJH8froFyeHTEYys3h09bU1RbAgHUM0HR7M=; b=gxuvrpU4xtzuPWxD8NU/MarKSVkTQafWilbh0DOPdctVud2yCtkVg52/x8i42M3II2gHHj VpI6NYR4a1KQRBGgx10c97vGfmjLjhtjhQfv5RM64xOXhl6tijJC9+SyPHKllzw6agznx4 XTfnSkOcMmdaqJTALUbCTwT2S9UPABM= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-600-RThD87WoPOSrz0bjFwON3g-1; Tue, 21 Nov 2023 03:01:02 -0500 X-MC-Unique: RThD87WoPOSrz0bjFwON3g-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-778b5c628f4so71627485a.0 for ; Tue, 21 Nov 2023 00:01:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700553662; x=1701158462; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=T40r14k+GJH8froFyeHTEYys3h09bU1RbAgHUM0HR7M=; b=maQhakdCge+Yx87lYAkfQljfXZdfLUPSNPBi8Niq0IxahlElUkA1G5m+iJK5ygX/14 ri5UHLi+giGQR4m4yh69PD1OA+kqANWANyStw0ZN7k+9vHUJFi0qqWyzKELIIwgwKHEs 1XWGogUXPmdTobAjFKvJr0MWoW3xSfCAefBwcx9j0R6xeomI12Affr81034SCJQDo7l3 SxarS8mWiWfvq3j4gdBgQLHEvOVZX64RfLVg8/rqGAGJvjc2SqErQoGyTvFO8Xe/0qfW SE8fXiHfrnUtA2mNtur5y+a06oCS72CT9iOf1y/HN3lbBqzSnsHXvnbhZ1Y5LE+ZGW2N u0pA== X-Gm-Message-State: AOJu0YyQ4+Cr9Smx4ruD5MIX8nf3nbCUUuzBhHc+Iaz0otmBvklotCMC eT45w6XLskIbWtU28Ahu9PGykdqGYow01yxX0KGu6UbB9+HH2BFwB/P4OHtlZkVu2wJ9aPKcBCt daw6arKDUwVPdIYNp4TTnSevK X-Received: by 2002:a05:620a:1993:b0:776:f188:eee6 with SMTP id bm19-20020a05620a199300b00776f188eee6mr12064289qkb.2.1700553662434; Tue, 21 Nov 2023 00:01:02 -0800 (PST) X-Received: by 2002:a05:620a:1993:b0:776:f188:eee6 with SMTP id bm19-20020a05620a199300b00776f188eee6mr12064272qkb.2.1700553662102; Tue, 21 Nov 2023 00:01:02 -0800 (PST) Received: from pstanner-thinkpadt14sgen1.remote.csb (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id p25-20020a05620a113900b00767dcf6f4adsm3394581qkk.51.2023.11.21.00.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 00:01:01 -0800 (PST) Message-ID: Subject: Re: [PATCH 2/4] lib: move pci-specific devres code to drivers/pci/ From: Philipp Stanner To: Arnd Bergmann , 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, pstanner@redhat.com Date: Tue, 21 Nov 2023 09:00:58 +0100 In-Reply-To: <45997863-d817-48c7-ad46-8b47f5e0ce61@app.fastmail.com> References: <20231120215945.52027-2-pstanner@redhat.com> <20231120215945.52027-4-pstanner@redhat.com> <45997863-d817-48c7-ad46-8b47f5e0ce61@app.fastmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_WEB,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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]); Tue, 21 Nov 2023 00:01:24 -0800 (PST) On Tue, 2023-11-21 at 08:29 +0100, Arnd Bergmann wrote: > 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. > >=20 > > Move all pcim_*() functions in lib/devres.c to drivers/pci/devres.c > >=20 > > Suggested-by: Danilo Krummrich > > Signed-off-by: Philipp Stanner > > --- > > =C2=A0drivers/pci/Makefile |=C2=A0=C2=A0 2 +- > > =C2=A0drivers/pci/devres.c | 207 > > ++++++++++++++++++++++++++++++++++++++++++ > > =C2=A0lib/devres.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 20= 8 +-------------------------------------- > > ---- >=20 > 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. I'd argue that they are as much together as they were before: Previously: * PCI-IOMAP-code in folder lib/ in its own file (pci_iomap.c) * PCI-Devres-code in folder lib/ in a distinct file (devres.c) Now: * PCI-IOMAP-code in folder drivers/pci/ in its own file (iomap.c) * PCI-Devres-code in folder drivers/pci/ in its own file (devres.c) Or am I misunderstanding something? P. >=20 > =C2=A0=C2=A0=C2=A0=C2=A0 Arnd >=20