From nobody Sat Sep 19 14:40:26 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hnBx72Gf0z6srkr for ; Sat, 19 Sep 2026 14:40:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hnBx70qnHz4WN0 for ; Sat, 19 Sep 2026 14:40:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789828827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KARR8QSFDPVjHmSqaDLgtmHJoHAQnLpIkkQCn0tYtUo=; b=ehbIMP1Qj2bhBbqNsxOtNSKYAIEPhC857/CYyK8nJyC5RIaLn1O8jKaRLNhH0IVHFQbTbT 7y9TkbtHd11K3qh5klMCxwIDvisKnRFp5Rs1fiQ8SVM2uSWla3K3ftnTYL+o34XKwGGwA8 /bU/MOqNDhe79mu9nBrLBP+JFYQdkMr4wiSNMbEeO23iUXnRQZQgrwj/aFlB9ihllkDRK8 yfLpgqjxoy6gAPFS/KFbQqYViNyMuu8b09zCrY+yh/NLeqxMAPO+624DyQX0qvZEdKHM5q lN/X0aC+RCpm6fpFt82i6YpcwLsFxBA0Wae6XoulERwNWObOhOXOBaNV25PxsQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789828827; b=G/mndaLkD6gfNz72J6QPZA6323peh8sVX8TZw6JD9lpcVLHr/4Teg1P8lgH3XWmQDpo9LQ E8vqD8rJYZUgsbEQ/13TAlttdU9T6ulvUq1heYfweCwIId9I4TZw0nS2Hz9Of9ZBForjxj S0MO08/8AWPrqA0hM3ZazBSnFzyp7DNOQhunR9fwLaVDtlyEGsoUHAI74ibAB7n1/djwv1 bCudv48lQRTnY8IkN9HPt82YmlmCf9KD9xm1hOHDI3YFCVs2SQtmWhBwgiOUPVmMkIG9ch w/RsM5qmkQ/uym6YtQvkP1lA+H4AJzitm25MtowvzH3ZioBta15ATL4SZPjV3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789828827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KARR8QSFDPVjHmSqaDLgtmHJoHAQnLpIkkQCn0tYtUo=; b=YEFoZR8geZ3eAdj05srggYzF2QEIoilIFDiES0bFPuRYT/GthrrhD0pfm0cNQuze2TIDBp LFfi3gQIti5ObCtb82QW3dZg2h7xZRGMohW+RDH5a+bBsN9S9ngNTa+yyPcZ+8+P8Ki9Kj vB4bl7xxXNfJGmNziOWsjV3HO55mdEsuM7fY7tPSRuYZhdQpfQZmfTB9Eb90qtWo260z1q Hc4Y4GlK35dKWaQOJpss+p+Zno5bMQ2jjA3IrAZ6HYKMLZ0LgM9iLc8K49TLiUF00Z3V9N RwI+1s0SU7gXFdjZAHayBo/I3yrEDIte4BzFXyGVa9y75Y4ejjG8L1Tiu4soxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hnBx6711Kz174r for ; Sat, 19 Sep 2026 14:40:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 188b2 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 19 Sep 2026 14:40:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 490928831178 - stable/15 - LinuxKPI: fix argument type to lkpi_pci_msi_desc_alloc() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 49092883117817e3201371b4c366ada630309b86 Auto-Submitted: auto-generated Date: Sat, 19 Sep 2026 14:40:26 +0000 Message-Id: <6aae9eda.188b2.1e9d5ce3@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=49092883117817e3201371b4c366ada630309b86 commit 49092883117817e3201371b4c366ada630309b86 Author: Bjoern A. Zeeb AuthorDate: 2026-08-16 21:37:08 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-09-19 09:34:10 +0000 LinuxKPI: fix argument type to lkpi_pci_msi_desc_alloc() lkpi_pci_msi_desc_alloc() takes an unsigned int, not an int. While here make sure the prototype is visibile in interrupt.h as well before use to avoid -Wimplicit-function-declaration errors. Discovered while working on a wireless driver. Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D58879 (cherry picked from commit cfb23b01e269e8a0a84066637b82b746f01b46b4) --- sys/compat/linuxkpi/common/include/linux/interrupt.h | 1 + sys/compat/linuxkpi/common/include/linux/pci.h | 3 ++- sys/compat/linuxkpi/common/src/linux_pci.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h index dfd9816da8be..4dd88c217c5f 100644 --- a/sys/compat/linuxkpi/common/include/linux/interrupt.h +++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h @@ -140,6 +140,7 @@ irq_set_affinity_hint(int vector, const cpumask_t *mask) return (-error); } +struct msi_desc *lkpi_pci_msi_desc_alloc(unsigned int); static inline struct msi_desc * irq_get_msi_desc(unsigned int irq) { diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index 6efd43f311cf..f6799ab6be28 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -59,6 +59,7 @@ #include #include #include +#include /* * should be included here, like Linux, but we can't have that @@ -387,7 +388,7 @@ int linuxkpi_pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, struct pci_dev *lkpinew_pci_dev(device_t); void lkpi_pci_devres_release(struct device *, void *); struct pci_dev *lkpi_pci_get_device(uint32_t, uint32_t, struct pci_dev *); -struct msi_desc *lkpi_pci_msi_desc_alloc(int); +struct msi_desc *lkpi_pci_msi_desc_alloc(unsigned int); struct device *lkpi_pci_find_irq_dev(unsigned int irq); int _lkpi_pci_enable_msi_range(struct pci_dev *pdev, int minvec, int maxvec); diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c index c966daae9507..4909b52150ae 100644 --- a/sys/compat/linuxkpi/common/src/linux_pci.c +++ b/sys/compat/linuxkpi/common/src/linux_pci.c @@ -1613,7 +1613,7 @@ out: } struct msi_desc * -lkpi_pci_msi_desc_alloc(int irq) +lkpi_pci_msi_desc_alloc(unsigned int irq) { struct device *dev; struct pci_dev *pdev;