From nobody Fri Sep 13 00:22:52 2024 X-Original-To: dev-commits-src-main@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 4X4ZlJ6yDrz5V3Wg; Fri, 13 Sep 2024 00:22:52 +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 4X4ZlJ6NLrz4Zl6; Fri, 13 Sep 2024 00:22:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726186972; 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=n6TJ5eWYMdllhm3hqrPZ4j/QAOloJR03R87QPyojb68=; b=jIlXkF0lknWzkNjWuKzoETT6tmti4tWB3Jjkh0WOOlD+eHrWbWyxOdwJVx+++SHf5yDfWc EqraEQ1K8wXLsmdtnDfayCDgF4eZ4v4Bq7pSZXSPXJ0cEtl19XEzW8waBAsmDPfvkQKL/I U2RcVjytwN+gPVViGp7AB9d4ScIJe08USW9HZzp62mjRI5+c3FpmLJLGki2WMvFlgimgoa iRDQX5IwNST36VG5a8q0PaHhlAUVzbpK2q2BmoKYnGf5BXVaz0sNiECQK3OM9oRTT4tPH4 7yHfPindSOiqKUw6eOiaLazaW2iMhXEckVHKLX4Wi+MXuEto0nIx/S7rT+arqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726186972; a=rsa-sha256; cv=none; b=q3QBZB7qXcakYT7ftUs+PvEiBAfjaX1dcNYVkU9Txx7W3yHBKZVSkbyUgF7GXpmjosYPpT Kv/TB/kLo0LA78p/7FGu3IyyaVL7W0UKTHS4keHXTPWzJrNrQ/wG5aS2gFGxwjKLOBc/0c 26gPGHTKv7m16N8uS9kpWFnL2oBUyB821e4uB1HZnPkMTlRYlfMpKhFSA3HzD/7lIA58Lw IO0EmN8K5BrGZEg5NB3lkJNRCm6bf0BqoSXeoYIdPbcQa91Af1Fi/qoTNf8IbMuqo7SxiG eFAONblSlnjOCKXT2Yc46PX6qLoZrFXujvKe2jON14YZac9n/0VTrHdeydNf8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726186972; 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=n6TJ5eWYMdllhm3hqrPZ4j/QAOloJR03R87QPyojb68=; b=RtJF6zsqvUU/O+yGROkuqlP6lRPQ2IvD4UYoQAUAAxjmConVLq0QwF0JXPI+VpLiNNTAFr BgQraGhjy5rRW1zVOgpO0eEIg8v4hY3TFYyWEATJSHVsPw+exAPAINrh3Gc9uVusTlJVsk Qvfh4CuR+rPQC1PtLMxMOK9G2w9y4mZNsuUQ6Z/JYNAwmk4Ld5UNAnochmE3Olo37txoyO cufOeMf2IRz9kcG/H+xx/E3aaTyfnUJJowOFSZyJTK3nsN3ru0cBacvj0tYzwFYnXTC8rc SuJdooDEuEi/nKgUCQ2WlgTIw0v/ln9/1rwDL4RV2Tq7A2mlmVmo0DDJH+tzmA== 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 4X4ZlJ5zm3zL6x; Fri, 13 Sep 2024 00:22:52 +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 48D0MqbV055760; Fri, 13 Sep 2024 00:22:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48D0Mq9I055757; Fri, 13 Sep 2024 00:22:52 GMT (envelope-from git) Date: Fri, 13 Sep 2024 00:22:52 GMT Message-Id: <202409130022.48D0Mq9I055757@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 01e1131e4a20 - main - LinuxKPI: add pci_err() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 01e1131e4a20ea377d580ecce210aa86726e71c6 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=01e1131e4a20ea377d580ecce210aa86726e71c6 commit 01e1131e4a20ea377d580ecce210aa86726e71c6 Author: Bjoern A. Zeeb AuthorDate: 2024-09-12 20:40:59 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-09-13 00:20:53 +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 MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D46660 --- 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 36b970154ad2..a2de534fcb60 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) {