From nobody Mon Apr 22 19:43:58 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 4VNbKV5SBgz5HlqC; Mon, 22 Apr 2024 19:43:58 +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 4VNbKV3QsSz4mT3; Mon, 22 Apr 2024 19:43:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713815038; 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=3eqlFJwK6O3bYLadXq2xed6KxfGEpitVKUi5MGvdxsY=; b=dcmC6M1O2UpEQDa/aJPgqXwYQwvXMXAQZsE4ENXnNcrjdIk7noCWRO+I841OR4wn4KcqGN 5Q99ka7AbdbpgDptLMlsatpQj9yz20GHqAI1lgIDBwqxrUoN/Au7m34WEngLC46kDE3ov4 hFlzahAcifuddrywzlvRs2FP5PuuTQSoV5b2NUyQvL/e/JGhHInpAcg6jAaSohkcF17/Ce CsxsbqiZ93YptdEtv3UV6itsDJHoPZuFAAvL26DqU2uUMLWZ65shXgZKFd/deM78SkQ7bN B/PC0jDteYp7eI/opRosQiJ+LiI7wZ11Csa0WqzUAK6kzkn4Rw1q3t8C9J1aHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713815038; a=rsa-sha256; cv=none; b=SvAW9GKvma/YnV0nqce/0XeRGCaeLwEbiJ4P1oqUarx3F8mfw+2zRthIpp4iv1UrqtdRP6 4IxJ/z49AyoMcUI8hyiTvSQriLuHszLdwYUCBsUhzAyw8nNtWHNVWVFWKkTRzoJhN5paRB ZrFaFzLyKjD1jSfp4/ijEdSAK2bYm/piU4mUyEwP6ta6FTp77XZ50fLzVaR9lKZRRWYj3L Qo29RQIEchm5cfJ7H4QUcczPN7onsfHkuePA7uOBQsfyCQ3WVmGDD5NI+R9WLArVaK0dRR qwwteA/AF59Eo36hwPO3UnmSx6gU8UeX01EO8yC6CIOcVNQyBwoJMV5HhhOOfw== 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=1713815038; 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=3eqlFJwK6O3bYLadXq2xed6KxfGEpitVKUi5MGvdxsY=; b=vq+obQvc3JaVYzIgkCU9rNkTWJyxVUZzUyuDwz0k/XGuWG0Z1YAX3vXYJwMM76WoLtOFG7 W142Q0aUQR/UMNa38p0DEa222P8BgQRL2dSzzkIyUsMaUw3C0o+m4/S1SGBQX2K24fKDk6 8Zl7uu4C02Foke2+2IzWKA5HgebNFIHXu9djSXfHNd9O1tF4nYTWbKXwJK/AESB5ErMoHf N6a26KgNqFDlwCxnTIMBUxbMtdxVjsXhvnFxUKY/ViySQg1NMBp0CN5Uec+GPtdBNMkyJJ KSayr1jkXJu4Tm2W9W4sJ5LMESX9ax7NolIvXMwSsdJYblOCfMQJXru1jcKKbg== 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 4VNbKV33Xmz126m; Mon, 22 Apr 2024 19:43:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43MJhwmG032046; Mon, 22 Apr 2024 19:43:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43MJhw0v032043; Mon, 22 Apr 2024 19:43:58 GMT (envelope-from git) Date: Mon, 22 Apr 2024 19:43:58 GMT Message-Id: <202404221943.43MJhw0v032043@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 8cf307284f6c - stable/14 - LinuxKPI: add dev_alloc_pages() 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8cf307284f6c1508b5c075155c711a7d3a8dab39 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=8cf307284f6c1508b5c075155c711a7d3a8dab39 commit 8cf307284f6c1508b5c075155c711a7d3a8dab39 Author: Bjoern A. Zeeb AuthorDate: 2024-04-02 09:44:29 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-04-22 16:59:45 +0000 LinuxKPI: add dev_alloc_pages() Add dev_alloc_pages() though it seems a weird KPI, not passing a dev despite its name. Used by updated wireless driver. Sponsored by: The FreeBSD Foundation Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D44588 (cherry picked from commit 738c02ba24c66391870067602f1c9c030d5c5e5d) --- sys/compat/linuxkpi/common/include/linux/gfp.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h index c5de09e896de..2fcc0dc05f29 100644 --- a/sys/compat/linuxkpi/common/include/linux/gfp.h +++ b/sys/compat/linuxkpi/common/include/linux/gfp.h @@ -138,6 +138,12 @@ __free_page(struct page *page) linux_free_pages(page, 0); } +static inline struct page * +dev_alloc_pages(unsigned int order) +{ + return (linux_alloc_pages(GFP_ATOMIC, order)); +} + /* * Page management for mapped pages: */