From nobody Wed Sep 07 15:10:26 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 4MN5KZ5hf8z4bPK8; Wed, 7 Sep 2022 15:10:26 +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 4MN5KZ4tX9z3Z0X; Wed, 7 Sep 2022 15:10:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563426; 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=Q15fIuraKv1SFwl/S+frryD9srSuoWLPoSBONPGLkbA=; b=q2kDWlWTx+UKggI5L5Piwy/uEKAynm0bOJZ4jQt5lyPde156sVv23u4EQ1dOLHu/9+tN3v HlMJj116yOjJsERFRsS7X96pOsiIFybsWdA1MGtL6yN7F5vDdNr8NteH0d9UnaxSSnK8Wt byVV915tTozyLbnRu9Js3XIa+7eb37uwu0SJEvjTB8J+uL+zbaoZzTVB2v/kzo/HDSCXLp okObrJVHbvn0Y+KtaBdHADfJLPE48FBAPq2DPqBt1dSCB3Amvs5WubE5A0wPdfTzn+oNBG Pe46LNCalxgxw+gnIToxW7NK9D45x48+n5r9hD1w/Qd7/0g3Ap4iO4Q7Ya0O3g== 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 4MN5KZ3zbPzYsw; Wed, 7 Sep 2022 15:10:26 +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 287FAQGe026266; Wed, 7 Sep 2022 15:10:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 287FAQkK026265; Wed, 7 Sep 2022 15:10:26 GMT (envelope-from git) Date: Wed, 7 Sep 2022 15:10:26 GMT Message-Id: <202209071510.287FAQkK026265@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: 45962e192b24 - stable/13 - linuxkpi: Add sched/mm.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/stable/13 X-Git-Reftype: branch X-Git-Commit: 45962e192b24522e1dc972a680b06d38a6e44376 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563426; 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=Q15fIuraKv1SFwl/S+frryD9srSuoWLPoSBONPGLkbA=; b=hTqNt7U/1D/GhNgOC7UWo+ieXt6bDCTYMpS+QCPQY1gjkZ0FXxuizqEDongJnmyC0vThEx SqeHRdQjBvoeGWX6qxg8jxGwj4GoDohyAkSzEw/5q6oxLN/RDu9lTmtMSrEZAeTFCvXLw/ jHtPv+f1lTkmGduAKvWtLi71R5+U6Ypmihrr66tcP9DcjWqcosDCrAQFM4V8VzqKHWsfUl 0tD7z0fg4f3hxQnc34SUPdJE9JoTQwHZZAhFk7ZhDe4/YN3HRsZhd/K1w+1H63m6Xdp62z Q0M1Q2OtC97zrJWFxFHjISKGAQjRrrBMadq1OtfdlR1RFYUdT/Y/af2dBgw8oA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662563426; a=rsa-sha256; cv=none; b=bKJ+u7bbOlHCdyJta3ZLKqDmntT0J/kfHBQ6xi496pUrVoDA/Z9S7IsWbPZV0QeQCNhGrT Uo20FAnPC1ntsr0PnC9Vqs8g0S81ccBv/HH3dxBCZm6nwFn8bOCIQTAPJJnjT/g13/yRFo 3VIrkUoGli+enYbk3fM3SueO6BBY9CuRegy8OptV/6lIBnIA0LLGhcraVouhtEUFAunmjo ClgkUtd8wN9y+rtlNLnpAO/GdV2Y7g897eQsKmkl6zENoNRHIpELa8EqALhPSKnUa4ob34 IiGl9zTHBbNVdmctfGzgnVW61O4P5rE5sJxF8pOGOsuc2/pspNylB2fGuKef4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=45962e192b24522e1dc972a680b06d38a6e44376 commit 45962e192b24522e1dc972a680b06d38a6e44376 Author: Emmanuel Vadot AuthorDate: 2022-08-09 09:30:29 +0000 Commit: Emmanuel Vadot CommitDate: 2022-09-07 15:09:05 +0000 linuxkpi: Add sched/mm.h With stubs needed by drm-kmod. Obtained from: drm-kmod Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36100 (cherry picked from commit 8828ebd6fc406520273e59807e66e24eae654f71) --- .../linuxkpi/common/include/linux/sched/mm.h | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/sched/mm.h b/sys/compat/linuxkpi/common/include/linux/sched/mm.h new file mode 100644 index 000000000000..613473e142a9 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/sched/mm.h @@ -0,0 +1,40 @@ +/*- + * Copyright (c) 2021 Beckhoff Automation GmbH & Co. KG + * + * 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 _LINUXKPI_LINUX_SCHED_MM_H_ +#define _LINUXKPI_LINUX_SCHED_MM_H_ + +#include + +#define fs_reclaim_acquire(x) do { \ + } while (0) +#define fs_reclaim_release(x) do { \ + } while (0) +#define memalloc_nofs_save(x) 0 +#define memalloc_nofs_restore(x) do { \ + } while (0) + +#endif /* _BSD_LKPI_LINUX_SCHED_MM_H_ */