From nobody Wed Jun 29 07:55:55 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 15FE68A170C; Wed, 29 Jun 2022 07:55:57 +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 4LXv0W4zHzz4bGX; Wed, 29 Jun 2022 07:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656489355; 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=t6PrvcHY4zfH85ISGJp5B25xYvjvZpPYfIkwgFOp3VM=; b=CIqVKhU7AYpwf8JdzxmluB27fzeYFftHwg8mIgeuohESEopAzgPZcLbYKzGPSVZGIzDAwj SPd+3t2rzUGhTb7i1d6EZGTuOTVGIRdsSnf7ivtmwiTc+SH7s3xyGfCM2t6Z3qegffc4qU UJiNyVperxyGzhe2EaMfbANHd8OinV6OoWMs9VeNpDJDI+8weMytb19ClHo9RYXuCceoKr 6OgpKF3Ixaz64qNYq/j4nIEWhkCpkCjSPvHnEjiFyfNhXqmgNamVBqZjL0f/HKV96alXB6 OOpVp9q1wXhmv7o+p5FDTu8WqA2BZn8H90sIBeRaEm+nKoaq72PFL+CrLO83GQ== 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 3CF775C88; Wed, 29 Jun 2022 07:55:55 +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 25T7ttFt076366; Wed, 29 Jun 2022 07:55:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25T7ttO8076365; Wed, 29 Jun 2022 07:55:55 GMT (envelope-from git) Date: Wed, 29 Jun 2022 07:55:55 GMT Message-Id: <202206290755.25T7ttO8076365@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: a95f28800a01 - main - linuxkpi: Add mmu_context.h 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a95f28800a0169d7cfbfb9aabc5ae9410c20ecd1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656489355; 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=t6PrvcHY4zfH85ISGJp5B25xYvjvZpPYfIkwgFOp3VM=; b=uZtzCxr9nomhBzOAFmUfMYKluWQaUCVTgGcg0fW6yxc0SXpkQcvcJjz3JJ4irLlaiLRuQa 7w6KOjSkmT+JW7ibqPL9Qab/b6ml5AcrkYieLK8vIIRr/8KNTjBNBmToUMHBEXO5wdlbyz cbfpmrXfsv59Nl6q8EpAdpWVoJlzD5W9x3+R2wWPCnNSXwS+gH14pRLcKM/gPNKvpRvH4D aO9vlMZlvtEZpPWIXPvAUlOf8Ki1DXP0cfqSLnn20HmTv92bwS4rSwuUe9ZP6XD0GL9P4x 1GZARcGPpODfwGJL71NhSSjG8tMveW4A8EMvviTMikIATxJVv9umX5Qq3642kA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656489355; a=rsa-sha256; cv=none; b=sR5oGuqRDe3sZj9feg7xXm4qnbn85zZ6GhszVtkfEG75j6ciZxRzGcM0kF5BPaBk3nX2fP mRyX/i2WUcNsCJlP4QCzIpviDBs5h/AOqlQ27LZme2a0wlT9i42aumI4QaJrzVcsLJYDnT aXNshNs8ghXhIIwkMhQfzkC+uLC/i7X7SVq+X6It6r4Nu3Z0hBYdMWA5uqTe2q507BTFnU k8xf/tM7wZpcUE0QRG3bgPC0pQ4nHCFt85qObKy+RcUF2MDl2CoqjGZGtmEhXO6YCQ1/QC imTsFstO0hBFJIL523Ln4zchzcujCKLkhG4xuAUuyQHiRK9fIAMHPzcrwj7kjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=a95f28800a0169d7cfbfb9aabc5ae9410c20ecd1 commit a95f28800a0169d7cfbfb9aabc5ae9410c20ecd1 Author: Emmanuel Vadot AuthorDate: 2022-06-23 07:53:55 +0000 Commit: Emmanuel Vadot CommitDate: 2022-06-29 07:55:04 +0000 linuxkpi: Add mmu_context.h Provide dummy functions needed for drm-kmod. Reviewed by: bz MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35566 --- .../linuxkpi/common/include/linux/mmu_context.h | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mmu_context.h b/sys/compat/linuxkpi/common/include/linux/mmu_context.h new file mode 100644 index 000000000000..afcc9cf07249 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/mmu_context.h @@ -0,0 +1,45 @@ +/*- + * Copyright (c) 2018 Johannes Lundberg + * + * 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 unmodified, 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 ``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 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. + * + * $FreeBSD$ + */ + +#ifndef _LINUXKPI_LINUX_MMU_CONTEXT_H_ +#define _LINUXKPI_LINUX_MMU_CONTEXT_H_ + +struct mm_struct; + +static inline void +use_mm(struct mm_struct *mm) +{ + /* NOP is deliberate */ +} + +static inline void +unuse_mm(struct mm_struct *mm) +{ + /* NOP is deliberate */ +} + +#endif /* _LINUXKPI_LINUX_MMU_CONTEXT_H_ */