From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796322793; b=AKQUuhJ7yLWAQ85/RGoId4Abq/s1q0XmZuwixKV/Pr38BGknhUdQJaQiQUa76QUE6EbW 2dJs13IAGZ00TMMx2f24Lg0K4vuuPCiOR63Rrn84fTdX0eEUKv9u04u9h35dgReW9AQrm wZ5BAqPGTRRI75t7Wqs1o87PpB8BwlwgLAduKIqGTZ9d18ru7og03IvexABcg91PaiNFE uomaTHyj0d9EBtasFIIq9uODZOCN09vWHFE8JjuihZrEjKb8rtkqz6kF+Pgs3KEmw0cb0 Lis6Mjg+v2ecvyv8w9qejdMxlkUc6AWbrW5knz9xuQ8mOuUGpg8MVpER+NdHaBbJa7g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796322793; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Q8IsHUf6UzQ4xUnb/+vPWWVF9amJ1ZMyWZqa0z/+BIg=; b=fO2NJlsCA4+Wn3LafwZbNxcPTLXw7FFhd1Ux4En35/W60iSd8MOgurxcP+mE1/Z8wmJB McTUSy3izqJgPVUAn9egW4uD3JUTd/n4PpiDrm/2I7lxqTfKoEQ9Ix0+eH5/PJU6HfVjf C7ujJ1KMJw+7tKwyGuXd7QaSK6OaVCqXkdbddwAHay6S4qPJl0hEb7Xl6KXGv0CAM6AX8 tNZitZ5B3beFOkEOU3U6Fv7wMXDp5hmI3P2/fisT9GrFo4rPHc6poTI+fu5ckrBn3/3r/ Ue7URe9xjUSX8bgODT9E8pdnS1M5FQvqxXquYYI6x6GORAZZWbfEkCIvHl5YvMDeNMw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nYpB3x3X; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53473606A32F for ; Thu, 3 Dec 2026 18:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nYpB3x3X Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB78A1F00893; Thu, 3 Dec 2026 18:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796322792; bh=Q8IsHUf6UzQ4xUnb/+vPWWVF9amJ1ZMyWZqa0z/+BIg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=nYpB3x3XVDRdlpIPZwM/p9/Gw1ESHzQjwL1y3xbzlnIqNOLdAJ0L8GqJ1VBB6EdU+ IY/BQmkhR1D18EwWbKNu5NoPyb2b+53Xgt4gYAJwAjtjQFps+d5P43nPkjvk8oUUfN K7mWy2W1ok9xmJ7eb4CuWehm7ScKV8pWVz4T9uzO8iM8h3+QfTHhWNimMwFLGhe29v n9LjuYZBsBy5hqVmiLMF0uf1vA1u9QPtTpCIWW43JelYwp4KYEHA64PukOKEiV5AjS WGv5GEcs4eCRZs0LeIFo1urc/UEnw3RQfWGwbL6qUKgWbA1JZM7amDWi6q8fxLqY00 extw+49YIAwew== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] PCI: cadence: Set .owner = THIS_MODULE in cdns_pcie_epc_ops Reply-To: sashiko-reviews@lists.linux.dev To: "Ian Rogers" Cc: linux-pci@vger.kernel.org In-Reply-To: <20261203171642.440891-2-irogers@google.com> References: <20261203171642.440891-1-irogers@google.com> <20261203171642.440891-2-irogers@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 18:33:12 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] PCI: cadence: Fixes tag cites 37dddf14f1ae instead of f876904e4436 -- commit 7d16f45d8dc004d424a29a6333f5e5299a95a021 Author: Ian Rogers > PCI: cadence: Set .owner =3D THIS_MODULE in cdns_pcie_epc_ops > > pci_epc_get() calls try_module_get(epc->ops->owner) and pci_epc_put() > calls module_put(epc->ops->owner), while __pci_epc_create() ignores its > owner parameter because epc->ops is const struct pci_epc_ops *. Because > pcie-cadence-ep can be built as a module (CONFIG_PCIE_CADENCE_EP), > omitting .owner leaves the module unpinned while an endpoint controller > reference is held. > > Set .owner =3D THIS_MODULE in cdns_pcie_epc_ops, found with Clang's > require_explicit_initialization attribute. > > Fixes: 37dddf14f1ae ("PCI: cadence: Add EndPoint Controller driver for Ca= dence PCIe controller") > Signed-off-by: Ian Rogers [Severity: Low] Should the Fixes tag point to f876904e4436 ("PCI: cadence: Add support to build pcie-cadence library as a kernel module") instead? In the cited commit, CONFIG_PCIE_CADENCE_EP was bool and built-in only, so THIS_MODULE expanded to NULL. The unpinned-module bug began when the driver was converted to tristate, and citing the older commit can trigger unnecess= ary backports to stable trees where it cannot be built as a module. Fixes: f876904e4436 ("PCI: cadence: Add support to build pcie-cadence lib= rary as a kernel module") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203171642.4408= 91-1-irogers@google.com?part=3D1