Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2775124pxb; Fri, 8 Oct 2021 15:14:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVUogQvLYf9tTVQ0KOpyeMoiQvWRw29Bm8kt+4MNIIOxwv5dHCqfE2gM71XIAQS+rs12r9 X-Received: by 2002:a17:90a:9404:: with SMTP id r4mr14437088pjo.240.1633731270162; Fri, 08 Oct 2021 15:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633731270; cv=none; d=google.com; s=arc-20160816; b=G82sR9LZp5TCxPO8D80FGoWWlWs7H0nuNjF3N1VPa9icjRlwQo0WGJ/FqCYkXyEqkX hcj9F+3U5TmxKLkHgOwNrrZ3ivNAftzmpl6E7TBhD3lUJojJg11qGsxV6fNJV+UvBYZ7 EvqvlypZrIURgPt6ZFOWbJOHOghHMse3JDo4N2lgssY+r4QzHbZ5tVD8v4Y8cWx/KnIN AHnP2wcWU9huVkDfjjofpoD9ajD+9xYcci91bzw3P1JTHahjxwkYX2bDNrY6EwyoDpBH lkX7rSKd1Sg39iHvKp4TbU/5ckGZShNMQNWbHqyefvRc82l6AEdk/dEI76JwPB5kb2ju rWTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=xNpRcyQjbhlVF8e+Grg/xhaXpilxM83MPgF1ympivO8=; b=o9jCT1W3tR6V1SrIw6a9SGWNI7e8Rp/p1ljKzuKfAXntygTY88YaIK9iU1M/XKbtC+ wL+J0vVvj1sIiJpWEpEHLGsMXkfcvXoAMjxpc7LHVGtl/RTeJl3P+IBzZR5CybxI6wW/ /2AtbXyAMcl48juEcyUu7rhRJuxhb9Lr7Seip1Dk4e0wNIpy7734Tthj6C57lu3tOfcu Q9UGxlEugTZvb69PZOvVTUopVUOHp5ySYJkv2S4kX131Kz1CaLgyC1iCAbbd1bvNxaw9 3/U/Nbo9Es03PiY11IlEL/607+Jg6jdFjPdeFCnXLIB65DLy/UwcFJIG2f3qE2taD8yV 71Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NfOQ1Byd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k15si760261pgg.579.2021.10.08.15.14.16; Fri, 08 Oct 2021 15:14:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NfOQ1Byd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243564AbhJHWPH (ORCPT + 99 others); Fri, 8 Oct 2021 18:15:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:57758 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243539AbhJHWPF (ORCPT ); Fri, 8 Oct 2021 18:15:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8320760FC1; Fri, 8 Oct 2021 22:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633731189; bh=wNgDKDIIK358RGjNmCHeTM6eGu9i1NUq2a4Cx1Zn5ec=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=NfOQ1BydTGGErjNKi2rvvo23VwEfRECB5hinU3fTD/YWGT9/wIoxtnDy0UMOb9F4Z Tzo85ZiIClqd9Br3sFdFgZc04avS7YFvKqBTXL1DiIl4OuLjBm9qY2WvQp8l+8T0B5 AthcCY3b9E2A3C/eMVa0xojj/6onvABaY40UGivKWe/p1obD6p8Y4Bun00Fgp1s8zp RGlUjv6rmc5Hni8/2Ju6cxQJcUjT0b7O9dwy0Z94iGg1CuBBYqPTMaPsBt0GNoUzlI HXbK/hR3Bd6/t9zuyP1NSYD6n8jVOsNG5w7uN4sQ0R/gVLZtxJfARJL0iO21pHUVd9 vv+eJeOuhHiyg== Date: Fri, 8 Oct 2021 17:13:08 -0500 From: Bjorn Helgaas To: Niklas Schnelle Cc: Bjorn Helgaas , Benjamin Herrenschmidt , Michael Ellerman , Paul Mackerras , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v3] PCI: Move pci_dev_is/assign_added() to pci.h Message-ID: <20211008221308.GA1383868@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210720150145.640727-1-schnelle@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 05:01:45PM +0200, Niklas Schnelle wrote: > The helper function pci_dev_is_added() from drivers/pci/pci.h is used in > PCI arch code of both s390 and powerpc leading to awkward relative > includes. Move it to the global include/linux/pci.h and get rid of these > includes just for that one function. > > Signed-off-by: Niklas Schnelle > --- > Since v1 (and bad v2): > - Fixed accidental removal of PCI_DPC_RECOVERED, PCI_DPC_RECOVERING > defines and also move these to include/linux/pci.h > > arch/powerpc/platforms/powernv/pci-sriov.c | 3 --- > arch/powerpc/platforms/pseries/setup.c | 1 - > arch/s390/pci/pci_sysfs.c | 2 -- > drivers/pci/hotplug/acpiphp_glue.c | 1 - > drivers/pci/pci.h | 15 --------------- > include/linux/pci.h | 15 +++++++++++++++ > 6 files changed, 15 insertions(+), 22 deletions(-) I dropped this one because I think a subsequent patch removed the use in arch/powerpc, so if you still need this, it probably needs to be updated to at least drop those hunks.