From nobody Fri Nov 11 20:05:04 2022 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 4N88nX6NvDz4fs9r; Fri, 11 Nov 2022 20:05:04 +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 4N88nX5WXpz4Jlf; Fri, 11 Nov 2022 20:05:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668197104; 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=n5eVapYmBqJn+ug7fXHpJfOPzov9WiXEX3cQsMB5sDA=; b=aJcvRbH/plMeBATdm5N1tUGDQcPS5fFpuWueVLHDYdpFZN0aMvK/VIxJW8Ldi3/0IzCbkV utEqzYrx2BqmasWGLg88rm2JjFrP2b/MbAkNXLad/5EhxqZmfvZyQE8aL+dSop13zw9R4k g8/txvO5Dzipc7EzxjdPOKj3dtv1uMQPdtgHEtciBClACjdy6Gx0va88ufUo7RuRQiMoyY d5D51oT9bOJhiLf/8zDPs8SqycdMnAW3QnekXHbOXlKpUf0BarsAjhUTTQKsqXVxNxMc7u K4X3sEdL57JlV4AChnOR/i/faojr962IFT8TQ51svsbSKrHjJw0DD1QJmdC+2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668197104; 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=n5eVapYmBqJn+ug7fXHpJfOPzov9WiXEX3cQsMB5sDA=; b=dJ3BXI2xTDO+pGixxcD3XnpIi/8sSv6dgZykA606Hpm+1tBsTBBnafYP1lwB85AOqoQ2C9 vRO68CZ4heEXY+CaxeQtZx0cQK9luh0CLctxFHtMYGppmdIROCvtm1K0JvRgSbU5C+TBsP wxJo+46zkfWmXa6qXesXjfeK8ocJ+R/2Z+UcxOH6N1gq/p9jbVLgufddxWSmCRZPgKeqQI NR9Meus3+/2L1JNghHIQL8xT6tTwYaHWow3BAMN1x9R9VmnyExvVIKNZd3gFchUWePUIS1 dARL5xr7aEnhb/c+EV3cu/jHtw23P7sp+Lpuc3JMxaGIWdUpEtwXhVTe42KPkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668197104; a=rsa-sha256; cv=none; b=rnIEDZB7V3b1jxg0o9sX83SdFvQFXUWBbeg0RCZgKd1PYNJtPSQiPx77yQMvWyXLMIuDaI 0d/Lzh4g5MOMmZlpivUjbzQpPQRjK94Y2uC+PaQAvZTPLufLgoOK71KeeJwPjlgdu3Urpj y8ME2IxTlvP5GIKa6Hzg8PYFqcZhxg29MSmPl8CaA9AmBnMA0u/fMGdhQERPQpXo0FMXyz 69s3toTYxaBNnVIvOH99Q7r69Bnalvq1uQHux4boALuFeeq/MSdR5cEIc4npA+U30jvebo F2UHWyn2nGokoMzxJkP88bQ3NHACoBaz4r7vDId2UAxKMgq7SGK6+CuFAxy78w== 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 4N88nX4cQpzwRv; Fri, 11 Nov 2022 20:05:04 +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 2ABK54NR033746; Fri, 11 Nov 2022 20:05:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABK54jJ033745; Fri, 11 Nov 2022 20:05:04 GMT (envelope-from git) Date: Fri, 11 Nov 2022 20:05:04 GMT Message-Id: <202211112005.2ABK54jJ033745@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: 24c7853f39d0 - main - linuxkpi: Add which includes 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 24c7853f39d0f68d92f97880df2428f9e78e165d 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=24c7853f39d0f68d92f97880df2428f9e78e165d commit 24c7853f39d0f68d92f97880df2428f9e78e165d Author: Jean-Sébastien Pédron AuthorDate: 2022-11-11 19:57:46 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2022-11-11 19:57:46 +0000 linuxkpi: Add which includes This is used by `i915_gem.c` in the i915 DRM driver to get access to `wbinvd_on_all_cpus()`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D36970 --- sys/compat/linuxkpi/common/include/linux/mman.h | 38 +++++++++++++++++++++++++ sys/compat/linuxkpi/common/include/linux/smp.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mman.h b/sys/compat/linuxkpi/common/include/linux/mman.h new file mode 100644 index 000000000000..eff80759b4cd --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/mman.h @@ -0,0 +1,38 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2022 Jean-Sébastien Pédron + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef _LINUX_MMAN_H +#define _LINUX_MMAN_H + +/* + * In Linux, includes , which includes + * . + */ +#include + +#endif /* _LINUX_MMAN_H */ diff --git a/sys/compat/linuxkpi/common/include/linux/smp.h b/sys/compat/linuxkpi/common/include/linux/smp.h index c6d011fceb5f..581a5e6205b6 100644 --- a/sys/compat/linuxkpi/common/include/linux/smp.h +++ b/sys/compat/linuxkpi/common/include/linux/smp.h @@ -29,6 +29,8 @@ #ifndef _LINUXKPI_LINUX_SMP_H_ #define _LINUXKPI_LINUX_SMP_H_ +#include + /* * Important note about the use of the function provided below: *