{"id":2218916,"url":"http://patchwork.ozlabs.org/api/1.0/covers/2218916/?format=json","project":{"id":15,"url":"http://patchwork.ozlabs.org/api/1.0/projects/15/?format=json","name":"Ubuntu Kernel","link_name":"ubuntu-kernel","list_id":"kernel-team.lists.ubuntu.com","list_email":"kernel-team@lists.ubuntu.com","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260402025553.512322-1-noah.wager@canonical.com>","date":"2026-04-02T02:55:52","name":"[SRU,N,0/1] Compile error due to nonexistent struct member with CONFIG_PCI_EPF_TEST","submitter":{"id":88673,"url":"http://patchwork.ozlabs.org/api/1.0/people/88673/?format=json","name":"Noah Wager","email":"noah.wager@canonical.com"},"series":[{"id":498422,"url":"http://patchwork.ozlabs.org/api/1.0/series/498422/?format=json","date":"2026-04-02T02:55:52","name":"Compile error due to nonexistent struct member with CONFIG_PCI_EPF_TEST","version":1,"mbox":"http://patchwork.ozlabs.org/series/498422/mbox/"}],"headers":{"Return-Path":"<kernel-team-bounces@lists.ubuntu.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=geHEFaOP;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmRM870hzz1yGY\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 13:56:20 +1100 (AEDT)","from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1w88Dz-0003qi-Nv; Thu, 02 Apr 2026 02:56:03 +0000","from smtp-relay-internal-1.internal ([10.131.114.114]\n helo=smtp-relay-internal-1.canonical.com)\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <noah.wager@canonical.com>)\n id 1w88Dx-0003qG-Vz\n for kernel-team@lists.ubuntu.com; Thu, 02 Apr 2026 02:56:02 +0000","from mail-pl1-f198.google.com (mail-pl1-f198.google.com\n [209.85.214.198])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id C3B513F13F\n for <kernel-team@lists.ubuntu.com>; Thu,  2 Apr 2026 02:56:01 +0000 (UTC)","by mail-pl1-f198.google.com with SMTP id\n d9443c01a7336-2b24de0a376so1446035ad.2\n for <kernel-team@lists.ubuntu.com>; Wed, 01 Apr 2026 19:56:01 -0700 (PDT)","from localhost ([2601:602:9200:9aaf:662a:38f8:a81e:aa40])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b27472d618sm10896995ad.12.2026.04.01.19.55.58\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 01 Apr 2026 19:55:58 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1775098561;\n bh=MlG5rVq2KJLcZzjAetI4Vk2yHs22YX61qMF06XfQAnA=;\n h=From:To:Subject:Date:Message-ID:MIME-Version;\n b=geHEFaOPrIsMgB4AgDWEJYuqsJTpwWomwrxnzEqJ9AUR66HyRpuchnd40kWFp7qgk\n oyhkYf6dSdhlMnKk/WARcjQOmPqg0UGJ+ISAbEitBp/KJTnkMXX4xjOOrsUq36tghq\n ILit0UVdx6PmTuyRN3z0mYMaOPQP3u5Ifo9o08AzcDhrbEOmcMQersaDjxd6NnSiQ9\n Ao5dUsHmURDogxvBffz6iA/tyia+Cv0Eva3diw38JD0tg3RDa/ao8Gfuy2elxjI9X2\n 0/eJccXEU2um2UDibCK8qcpDnT9q0tBDHC3CC2g1RUiUolOr+psu4PGZ2ZzoAUZHMa\n 17yuX5ATe1bvKlhPZ2u9yNY+XBtqHZg2hSnD6UJMZfDGt3sTJ5nrjvCp/wL+Qw2Wdz\n HKsKInI63w1btDGc+8UgLv0pBnRnEWvRvi+D7/weqWFTNs2mI3/hid4VXkixnnau1u\n X3MUBScq78nFLyfuio9rjUaskD0zgMBojWiWGrrWOm3/hAOx2Bfca1OS0d9yA7H9mF\n Kvhr6Buq+STkFdn/Ob+fP86HMhSwR9MxgVhr8+21HgSiLBYl7OgvP6WZq3Ps4P7FWM\n Rl8A1ySSTI//7znUsvyn+xgPYIzl/sNVm+dO263iykiGvz9aAuQWMKnQyEmkH2Q/QL\n rZE9O5iTAeYoQeinkyVUDoMk=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775098559; x=1775703359;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=MlG5rVq2KJLcZzjAetI4Vk2yHs22YX61qMF06XfQAnA=;\n b=YEycWxdjmdghZZqerxg+8OzhalJ9ANV+VFXWu7YP831cZ6Ov4NYJ6PBdVd2qYTzpdl\n RdrYme6SDNo8slIXlyoNV0zr20Y/0P8l+A6B3Q/RAcJG+zpj2J9oTvliZqON6l68jxTj\n hCcEv7VWFieZ1ve0M85Yilod5U8BO3aYBwzGWPPHXLjKXBHFUurioKJyCbNkddRakSeK\n VJLWDd4BIHxvYpdynji3YSBX4bI2qoUrMf9/D6lBwfsPSIkHEUFou5azVQ4WV6BQ0h7i\n 5sOQ2DSvaNPAG4ABFahE+dDm6BBdy5uCo8IqbmCPxJmnxs0z41gKDR26iVrtqxgD4loc\n sXzg==","X-Gm-Message-State":"AOJu0YyZW439Bu6c/R6roUtQcAByXa017QMS2ZMMX9C6wLTu10cKL8HZ\n 04owFotA41wPCegy9F7DqmzOHI8uoZtJnlnZ5ZkcVY5aZuehZdtEa0KH1dR3OxZ9S3tbPlrYmlt\n jYMJvh13C4R1QQpOxIRJYuieX3zYvv8dMNThTSVmCP81zSGfzJIPqaL8KtYUUtS9yMf8Gsu126v\n ih7X8uMMhH2Sxnkg==","X-Gm-Gg":"ATEYQzws06+pb5z/mlUsuWkAH+aHaOIk5raH5d+AdhVciAmC1oalR6HC60nS1qbGUBn\n wrF8SknsU86vLI7RusToPmIziZUGGHLxJYUKG5UF5Iu/XpYqgweLdB1EwWXIJGiMnOSiN26GeV1\n 6AYak6eS0c5Dr2dxwX27A59IVymid63tMcWf78ApwIHRkUii9U2hgpMayKlSN+8rUAkTUdAylvw\n PKXGsHRfOxwIvoh3oqvYOI3lF1BDk08JxZbiLF4MDREEU/Qet1d5k2EhTO5OQJbzQrBmp812kUc\n SB0sX4mz+inNh/fZ8AEHw7g58lpwWWLSCXWHlx25tlXEGSq1uAW8jocQcjxFlyFAj+Y+cywdSgp\n U+2eOhTDZptpTKW7mrFpF4RdwI+r4","X-Received":["by 2002:a17:903:22d1:b0:2b0:606b:6fc5 with SMTP id\n d9443c01a7336-2b269cb8010mr38062845ad.3.1775098559633;\n Wed, 01 Apr 2026 19:55:59 -0700 (PDT)","by 2002:a17:903:22d1:b0:2b0:606b:6fc5 with SMTP id\n d9443c01a7336-2b269cb8010mr38062725ad.3.1775098558986;\n Wed, 01 Apr 2026 19:55:58 -0700 (PDT)"],"From":"Noah Wager <noah.wager@canonical.com>","To":"kernel-team@lists.ubuntu.com","Subject":"[SRU][N][PATCH 0/1] Compile error due to nonexistent struct member\n with CONFIG_PCI_EPF_TEST","Date":"Wed,  1 Apr 2026 19:55:52 -0700","Message-ID":"<20260402025553.512322-1-noah.wager@canonical.com>","X-Mailer":"git-send-email 2.43.0","MIME-Version":"1.0","X-BeenThere":"kernel-team@lists.ubuntu.com","X-Mailman-Version":"2.1.20","Precedence":"list","List-Id":"Kernel team discussions <kernel-team.lists.ubuntu.com>","List-Unsubscribe":"<https://lists.ubuntu.com/mailman/options/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>","List-Archive":"<https://lists.ubuntu.com/archives/kernel-team>","List-Post":"<mailto:kernel-team@lists.ubuntu.com>","List-Help":"<mailto:kernel-team-request@lists.ubuntu.com?subject=help>","List-Subscribe":"<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"kernel-team-bounces@lists.ubuntu.com","Sender":"\"kernel-team\" <kernel-team-bounces@lists.ubuntu.com>"},"content":"BugLink: https://bugs.launchpad.net/bugs/2147065\n\n[ Impact ]\n\nThe noble 6.8 kernel fails to build when CONFIG_PCI_EPF_TEST is enabled, with\nthe following error:\n\n```\n    CC [M] drivers/pci/endpoint/functions/pci-epf-test.o\n  drivers/pci/endpoint/functions/pci-epf-test.c: In function 'pci_epf_test_alloc_space':\n  drivers/pci/endpoint/functions/pci-epf-test.c:863:33: error: 'const struct pci_epc_features' has no member named 'bar'\n    863 | if (epc_features->bar[bar].type == BAR_FIXED)\n        | ^~\n  drivers/pci/endpoint/functions/pci-epf-test.c:863:52: error: 'BAR_FIXED' undeclared (first use in this function)\n    863 | if (epc_features->bar[bar].type == BAR_FIXED)\n        | ^~~~~~~~~\n  drivers/pci/endpoint/functions/pci-epf-test.c:863:52: note: each undeclared identifier is reported only once for each function it appears in\n  drivers/pci/endpoint/functions/pci-epf-test.c:864:53: error: 'const struct pci_epc_features' has no member named 'bar'\n    864 | test_reg_size = epc_features->bar[bar].fixed_size;\n        | ^~\n  make[8]: *** [scripts/Makefile.build:243: drivers/pci/endpoint/functions/pci-epf-test.o] Error 1\n  make[7]: *** [scripts/Makefile.build:481: drivers/pci/endpoint/functions] Error 2\n  make[6]: *** [scripts/Makefile.build:481: drivers/pci/endpoint] Error 2\n```\n\nThis is due to the inclusion of the linux-6.12.y upstream stable commit:\ne741dabcc52b (\"PCI: endpoint: pci-epf-test: Limit PCIe BAR size for fixed BARs\")\nwithout including the dependent (non-stable) commit:\ne01c9797c0eb (\"PCI: endpoint: Clean up hardware description for BARs\")\n\nThe 6.12 commit does not fix any issues that have been observed with the 6.8\nnoble kernel, so it should be reverted. After doing so, the kernel compiles\nwhen the config is enabled.\n\n[ Test Plan ]\n\n1. Apply the revert.\n2. Enable CONFIG_PCI_EPF_TEST in the generic 6.8 kernel\n3. Compile the kernel.\n\nThe compilation should succeed with the revert.\n\n[ Where problems could occur ]\n\nSince this config is disabled in Ubuntu by default, it has not been tested in\nthe past. Even though it compiles with this fix, that does not guarantee\ncorrect behaviour in the features that the config enables. For example,\nreverting this commit means the feature will definitely not work with\ncontrollers with too-small fixed BAR sizes, as that is what the commit fixes\nupstream. If it is needed, a full backport of the commit and its dependents will\nbe necessary.\n\n[ Other Info ]\n\nFor context, this issue was found because the noble:linux-nvidia-tegra kernel\nneeds to enable PCI_EPF_TEST, so more issues may be found once that gets further\ntesting.\n\nNoah Wager (1):\n  UBUNTU: SAUCE: Revert \"PCI: endpoint: pci-epf-test: Limit PCIe BAR\n    size for fixed BARs\"\n\n drivers/pci/endpoint/functions/pci-epf-test.c | 7 +------\n 1 file changed, 1 insertion(+), 6 deletions(-)"}