From nobody Mon Sep 14 19:48:10 2026 X-Original-To: dev-commits-src-all@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 4hkG0W19v9z6rcmv for ; Mon, 14 Sep 2026 19:48:11 +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 4hkG0V5WmPz4X9j for ; Mon, 14 Sep 2026 19:48:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789415290; 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=zyT7BU6CjwaGKWDyZWbxJQVxC6lXo20fOXcf/I/P8c4=; b=m4Bn1MT/v3nFqkNcg98egf/EK28l7BbGan6hR03/SxnGq3/hKA7B3sUwGfq4L7lvxiiuCm DlxuIcO0OcHikWwxIF7LmCHBRqJWEAFf6NQA/xsRXwowQQLd01jV8be67cgQiV88CMkoG2 yA9s8wiG1fxE0tSmfBFhJgOmVad6C/zUxxbIc8QSH7rMB+zzuPzsjLz+HqqjZ1UpTJqLu4 aVzyWV19d74JOH53QM4YUbtQswy3k6L3vStQbenzFyM7qSeKPbUZWiYkpF8xTZsUaguhzK oiFaNcKfaKTl2lcGYbJTaWV8MS7qcw1K/X7foFhzFHsFiwbjcJgmr3/E8CZ4TA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789415290; b=LHf8yzZropHLolBo4PuP3BuQl4IUgIHiEE9oX39FX7i463iP4FxLcKzZGKG4P5o62Mnc/g +OQgU7jsp5QKXAzOXzP7/c02haut/qpozgOKh9+u2clTe37jh2RZDYIbckBzA8rzOXdJyr 6ElCKvowaEjpUsQRmCuiYSSnXGymoDyOc8um275ThsFGng0lxquNuxCxXbh2QMGU+h2ltD Dqxe9Qz/dizyZWjH581OcQQlHJDKn3I1UC+CgPvBVLSHjz4wpLSoHbzBw0RXRQpnj4G+Gn X6B+Yv31mDq/QAzwBYXI7QiJIukXO+t1NKx6Ujt1UngoAv8J2A0fK6YzkclMpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789415290; 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=zyT7BU6CjwaGKWDyZWbxJQVxC6lXo20fOXcf/I/P8c4=; b=hjj9zHRC7xK0PnGrIb8QZXjQMMA4jI8w9cIhQn6VMYfddak1QlJ0B7+E3hd9QqKi5CnM4V RM8y3zPkRiRMu4iDbtPdloOCn5OYywCGLFuAL4Gpyc4nQeRQj9i+U+BXzoQeLHXiL9GQJ8 YTKpU9gWn2PBfNBl/l/08GbEKqnXMLU1CAZ77ME9iijIFZYoRe0uXzRrzGMdLEHJOi2fTh IT+gbPEt3lnZlrKKgLf0jRW2LnKBYJo+WKFXwc/Vy/EVbPYAGheC+iXsUOIuT2IdN8LUzJ 4+mJaFH+ENfQHF/kaC4gvjJO4QFnKPEOmku3XspMidBYPx+csKBfTaXSTOTT5g== 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 4hkG0V4cB8zRHZ for ; Mon, 14 Sep 2026 19:48:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2325e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 14 Sep 2026 19:48:10 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bjoern A. Zeeb Subject: git: cfb23b01e269 - main - LinuxKPI: fix argument type to lkpi_pci_msi_desc_alloc() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: cfb23b01e269e8a0a84066637b82b746f01b46b4 Auto-Submitted: auto-generated Date: Mon, 14 Sep 2026 19:48:10 +0000 Message-Id: <6aa84f7a.2325e.7a7a1b2e@gitrepo.freebsd.org> The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=cfb23b01e269e8a0a84066637b82b746f01b46b4 commit cfb23b01e269e8a0a84066637b82b746f01b46b4 Author: Bjoern A. Zeeb AuthorDate: 2026-08-16 21:37:08 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-09-14 19:06:00 +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. MFC after: 3 days Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D58879 --- 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 7e416c3e9234..aefe621670e3 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 c912dc80961a..4256692f5884 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;