Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217907/?format=api
{ "id": 2217907, "url": "http://patchwork.ozlabs.org/api/patches/2217907/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260330214549.16157-1-julianbraha@gmail.com/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api", "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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260330214549.16157-1-julianbraha@gmail.com>", "list_archive_url": null, "date": "2026-03-30T21:45:49", "name": "pci: dead code cleanup in Kconfig", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e688289d8e02bb8a665b66e3c609a3c3aec8cb8b", "submitter": { "id": 81229, "url": "http://patchwork.ozlabs.org/api/people/81229/?format=api", "name": "Julian Braha", "email": "julianbraha@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260330214549.16157-1-julianbraha@gmail.com/mbox/", "series": [ { "id": 498101, "url": "http://patchwork.ozlabs.org/api/series/498101/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=498101", "date": "2026-03-30T21:45:49", "name": "pci: dead code cleanup in Kconfig", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498101/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217907/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217907/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-51500-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=peVHHkjk;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-51500-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=\"peVHHkjk\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.128.52", "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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fl4c42tB7z1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 08:47:48 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 9CB18304F2EA\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 21:46:02 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D769B3A6F17;\n\tMon, 30 Mar 2026 21:46:01 +0000 (UTC)", "from mail-wm1-f52.google.com (mail-wm1-f52.google.com\n [209.85.128.52])\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 5D6D03A6B6A\n\tfor <linux-pci@vger.kernel.org>; Mon, 30 Mar 2026 21:45:59 +0000 (UTC)", "by mail-wm1-f52.google.com with SMTP id\n 5b1f17b1804b1-486fb439299so46148175e9.0\n for <linux-pci@vger.kernel.org>; Mon, 30 Mar 2026 14:45:59 -0700 (PDT)", "from nixos-office (195-23-151-163.net.novis.pt. [195.23.151.163])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48722d2366dsm305888025e9.10.2026.03.30.14.45.56\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 30 Mar 2026 14:45:57 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774907161; cv=none;\n b=l35cmioVhIzwuw0Gt7oKtl2xSPcWOwcgXwEKTH+/JgwhfIy5iH9vj1emHWx9dajC3z6UmYQL+dna0fqn2HbDPEOTYS6oFSgzwsrwlL/EiK6Gqx3SA50V03dotmVH4ECsmPXj1PRReL6Cpw4DXUHI8tezz0aYjdDcRQsh2HuypDI=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774907161; c=relaxed/simple;\n\tbh=na3CNjZAxR1UFCvbZH9HyTPvuYJakaPivkdm8gPra6c=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=mv8vo/1v0ag+A4zEIDN6/txC7Au5En6vcKRsYOQnrA007o2UAoCxERnj3leJGS/Fj2VACkrRd8x1GK8u5D6E3RGI8B5i4vdvapGBojawffwZJbmp4jMvt4v1U7g4IjsGGL2yyWIhX2QJHgbxvAAFZjZGTPG2auk4g7Rd0tWP7Jg=", "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=peVHHkjk; arc=none smtp.client-ip=209.85.128.52", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774907158; x=1775511958;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:sender:from:to:cc:subject:date:message-id:reply-to;\n bh=k94Qbhxpduj8Aq/R0uxlYLOlSwyCHChCKKV0ReNwEMM=;\n b=peVHHkjkWgmSVIPPN+PTThkcz/9igpNr21YClND65PHTU3BXWb9zPMm1sbkrTrNv3q\n JeLxWFtRNtSTzhkKdEF5kb3cuicNRk0uEq2Dl70lyfwZxcNpQDyJVHFN1h5QWzhDczxs\n bBQJA+tGPjn/nOxqpodi/y0xOtX1b8gb9KkDXZcOhisd+DdL3sW/Sf5iq5LKDFsgcf1J\n 5q9u8HmyK7/R+19iygE3SfJGd0AHZivSlrx5YtwbTbceXq0TC5pGwDx5k5npcE7KcqOL\n vh3KzjVFRaybJj0i0emkwyTC3O65Ua6u2QRyzlZ0cCd6j48eEgjkpwJqApg1SvEE6HWO\n RKdw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774907158; x=1775511958;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:sender:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=k94Qbhxpduj8Aq/R0uxlYLOlSwyCHChCKKV0ReNwEMM=;\n b=KOQK8kfccmYbl7lhUkb+KxB2OQGw+QiLzny407MIj9ZJlloev6wNHHb3ZSnlCkMprH\n l10eX+DZXxf3rHSD1ozK34WtzjfdyY6HTZlJWSKuXkyFjN601y3/s7JyD3JTW6kUsyb4\n qjz89N4OelT3xMH8EISaB8joRkk9+aWBVvvI5bGDEHyentWl2YAky/j3FlfRb5WaQY8v\n EVrOAOtXg+ZMJPQNHAXOP+Ngfi3vXxUj4JyHSRYp5P73q/62HVUhsU6AC9QeMB8z4tRS\n LFyHF7dWGtx0ved8GuQOCOYpQJr1ChTeH2Yu450DZSI9uVyi8lzZA+/CnZIYSZUdGcUl\n 5z7A==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCVwwXIfELf2RjG4rm9Bj5N1JuF1L7cvoo8nDyws8lym2yqM8Tcfgao+ZWzrldk2fiRG47vjwVDfroo=@vger.kernel.org", "X-Gm-Message-State": "AOJu0Yz75faXc0uPSlfKtw9+vxFUX0U+BiQGpyByRJ6EsGdzCJmYZerl\n\t9hPy/VdOu6F0nrHqd9LadGh2cz7r65p0cKMHXLkRWvgDr4yw6a+fvl2nK2s5wavzNjJcTw==", "X-Gm-Gg": "ATEYQzwNI2qyf+ZTCGynpmt00+X8iIUuhUvvglSw3EhSRTME9O+onJ0wVBoLfoSd+fe\n\tB8ljaucnwu0NBirj5jdbv5xipPimV/hZpvIxEcvpMkLNtYnQ+iB94Z4DPzrFh8utenCuJeownVQ\n\tndAYRjEmBn0hiPdFCt/mnD43r49hZY1AO+Wk4rIag2mK/Z0Pr5etHroow5S0iCLmjstpMylwQ/y\n\tjsInJBSvuTj/f5xcbJKXSgkVEnxTQwYFbhAwB++xIfxg1qUGit0gsWtAI+KOLb3xqn+/1UU//uc\n\tjpd15TZ1FMS6vN3ZfxhwpHHO995qXLdId1AubuusUmj7ecMv2ED5xekCeNKWVsD9tpzOKMn4vin\n\t86T/FyHS07YvQeSGl9jj7ln8cpcyAxpV+vp7Z1NsP4L5y5/Da+TU6Qw2QQhG3WVPlz/LhkZ9FL9\n\tt59VVJTrAPxSChYRkGfokg/hPBFqI36cCXJgGIq3vAZ64CRvjm9FmWROk=", "X-Received": "by 2002:a05:600c:8b70:b0:487:467:42a2 with SMTP id\n 5b1f17b1804b1-48727f7b571mr239745795e9.18.1774907157688;\n Mon, 30 Mar 2026 14:45:57 -0700 (PDT)", "Sender": "Julian Braha <julian.braha@gmail.com>", "From": "Julian Braha <julianbraha@gmail.com>", "To": "bhelgaas@google.com,\n\trobh@kernel.org", "Cc": "linux-kernel@vger.kernel.org,\n\tlinux-pci@vger.kernel.org,\n\tJulian Braha <julianbraha@gmail.com>", "Subject": "[PATCH] pci: dead code cleanup in Kconfig", "Date": "Mon, 30 Mar 2026 22:45:49 +0100", "Message-ID": "<20260330214549.16157-1-julianbraha@gmail.com>", "X-Mailer": "git-send-email 2.51.2", "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", "Content-Transfer-Encoding": "8bit" }, "content": "There is already an 'if PCI' condition wrapping several config options\ne.g. PCI_DOMAINS and VGA_ARB, making the 'depends on PCI' statement for\neach of these a duplicate dependency (dead code).\n\nI propose leaving the outer 'if PCI...endif' and removing the individual\n'depends on PCI' statement from each option.\n\nThis dead code was found by kconfirm, a static analysis tool for Kconfig.\n\nSigned-off-by: Julian Braha <julianbraha@gmail.com>\n---\n drivers/pci/Kconfig | 12 +++---------\n 1 file changed, 3 insertions(+), 9 deletions(-)", "diff": "diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig\nindex e3f848ffb52a..33c88432b728 100644\n--- a/drivers/pci/Kconfig\n+++ b/drivers/pci/Kconfig\n@@ -31,7 +31,6 @@ if PCI\n \n config PCI_DOMAINS\n \tbool\n-\tdepends on PCI\n \n config PCI_DOMAINS_GENERIC\n \tbool\n@@ -255,7 +254,7 @@ config PCI_DYNAMIC_OF_NODES\n choice\n \tprompt \"PCI Express hierarchy optimization setting\"\n \tdefault PCIE_BUS_DEFAULT\n-\tdepends on PCI && EXPERT\n+\tdepends on EXPERT\n \thelp\n \t MPS (Max Payload Size) and MRRS (Max Read Request Size) are PCIe\n \t device parameters that affect performance and the ability to\n@@ -272,20 +271,17 @@ choice\n \n config PCIE_BUS_TUNE_OFF\n \tbool \"Tune Off\"\n-\tdepends on PCI\n \thelp\n \t Use the BIOS defaults; don't touch MPS at all. This is the same\n \t as booting with 'pci=pcie_bus_tune_off'.\n \n config PCIE_BUS_DEFAULT\n \tbool \"Default\"\n-\tdepends on PCI\n \thelp\n \t Default choice; ensure that the MPS matches upstream bridge.\n \n config PCIE_BUS_SAFE\n \tbool \"Safe\"\n-\tdepends on PCI\n \thelp\n \t Use largest MPS that boot-time devices support. If you have a\n \t closed system with no possibility of adding new devices, this\n@@ -294,7 +290,6 @@ config PCIE_BUS_SAFE\n \n config PCIE_BUS_PERFORMANCE\n \tbool \"Performance\"\n-\tdepends on PCI\n \thelp\n \t Use MPS and MRRS for best performance. Ensure that a given\n \t device's MPS is no larger than its parent MPS, which allows us to\n@@ -303,7 +298,6 @@ config PCIE_BUS_PERFORMANCE\n \n config PCIE_BUS_PEER2PEER\n \tbool \"Peer2peer\"\n-\tdepends on PCI\n \thelp\n \t Set MPS = 128 for all devices. MPS configuration effected by the\n \t other options could cause the MPS on one root port to be\n@@ -317,7 +311,7 @@ endchoice\n config VGA_ARB\n \tbool \"VGA Arbitration\" if EXPERT\n \tdefault y\n-\tdepends on (PCI && !S390)\n+\tdepends on !S390\n \tselect SCREEN_INFO if X86\n \thelp\n \t Some \"legacy\" VGA devices implemented on PCI typically have the same\n@@ -340,4 +334,4 @@ source \"drivers/pci/endpoint/Kconfig\"\n source \"drivers/pci/switch/Kconfig\"\n source \"drivers/pci/pwrctrl/Kconfig\"\n \n-endif\n+endif # PCI\n", "prefixes": [] }