From nobody Tue Jan 24 08:54:06 2023 X-Original-To: dev-commits-src-branches@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 4P1LPB4y3wz30wrT; Tue, 24 Jan 2023 08:54:06 +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 4P1LPB4FLMz3RKZ; Tue, 24 Jan 2023 08:54:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550446; 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=KZ9aEJdapzvco0bbj5WjDuW7MtJ60GSjix6+ZAhEGKE=; b=scGFGrZJSbAnMB8wwuMdpoLYjS+YkkQhDTKDiAJJFpgCsvJK419PDeSRIMgSQp+tue65QD chIEwMzLFUq60kXuJ84XahERlYyC9d3/8lRpN2JOiCCbVVAsUmrjqJt8eB11+w2cycwkm9 iNnCO66NUBzoF/WdJr57x/zxFo+c/7pUwBvYzlxlEbl3MuudsybPe7ebX+hZsv2a6Va5IV HxOxnwaBIvVqLZBcSObL7TBqpRcdOyL6osewTBSnYBu6P9Bh//H9bZmpLoaSAnewjKJSQF n4aZIBIzQC5AAwb1//XOcn7sJWQ/yokvgeKKInRsxflKYQ50tCioas8S6xZ7sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550446; 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=KZ9aEJdapzvco0bbj5WjDuW7MtJ60GSjix6+ZAhEGKE=; b=gIhfyx/h6VlAY1RLmKu6P+B6ZJsm4F+ycDKLfZpFrZn7fF4faP2su9Ge2YlzSsv7vC+LfX VWAMIx2cYqtjTXiKLddLMEp+IMNa6U87PTs7GQfiQag1eptxzhL45VfLq87jefIcXoCoGt fuqKmgLiso6xo4jTtpUaGvFaoa40u4PVPf9ybUTcCy+BSF1/tv2W0LtZFOxojH9o20cf+r b+DhNbA88XxRLaAZETmirkHYrbpIG0ehQsrG0zGCT91su9BwbtcQA4ePhqUUd39AEBNPBD b+syzhawnXlLMelVjBZDbFJEUMbHNtlnRXRacIBmgc4VVNq6JoOS7lpQlHT8mg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674550446; a=rsa-sha256; cv=none; b=jKCDF0a91otIHiAACsdb/WPWzf6LG2XwsQlWglk8RdoLtT/zi4JtLHseZLlPn2hwlnK+ZU UnnjT+hjMfoH0zDJOrYoL75cQtZN6oOf8gZXq1ZoaurHEra8vJfpfl80xD1z/QCZSEqQV7 EqexiCbONGDq9X0Xijs8l5pSNic7RtSJBkCqCqV/ulzegUgK2sCZLpa1mjTovgz2NFAR+o jxoX4MnKljl2pirpDcue0UOM87yH+12y3tplTE8PQUgPmY78hkSW1r6tds6lGq7quYE7Id 6+LlmOzfFdCYqFtJn164GQxaSRmPMRZRbjaEiSJ4cAm0Bc2/zyyoMaxLrNZnqA== 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 4P1LPB3Lqlz12pJ; Tue, 24 Jan 2023 08:54: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 30O8s6eN036052; Tue, 24 Jan 2023 08:54:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30O8s6S5036051; Tue, 24 Jan 2023 08:54:06 GMT (envelope-from git) Date: Tue, 24 Jan 2023 08:54:06 GMT Message-Id: <202301240854.30O8s6S5036051@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 313977cc0c04 - stable/13 - linuxkpi: Add which includes List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 313977cc0c04ec92c9fc3b8a3e89d8ae5feecbc5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=313977cc0c04ec92c9fc3b8a3e89d8ae5feecbc5 commit 313977cc0c04ec92c9fc3b8a3e89d8ae5feecbc5 Author: Jean-Sébastien Pédron AuthorDate: 2022-11-11 19:57:46 +0000 Commit: Emmanuel Vadot CommitDate: 2023-01-24 09:08:00 +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 (cherry picked from commit 24c7853f39d0f68d92f97880df2428f9e78e165d) --- 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: *