From nobody Thu Feb 16 11:56: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 4PHYLb6Q3sz3q5lc; Thu, 16 Feb 2023 11:56: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 4PHYLb4m09z49kw; Thu, 16 Feb 2023 11:56:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548567; 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=Pr5kAi1m7S+/TgUybMY3aSDGI2iYW8k620Y1ozwiSIU=; b=tGcvSyAr9Dd8zw8HPNn+SXXPlx9tucmIm5T/uUCaJuEfgit8XMzFwZ4cADGEawLGddX4zP PlYTZd0Dj16Cuc/qNv1oalSYC2g3cInIgg5Z7tOyliynhPn8lhpZh7xVzwOKwsFDEDIJck UYVEcMh0WAxC+1lJc56RS2ZJJXeK+jdcMnpMEgowR2+OdOKb/Yilk4EBJu+ZGW+0UjYcCO bT8p24uZdV845gydKax34S1rEUjkMM6UB3sGqONFmfhLDNnlrhtfA4OxDIaIKn40f1EaoR f8Q9zjN+DuuuI5xPRykqZLb0FJM2IdpqAQ3wKoPng3guQEkqgyRJkgjnl1XNEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548567; 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=Pr5kAi1m7S+/TgUybMY3aSDGI2iYW8k620Y1ozwiSIU=; b=ApLq1dmHNc0+HeDCAHhol7+925JaZ1OE6cdqMSFOEl3Vg/WloTARzDeupTj/EzZLvpOqhY p4kLAua1dCQUlC8Y/Q6DA9LZceEtLlDIjzgNvux3G3VF93CDUiPtaqBT5ALZZ4K3HT3QeU pj5HmH5xAicwfURren3m/3/1a8Bmk+7qUTHEwHXkHX2Yqyp/cAdwoEF8QR4kKPOtFzpG55 jTfFt7vonvYu8+hCB9wNFduMYvPlgso1Mst329HnT6MZyhuq5ER7xke4VnyNEN+B/RMoD/ 1VFoGS5DCOC2HkcmhQTfRXEELV5nkyIZUD8qgbIllW9a6N3oRvHxy+eewYl1xA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676548567; a=rsa-sha256; cv=none; b=JMcgrBk6K4wnS8Q2KPU9yz08wbgYalUoIhAZMR4rpmZRkOV9joQ/YaEbvUr6KF5hXxqI49 4uTwsOzLHY/GFqJBqpnmiD6oc4OLcfw7oyaRxRgY6xXJecmK2s5OJZfB8aNdy8SRiyLLua syx3+zMkR0f051xE3OnObBdPsvUl2LuTJDrxkY+gFCPJk6bLkV0XPCay2SImEQXjy9XhJp 0mkm79WOiwdAOAEWBD0xvKd+aixp1Oo70xqWbXWnxailjA9LxiFZh/ZVRKWaby+n6p9DqY wFht9DgD/yc47C/04PTKapDNBFHJohkYP28ANt3SViBEXUUlYvAVcxp03Oy4gQ== 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 4PHYLb05PRz13H7; Thu, 16 Feb 2023 11:56: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 31GBu6Kj055620; Thu, 16 Feb 2023 11:56:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GBu6A9055619; Thu, 16 Feb 2023 11:56:06 GMT (envelope-from git) Date: Thu, 16 Feb 2023 11:56:06 GMT Message-Id: <202302161156.31GBu6A9055619@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: c5c4d2f523fc - stable/13 - linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h` 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c5c4d2f523fcef1b82a43d4bb9334e26132ea871 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=c5c4d2f523fcef1b82a43d4bb9334e26132ea871 commit c5c4d2f523fcef1b82a43d4bb9334e26132ea871 Author: Jean-Sébastien Pédron AuthorDate: 2022-12-30 09:52:54 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-02-16 11:55:16 +0000 linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h` At least one file in the DRM drivers benefits from some namespace pollution to use `fs_reclaim_acquire()`/`fs_reclaim_release()`. They are defined in `linux/sched/mm.h` and this header must be included indirectly into the DRM drivers' source file. I couldn't find how it was included. Therefore this commit includes `linux/sched/mm.h` from `linux/sched.h`. This is not the case in Linux but fixes the issue with the DRM drivers. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D37912 (cherry picked from commit 8c46bd9f86911c11c42f780fb233db0505ea94ee) --- sys/compat/linuxkpi/common/include/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h index 4d1e669dd32e..6e0a01aa8466 100644 --- a/sys/compat/linuxkpi/common/include/linux/sched.h +++ b/sys/compat/linuxkpi/common/include/linux/sched.h @@ -50,6 +50,8 @@ #include #include +#include + #include #define MAX_SCHEDULE_TIMEOUT INT_MAX