From nobody Fri Nov 11 20:05:06 2022 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 4N88nb0rHYz4fsDB; Fri, 11 Nov 2022 20:05:07 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N88nb04Crz4Jh4; Fri, 11 Nov 2022 20:05:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668197107; 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=gBr8wl/MYcaLs5EcdAFEvWA4IBF+WX5wB1UATRUthcM=; b=DpkqxoCbg3BuAhGDgHFufzzCRDSkHynK9dOA8OQsMsnKLM7aVGZAz8r5rf7ffUrb7YN3UW 2gLAdn4zgpbiUD9NTWehQ6uh0Y75ajyZJuTyhZIYI0FgT+kT2DEwQYX1Rm3layfyvd5Q/X W3nAJ7vGy2NSqgnh4PtJYW2thzGNrQ7GbSOo1qWyVYVDukmsRhfFssUes4rJiZ6ode9LJX E48O3uDmSKYRyEIbFm1QEGLFOqgu8ztAhNEB+Q4ZVG48Tys7lg9/TMOgqObLUupUue17Ut tLLu/VFJrTqRjcYqDnOzpdWDY6aiKV3XeurXk2CYdYXo5h4P+L2O1m7ZzlaEyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668197107; 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=gBr8wl/MYcaLs5EcdAFEvWA4IBF+WX5wB1UATRUthcM=; b=Zdne6GdfTz26+A6eNLndWcBd3sfuaFqKRASuzn1nzfInC+tUH8NQWmY7q5mmNsoTFsljzt mTPmaP8Uq2YKVfO8iQZmAeLA5wnKOgLLZSG/RvvMucTaEFGSNY4k+DmE41JJGhTYdAIXET 9qBCNRFBCTOwn8AL5MGbzhScJbTJTm0O8VZ1afusu8Hd5prQj2SqHG8Kprd5zgZ77KA0ZJ NQ4MC2dwhwf8gy1gxZDP5atSOs7J+Z4/brY9/FSkQjqqYKAXn5Yn4GTx9tqs4015GIUvso u+W3ZgSju+CW23QPSoAre6SZAuYNfImqXtCA4Z/O20ATii8OVtFAizF613KK6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668197107; a=rsa-sha256; cv=none; b=l4JqJeKW69BVIC76k9HKT/h5So5mGp93zqgWtR6/UGNb6QAvYt9JZcZazz1gA0LffFdtJL vyRL2tHxL/4cNTNpxr3mHElKg7x02uQcCGD62w6L+JPyPwFWwQgOOXKrl9bq+4W8YhR7CO yhB+eyx8YIybehEaOvoM+ru+pEUnngbq//uskj3Gp2V+uh6uyMnOVcDprCZo4KaP9S7n+n ngYMzS6mKsTxrrtKGossiyAMwj7QpKeOgEmrJQuLxK32GR/el2+tNmkB/c6O42gCp/O1jT NLU0FGJh/V2Rh2qsvcsgzGoACc63t8V31Eq3Mnyu9lgiXLZsHmY+M6qh9QE7hA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N88nZ6HpwzwVx; Fri, 11 Nov 2022 20:05:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ABK56l6033809; Fri, 11 Nov 2022 20:05:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABK56Q1033808; Fri, 11 Nov 2022 20:05:06 GMT (envelope-from git) Date: Fri, 11 Nov 2022 20:05:06 GMT Message-Id: <202211112005.2ABK56Q1033808@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: 86a1c5d12945 - main - linuxkpi: Define `pci_reset_function()` in 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 86a1c5d1294579d6787811a5d9cde2aad2567cd9 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=86a1c5d1294579d6787811a5d9cde2aad2567cd9 commit 86a1c5d1294579d6787811a5d9cde2aad2567cd9 Author: Jean-Sébastien Pédron AuthorDate: 2022-11-11 20:00:36 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2022-11-11 20:00:36 +0000 linuxkpi: Define `pci_reset_function()` in Currently, it always returns an error on FreeBSD. Reviewed by: bz manu Approved by: bz manu Differential Revision: https://reviews.freebsd.org/D37366 --- sys/compat/linuxkpi/common/include/linux/pci.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index 775bac72a145..72fe345a72a6 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -938,6 +938,13 @@ lkpi_pci_restore_state(struct pci_dev *pdev) #define pci_save_state(dev) lkpi_pci_save_state(dev) #define pci_restore_state(dev) lkpi_pci_restore_state(dev) +static inline int +pci_reset_function(struct pci_dev *pdev) +{ + + return (-ENOSYS); +} + #define DEFINE_PCI_DEVICE_TABLE(_table) \ const struct pci_device_id _table[] __devinitdata