{"id":2219400,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2219400/?format=json","project":{"id":28,"url":"http://patchwork.ozlabs.org/api/1.0/projects/28/?format=json","name":"Linux PCI development","link_name":"linux-pci","list_id":"linux-pci.vger.kernel.org","list_email":"linux-pci@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<b0ce592d-c34c-4e0b-b389-4e346b3a0c44@gmail.com>","date":"2026-04-02T22:18:15","name":"[2/2] PCI: Remove no_pci_devices","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"3674bb23c8ef02a86e1ad4a6385d2259c24ae1dc","submitter":{"id":65365,"url":"http://patchwork.ozlabs.org/api/1.0/people/65365/?format=json","name":"Heiner Kallweit","email":"hkallweit1@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-pci/patch/b0ce592d-c34c-4e0b-b389-4e346b3a0c44@gmail.com/mbox/","series":[{"id":498556,"url":"http://patchwork.ozlabs.org/api/1.0/series/498556/?format=json","date":"2026-04-02T22:15:34","name":"PCI: Remove no_pci_devices","version":1,"mbox":"http://patchwork.ozlabs.org/series/498556/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2219400/checks/","tags":{},"headers":{"Return-Path":"\n <linux-pci+bounces-51788-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pci@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=jsNYtb54;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-pci+bounces-51788-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"jsNYtb54\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.128.49","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"],"Received":["from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmx8204n1z1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 09:18:26 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 8676F30229B3\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  2 Apr 2026 22:18:23 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 904DC38238B;\n\tThu,  2 Apr 2026 22:18:20 +0000 (UTC)","from mail-wm1-f49.google.com (mail-wm1-f49.google.com\n [209.85.128.49])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 22E3D34B437\n\tfor <linux-pci@vger.kernel.org>; Thu,  2 Apr 2026 22:18:18 +0000 (UTC)","by mail-wm1-f49.google.com with SMTP id\n 5b1f17b1804b1-48891776099so14319505e9.2\n        for <linux-pci@vger.kernel.org>; Thu, 02 Apr 2026 15:18:18 -0700 (PDT)","from ?IPV6:2003:ea:8f19:9500:c168:ad27:2fdd:9334?\n (p200300ea8f199500c168ad272fdd9334.dip0.t-ipconnect.de.\n [2003:ea:8f19:9500:c168:ad27:2fdd:9334])\n        by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4888b142319sm90294465e9.7.2026.04.02.15.18.16\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Thu, 02 Apr 2026 15:18:16 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775168300; cv=none;\n b=B4Pdii8KDvyExG6S9UyRiA873ZTTCYskyBZRYiGLHGVeEwkv7pZEWgVVdAZVau6qgi7TaTGZgYz2u6oRYkqBSxS7lH9P3nLh/JknQYjT4O2TZEtv9Y4Q9eBMwjM73npa4zdiJn1ZmUkoaPDG57cEkV59p/G7lK2Vj6EKkW2m7qo=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775168300; c=relaxed/simple;\n\tbh=ss6SBO4aBnxZfQtgA58c8zVrUCdwWva/CrkOsUnHsXc=;\n\th=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References:\n\t In-Reply-To:Content-Type;\n b=jqrx8Tys+GSeoDt/K0+FjthzF1taV3BKdulAl560+ioagQM9aEHYh6rXsnOFnd4BiQ/+hKV4qmB7zBkwXgeow19ByphexGzKfOsseYBDVpqjXdzQ/2xShQ/IxDRVCFJhsqlfJmsdpGxf1p1zCFKYIsycltMx/yQKHF2XhPUET4E=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=jsNYtb54; arc=none smtp.client-ip=209.85.128.49","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1775168297; x=1775773097;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:in-reply-to:content-language:references\n         :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=DbIp1ob/MgbLUlDr1JF2AIWekXiUFRu+YrNw5NosV6o=;\n        b=jsNYtb54jVsaacCdNUNvnudksp/3MPqlOCgkgAFDf/isEzdjXo2nSznF6UgohIPnGK\n         I8SALRnAjhrI9gehCuX/rMqBbu09sdR0kE2qKCQlvCajQgXCk65Gxicd0lGJICtEqdNR\n         jV4E525n49fo389jf5kX519zMYzIa1x/VfpZRn6jD5ah0b2ZMVbFV9OOtCeDkcPUjPw6\n         TM3jb+C4YSgBMzVWNWhOgQcLuwkdg4Lp3FoTghGe9UDvX+3PNreMAdn0QjeJH7WHHZKg\n         mEjgyJBmwHqobi/yP8sg2PUjLuv4E/V6WQTi8I++sYE6IpdGcPAUZK9k1PtAwPv7cpXu\n         pMZw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775168297; x=1775773097;\n        h=content-transfer-encoding:in-reply-to:content-language:references\n         :cc:to:from:subject:user-agent:mime-version:date:message-id:x-gm-gg\n         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n        bh=DbIp1ob/MgbLUlDr1JF2AIWekXiUFRu+YrNw5NosV6o=;\n        b=QMR6Dke789hU32Tk0FViEA/tVKarrMWXK57P5w0zABS95a/kv3Z360ZDd3X5+PnmqW\n         vlDlmfTeVlUbO359Cx4EOCFiVCCk5LosnxWnydNhGBunhf7xzWt0gNdzJfieKOmFmVcM\n         hhKPhwBiv07pXQsf1d1G3TGJEtiKzKmC+FDp10eL7II+/KTydq+CKadanJC2pFZRECDP\n         7kgrJMg6DrIizRZTfKinUsGzcb91e24K+9GNZGQz7N7D9TZbhnsDJvjt+z4cC3rDnucp\n         4na4OTWpcBvvY/EwHBZ76dkXwRaolwcJu5o0Hix+cXD3pUbulmveEa7OgzYHojbghJaJ\n         Lbpw==","X-Forwarded-Encrypted":"i=1;\n AJvYcCXTYSlMqCOz6BeSBwqAhWsIWFQAnhuZCdss4gA18gBOq0dkbTrVueRjYJRjdq3p1dKmEcFAtzbVOLk=@vger.kernel.org","X-Gm-Message-State":"AOJu0Yxt3trkFLFDs3ozpuwNQ6kxv0m10GURdvpE9ZbobawB408vHcvz\n\t41pRaavqHhBjlmFLvpg9f0hZ26FzQDGyBrBX+EZq+gzMHZVZOXpjtPIH","X-Gm-Gg":"ATEYQzz8BiYb7DvlkoOQke9Qb/sk73lGB7HoM9UoBVy7qAvqs0P232oTz9nOA3hG+sd\n\tfGLbhv81pYdubXBBmZ2GzBUYkIjoXcbXlNb54N67GIi6hvnvlcUNImHcpQv/BxBx7lO6mxKG6kW\n\tCPJvtbAZ8/b47kV1lRhX+t7n6aed35765CvP2sL1PsGpzPxrdtG4QMuFoH1B2F5MUNd27swiPSt\n\tEAWPBYm2VeW+eUC8GD18x9BdJzrYV8CAKX3x13C+la9bvmcJp0ivdzkWIGvRfafBX6gcm9C94G7\n\t5y11zpBJbSQji08iTRXpcT+9rDohLMeUCaMWuD9qaOnPqnxZnnGtfZFasrKh1gaaWAwzqKEIVdv\n\tOQG+WayXzD8IrEOqoB5udTSB9pUx5vKzLkUuHW1CkPjdJPSXxU/hn+uKpXIEmujGORuq4bwQAbr\n\t4chwbx6uW1ZPdUoZUea6dWcr+taIFLnRFWsufTVUY07VeD2muFUvP2QV5l5JMMzqDMi6nHGJeLJ\n\twytSLEe8zqFzQm3REpSefQbmdQNfB2sQYZt7YqUDKZZSWky2tWUDbMeqa+2ZzWu0Q==","X-Received":"by 2002:a05:600c:6305:b0:486:d76c:fa57 with SMTP id\n 5b1f17b1804b1-4889978da75mr10428725e9.17.1775168297272;\n        Thu, 02 Apr 2026 15:18:17 -0700 (PDT)","Message-ID":"<b0ce592d-c34c-4e0b-b389-4e346b3a0c44@gmail.com>","Date":"Fri, 3 Apr 2026 00:18:15 +0200","Precedence":"bulk","X-Mailing-List":"linux-pci@vger.kernel.org","List-Id":"<linux-pci.vger.kernel.org>","List-Subscribe":"<mailto:linux-pci+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pci+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"[PATCH 2/2] PCI: Remove no_pci_devices","From":"Heiner Kallweit <hkallweit1@gmail.com>","To":"Dmitry Torokhov <dmitry.torokhov@gmail.com>,\n Bjorn Helgaas <bhelgaas@google.com>","Cc":"\"open list:HID CORE LAYER\" <linux-input@vger.kernel.org>,\n \"linux-pci@vger.kernel.org\" <linux-pci@vger.kernel.org>","References":"<dd9ea7c1-44f5-4364-a3d5-885b1c99159f@gmail.com>","Content-Language":"en-US","In-Reply-To":"<dd9ea7c1-44f5-4364-a3d5-885b1c99159f@gmail.com>","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"7bit"},"content":"After having removed the last usage of no_pci_devices(), this function\ncan be removed.\n\nSigned-off-by: Heiner Kallweit <hkallweit1@gmail.com>\n---\n drivers/pci/probe.c | 17 -----------------\n include/linux/pci.h |  3 ---\n 2 files changed, 20 deletions(-)","diff":"diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c\nindex bccc7a4bd..19d73f613 100644\n--- a/drivers/pci/probe.c\n+++ b/drivers/pci/probe.c\n@@ -67,23 +67,6 @@ static struct resource *get_pci_domain_busn_res(int domain_nr)\n \treturn &r->res;\n }\n \n-/*\n- * Some device drivers need know if PCI is initiated.\n- * Basically, we think PCI is not initiated when there\n- * is no device to be found on the pci_bus_type.\n- */\n-int no_pci_devices(void)\n-{\n-\tstruct device *dev;\n-\tint no_devices;\n-\n-\tdev = bus_find_next_device(&pci_bus_type, NULL);\n-\tno_devices = (dev == NULL);\n-\tput_device(dev);\n-\treturn no_devices;\n-}\n-EXPORT_SYMBOL(no_pci_devices);\n-\n /*\n  * PCI Bus Class\n  */\ndiff --git a/include/linux/pci.h b/include/linux/pci.h\nindex 8861eeb43..cc98713e3 100644\n--- a/include/linux/pci.h\n+++ b/include/linux/pci.h\n@@ -1201,8 +1201,6 @@ extern const struct bus_type pci_bus_type;\n /* Do NOT directly access these two variables, unless you are arch-specific PCI\n  * code, or PCI core code. */\n extern struct list_head pci_root_buses;\t/* List of all known PCI buses */\n-/* Some device drivers need know if PCI is initiated */\n-int no_pci_devices(void);\n \n void pcibios_resource_survey_bus(struct pci_bus *bus);\n void pcibios_bus_add_device(struct pci_dev *pdev);\n@@ -2140,7 +2138,6 @@ static inline struct pci_dev *pci_get_base_class(unsigned int class,\n static inline int pci_dev_present(const struct pci_device_id *ids)\n { return 0; }\n \n-#define no_pci_devices()\t(1)\n #define pci_dev_put(dev)\tdo { } while (0)\n \n static inline void pci_set_master(struct pci_dev *dev) { }\n","prefixes":["2/2"]}