From nobody Thu Aug 01 22:27:52 2024 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 4WZkB21Qm6z5RZhl; Thu, 01 Aug 2024 22:27:54 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZkB05BZMz4Z7Q; Thu, 1 Aug 2024 22:27:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551272; 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=Bnb9iK14z5pSaCS5+ZCxMCRVGHvanyNwGGK3ajgQ/uU=; b=sR/I7ANXYiHzZT4VIVlz9s/nVH6ikY2WyXB//ENKJMQr3lW18RMh6JO5NCboqy4866i4FG W4X5mi+2DZRWxxNsN3W+fgHnp+2/0x294/3NBlwrM/+L9dMd5SPAmdcwlo9fZ1gvphXuem xaZ86k7Rx+TpfZcqJjLE8Jx9DCxoPz+PmVt801u+228yUhTJ0ZWi5T4Enrhh2Qu8OZh4VV ifHqdm594Vf/9vw8O8DiIV5ZWhTDcLR4iXoGkVTKeaHt9Durbjpj+n+cIuKOZiN8+XTLFO IxSK/oLlgLkyDAgWmk0mA7qlQiKrkniNlA4GMjze1tyvlnivm2HXvE8MfNWaUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551272; a=rsa-sha256; cv=none; b=yFfFeiQmx2Rr0H+aoEYPJgfFPStrMhk3X7XSDNb27Y5ql/dRF0KA6lQqNuzGiUGKzQitnw wz6ykdRFdeDO3F+NMceoa1tcOpuET5KQj4rVjZn+UMGMrSX1xBTU47Z5qFqThAdHQ5kTb3 k0wZY3ERxmYAZl+WbdPXg4LNQjS6gYNV7D4LWwoFZOVdFKYnwsJEj83lcqN/Z7LMu+F91a vOKIucswiG4XLXPCE9ONfEpq7ofNNQcz7v4zOy93+QtV7IN1qLtWy9bdtTqDnoXK2OwU1U F0ohna3M4biEZUPe79A2GXxlrPgIhzFLoH4JNaKOY1sRCmwjofo1WaKoI0Vw8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551272; 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=Bnb9iK14z5pSaCS5+ZCxMCRVGHvanyNwGGK3ajgQ/uU=; b=T6YpJAnG4bxd/B0zUgTMGWnEdo24PUE9GZwP/SQWjFqayTwwNRurS7JNV2Rg8Vsq2hLY7Z u06U+myczK1CniIPD/SdldQX6tySkI2Jq6DapokJkslj91WTQJnDFZ/A+cTZw5AWbH3AoG wtI+Pkrm9nBRLFIF4nNOu61qcvls5eD4nkOnriBIGkHgLQP/PNDyetk+68J1JBoBCjCQuC C20AtuByAVi24YOFKsAskkwbhwh1QPOlc/XfyVDsotD98+iOEz9ncOofm0VZJHlQK0hhTP c6+HioupBn+aWKSgHox5TA2EMDBRCp+gSB5zN9AO2wd7EFFz4ZSph3Vwrn+BoQ== 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 4WZkB04pzwz13BX; Thu, 1 Aug 2024 22:27:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 471MRqkN028176; Thu, 1 Aug 2024 22:27:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRqUm028173; Thu, 1 Aug 2024 22:27:52 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:52 GMT Message-Id: <202408012227.471MRqUm028173@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: f1f6228a6658 - stable/14 - LinuxKPI: Add linux/nodemask.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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f1f6228a6658dd6a3409ee159628713e1aeef2a4 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=f1f6228a6658dd6a3409ee159628713e1aeef2a4 commit f1f6228a6658dd6a3409ee159628713e1aeef2a4 Author: Vladimir Kondratyev AuthorDate: 2024-06-26 20:49:52 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:09:41 +0000 LinuxKPI: Add linux/nodemask.h and dummy num_possible_nodes() implementation. We do not fully support NUMA in LinuxKPI yet. Sponsored by: Serenity CyberSecurity, LLC MFC after: 1 week Reviewed by: manu, bz Differential Revision: https://reviews.freebsd.org/D45613 (cherry picked from commit 889f74af66b82e4401fb69ed8af6b9b4f48ce53b) --- .../linuxkpi/common/include/linux/nodemask.h | 40 ++++++++++++++++++++++ sys/compat/linuxkpi/common/include/linux/sched.h | 1 + 2 files changed, 41 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/nodemask.h b/sys/compat/linuxkpi/common/include/linux/nodemask.h new file mode 100644 index 000000000000..e61573bbc19f --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/nodemask.h @@ -0,0 +1,40 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2023 Serenity Cyber Security, LLC. + * + * 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_NODEMASK_H_ +#define _LINUXKPI_LINUX_NODEMASK_H_ + +#include /* pr_debug */ + +static inline int +num_possible_nodes(void) +{ + pr_debug("%s: TODO\n", __func__); + return (1); +} + +#endif /* _LINUXKPI_LINUX_NODEMASK_H_ */ diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h index 8cb6b12100d5..80354493f955 100644 --- a/sys/compat/linuxkpi/common/include/linux/sched.h +++ b/sys/compat/linuxkpi/common/include/linux/sched.h @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include