From nobody Fri Jan 27 21:27:47 2023 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 4P3VzR4mRKz3c8KY; Fri, 27 Jan 2023 21:27:47 +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 4P3VzR49rVz4N5Z; Fri, 27 Jan 2023 21:27:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674854867; 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=Y7CNDev8dOZnAe75DqP+8BzvyFh/oHsGHxouJEcKfms=; b=fA8y/MHqHmnTokAGhxnjhvNDiuyXVPV6uE8bRsjn4ywqq8e7Zki9ig6rddLHaSmDICx8DV SWLp9GWEwskLIzGRfK40gguPQ3KH7slK5uqpXqmQJdkRmJ9uAkT1fhDaKQma6Kg9YJeMKx 2SjYdIOdKPW4qbrYQC0MpVs7FBDxXGHRorw07891JoltOW3T8nCFnql+esA219Fq/g3P1q ZhNGrPmuSpSGkvqpyjlxaSHpqPyx3UOuBHPAAha9NO4zUtuOtBnPAWfarMXIefYeOP2H9i h2SQhuu9b3kB4WBSXZ1mXI+luWKMgfMuA1retfuC3SNdtSRn0FxRzpfVyPZdfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674854867; 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=Y7CNDev8dOZnAe75DqP+8BzvyFh/oHsGHxouJEcKfms=; b=W7DOrdkINt1XuurAyLlFwxdHYf20MnLRWe5fHYviDlk4TLJr7tw8djwtm9l4DOaEeZdsfW 3X/iu7b1G5G+dCyXKRHLV3seA42S7YJw7HzmoZaqv8v7dm7Xn03BNnZvfArmV0+VEwz+CQ 7qk6XSGGOedHpOgiao0lbkuDZq+pxMe6NzmHUXUC6pAnZ0192IOK6Ig49Q7aiTaLaQBW/X bBSHubnrYVDgDMW3zseHhC6NMPXAb0FjHGhr6tfbo3It/bF3cVUE5jVgKdUtyyCmKpL4i9 NjDiAYZoCgJ+Vr1r8iyGaUCsuOM4NOg2dm3thTq0FzVY7CbXXtbjfTUZvJqulA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674854867; a=rsa-sha256; cv=none; b=Dd+CE+vGcM1aAfe9WcHgCW2Kqkh52DL4CaBKbWwKoVozY2FWI0AxcSZzkr0v1QT/G/iPQU TcV2DNkz8lxQGzV4eZbDa/g5wFB0zyw3qqnIf0wGn2tcE2ZdsHpgUIMc4c7wjxQd9y0qdo JVRS4Y4RLUduz3U+GPOlu5JSQGmBM0Sd4fWEoDSnFqndaZw1adIK+Q1cDUuI7N/40wnZ+f ZRU5NYhQGB0k6G98vkTMo48tgTDdswzDE4GBlvn6Ym4ZWhv3rx4RRGVhHBTDq/jST4gbJM Sof4GVyJNvuoThuVkfHbx2/qoI3RlOsq7Iw9ZMQZJO4/nWegXdSA0N3BHqS8vg== 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 4P3VzR3C5GzPLt; Fri, 27 Jan 2023 21:27:47 +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 30RLRlSX000479; Fri, 27 Jan 2023 21:27:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30RLRlZi000478; Fri, 27 Jan 2023 21:27:47 GMT (envelope-from git) Date: Fri, 27 Jan 2023 21:27:47 GMT Message-Id: <202301272127.30RLRlZi000478@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: 8c46bd9f8691 - main - linuxkpi: Include `linux/sched/mm.h` from `linux/sched.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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8c46bd9f86911c11c42f780fb233db0505ea94ee 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=8c46bd9f86911c11c42f780fb233db0505ea94ee commit 8c46bd9f86911c11c42f780fb233db0505ea94ee Author: Jean-Sébastien Pédron AuthorDate: 2022-12-30 09:52:54 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-01-27 20:53:44 +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 --- 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 24014e71cda6..fee27ef7c9c0 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