From nobody Sat Sep 28 10:38:25 2024 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 4XG3hd60wZz5X85c; Sat, 28 Sep 2024 10:38:25 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XG3hd5NJbz47VB; Sat, 28 Sep 2024 10:38:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727519905; 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=n6f4cjDQkUvlgWwTLBmos52KOx0EakTGDbhfafvX5jM=; b=BSb47zv10v1xFo5JZalLJek3XQ6hBf70W8V6kSeH6FgoYLIgf1nPNkqV6mgPfA3omcHL9z T5i67shyUx1AlOk6dp5r53wZb453dw36cuGQqGGfhep9SE/I7s+5wiyXq4wHIIIzlcLx3Y oNpTpGu/2/UzO63KWUGN/ajta874H8hr8gw7f45g92UlsmoadsG7itm1+xv9BanULkcbo0 XUXYIZUi0JQJQl573rkVKJB2oHqz4vn1A9zAug3RGUFWeLfHaUTakKl1IFiv+DlJqT/WS+ uUXgqVcKdtuzHw+TuWqv7JWf1XJalkKB4x2eqezm6H5SUc4v/ZR5IIdkusjnHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727519905; 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=n6f4cjDQkUvlgWwTLBmos52KOx0EakTGDbhfafvX5jM=; b=VlFW3jlJp1kc1YMzOUByOj+KkJ0uL3vsziXdjdIKVsdfc3Gw/Y9JpdYOxfbVBz2JNFkHo7 zMmKPVsqz/omsf62Erv9nxaWTjDH7BiCgECOehTGwah8k++giyA4Wvk3cMjyvo3nA1t986 ciRfqsEA6Pk51YKFdE8JdyJ5Rkh1gXhnxKQqR+cRl2BXQPEoZg9G427Up76lMIyBiYwU0h CeV2RWL2KfUvzGWLFh4BoCQ47NPkdSUo9XrIFUluOL6Ox5utuUTnmncnY4sguV4YCtLOCY /peiB2PjOBa9DnJFJk/zRorX64y698ZNYXRfOo8/OuaeHxZoWrXDphhCrpg64Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727519905; a=rsa-sha256; cv=none; b=eiOl1AU0RdB9PHF2pNQoL5VKxe3M9V/s76GsnRZ4K27Wc/SJ+69bGGuKTs31K3kFHMIZWM btirMY9laghITFyjF/qh35RcCoOT+uIxklPGHrBg4/XAhBXKq5g8NBnla7jjGe6jh3i0eW FryCdWdSygLjPEelb6aEFLk7d0vI7l9enZMaJpBYrOMWqY5I3h+p30ZA4+B+xe23qWEw6Z FdZGAxJSLDIELmIG1E2eAInAFycJXRo6FukBR8qwq6CJ2mjsaNgqeI/8rtKGEzGSxT8zJB 49yzy09LzAaTsszeUR1WJf123N7U/5yN4UhRJ52CMR5AiQNF++MqyhRA/Egitg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XG3hd1zVtzLYq; Sat, 28 Sep 2024 10:38:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48SAcP5T098252; Sat, 28 Sep 2024 10:38:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48SAcP48098249; Sat, 28 Sep 2024 10:38:25 GMT (envelope-from git) Date: Sat, 28 Sep 2024 10:38:25 GMT Message-Id: <202409281038.48SAcP48098249@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 286250daf5a3 - stable/14 - LinuxKPI: add pci_err() 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 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: 286250daf5a335f111a897333888f68f4f6220e7 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=286250daf5a335f111a897333888f68f4f6220e7 commit 286250daf5a335f111a897333888f68f4f6220e7 Author: Bjoern A. Zeeb AuthorDate: 2024-09-12 20:40:59 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-09-28 10:35:14 +0000 LinuxKPI: add pci_err() Add pci_err() as a wrapper to dev_err() as needed by an updated driver. Sponsored by: The FreeBSD Foundation Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D46660 (cherry picked from commit 01e1131e4a20ea377d580ecce210aa86726e71c6) --- sys/compat/linuxkpi/common/include/linux/pci.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index 73882b312db5..aa756c6e5b09 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -367,6 +367,9 @@ 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); +#define pci_err(pdev, fmt, ...) \ + dev_err(&(pdev)->dev, fmt, __VA_ARGS__) + static inline bool dev_is_pci(struct device *dev) {