From nobody Fri Jan 16 19:40:15 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 4dt9Dc2YVfz6NlNP for ; Fri, 16 Jan 2026 19:40:16 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dt9Db74p7z3wDG for ; Fri, 16 Jan 2026 19:40:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768592416; 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=54MI7zZpktwqpIfkdIzZ2J1UytDH7pLVUufe++jRl8c=; b=k5FQLOq2PLO0G9lufXwTsu5ZPjycoYDFSqZnn0/F6rBzm7u+oiKBCQfVDXnXaITY2QCwH/ Mv9WWt+AlquFfPllBh9RG0XBtGQAeyx1Y3RpIazDfztv6jAfE1zIl25VKDiSx+Esm22kIF Ryk69JPIoA9VrDElXLYX4RxVB8Um7rFrmXZ5/GTSWRhebx71hnuR9+4bNySxq1FKmfQQ7z vyHq+Yp/4pBTXe06iD8PZ4KeLDxqkc09YtVl1h/Opq4kgFM77ddkvmaKTiQMrGSMqhmwhO MZJ0F4YxWaxsI4mw0pjKWooJRdftDSkQy4jnM2ivfs0CulE1ooIXTDDXAItbLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768592416; 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=54MI7zZpktwqpIfkdIzZ2J1UytDH7pLVUufe++jRl8c=; b=aJ1YrMWvrKwbqn32Kh9xY/G6CxCLMEjraLaMilFlXiQRKaQQd2mSt9J2Pa8uH1bnubzYcL juBUxag59WU9nCKhkPAuldfBdJJDH9Mp+sLAZ+OOmKY437Vje8EKQcV2l1ELSpAc/6G0K/ 7WfJNKzuwKffnvCnIVQ+3NHBEwMQC1/8V7gPDF5iX73Fe7XCU3iWtnLpi2C3IgUhE1H2h0 cGueOJnFCG+HQtveXfyBzswgOurXL3VMKEN+KMb7gd74rgkNxg66T1JPeMOuMQo/1eXdRp Evzi0KcwpVCxnQwPoTDPVTd1bUYxIYh9wGnAsVKp0b2fKPwqGZOV1Q1Pwj6r4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768592416; a=rsa-sha256; cv=none; b=MCaRe3OyiC89+HSXtHqUUHZnoBdBjngJ/DGgnsmqmP7hOrmt5Zu6fm4KDy60eqynclSVv+ nWTbF+1qex6hz37yBA4d9MjkGfPWDyhufVhY7Qr+YwxYvj7P3dlX0jBGLSpXvJmKg4c5be 9qPo4Blw86GpeikIeqnhgyQM4UjKYvzdHJjiarrk8R94YrXZItHlN4J0tQmqzqX7M4nHhF h5sRCSb2dnXtmkOHvlrWjLCY+CKB1tbOV5tr9T0Zjh+fdDFZpTAppRwSxVIHbkwo1PmCQB h43Kq2bj/OLtOAZGFZT7gEJT6zOSzfaH0zT2Bs0wfsKqj+4mR6dSGtwURX5ugA== 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 4dt9Db6SdmzBqs for ; Fri, 16 Jan 2026 19:40:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id ca55 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 16 Jan 2026 19:40:15 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 443e07f7980f - stable/14 - LinuxKPI: pci: use unsigned int for vendor/device arguments 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 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/14 X-Git-Reftype: branch X-Git-Commit: 443e07f7980f8e777b7513e72769da639dd4e0e9 Auto-Submitted: auto-generated Date: Fri, 16 Jan 2026 19:40:15 +0000 Message-Id: <696a941f.ca55.4a627316@gitrepo.freebsd.org> The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=443e07f7980f8e777b7513e72769da639dd4e0e9 commit 443e07f7980f8e777b7513e72769da639dd4e0e9 Author: Bjoern A. Zeeb AuthorDate: 2025-07-31 07:24:58 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-01-16 19:37:39 +0000 LinuxKPI: pci: use unsigned int for vendor/device arguments Linux drivers may pass a typed PCI_ANY_ID (-1U) in which then leads to a warning that the value gets truncated. Switch argument types to unsigned int (or uint32_t as we use in struct pci_device_id) to avoid the problem. Sponsored by: The FreeBSD Foundation Discussed in: D50008 Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D51652 (cherry picked from commit a96486531b915c621947980d01decff759afc65e) --- sys/compat/linuxkpi/common/include/linux/pci.h | 4 ++-- sys/compat/linuxkpi/common/src/linux_pci.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index af3a4f276930..614cea0e7144 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -369,7 +369,7 @@ int linuxkpi_pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, /* Internal helper function(s). */ struct pci_dev *lkpinew_pci_dev(device_t); void lkpi_pci_devres_release(struct device *, void *); -struct pci_dev *lkpi_pci_get_device(uint16_t, uint16_t, struct pci_dev *); +struct pci_dev *lkpi_pci_get_device(uint32_t, uint32_t, struct pci_dev *); struct msi_desc *lkpi_pci_msi_desc_alloc(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); @@ -1415,7 +1415,7 @@ err: * using pci_get_device() need to be changed to call linuxkpi_pci_get_device(). */ static inline struct pci_dev * -linuxkpi_pci_get_device(uint16_t vendor, uint16_t device, struct pci_dev *odev) +linuxkpi_pci_get_device(uint32_t vendor, uint32_t device, struct pci_dev *odev) { return (lkpi_pci_get_device(vendor, device, odev)); diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c index 3c17dbbd82c3..77acbc48c408 100644 --- a/sys/compat/linuxkpi/common/src/linux_pci.c +++ b/sys/compat/linuxkpi/common/src/linux_pci.c @@ -286,7 +286,7 @@ linux_pci_find(device_t dev, const struct pci_device_id **idp) } struct pci_dev * -lkpi_pci_get_device(uint16_t vendor, uint16_t device, struct pci_dev *odev) +lkpi_pci_get_device(uint32_t vendor, uint32_t device, struct pci_dev *odev) { struct pci_dev *pdev, *found;