From nobody Wed Jun 12 19:16:41 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 4VzwJV1K8Mz5NHmX; Wed, 12 Jun 2024 19:16:42 +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 4VzwJT4nkpz56bX; Wed, 12 Jun 2024 19:16:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718219801; 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=lL4ktS6yAerSScC7RlwcpU/06gJAEnKcjds9H42plLE=; b=FGLK/XLmlGtS8OLIqLTdc0VZVzKoBZHWC5uenGHSN9igxEHioYlQqfLCKbuIXSILQDBpR2 Ro9WGjeCXk5aNVf0h9hT5tP2Q5UUka7V2hmF9n8C2WHfSTvgiqMVfyuOtJnAZXDLkQfKKw CxDfbguZnDAKjqfLbGVey4q5UiHxP+kuRhS2fQLKeAZ2uO+VQpwCL+PhL59lA2V1lqn9dR YWU4nAqStXCQ8DcsyVHRpfH7Ii95BajozmpC2FZzibfuE0htA7vRQPscWfMGpcQn0Atu4+ f1Uu+XeGOjnoKMHgnNcIrFjbjK4ipyCEem09/QbBKVV8nIqysk/QY/FZc4U3VQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718219801; a=rsa-sha256; cv=none; b=Uh3gxlhuVO4VnjRyM9ikM/A6qjEFLQaEYeCxjdT/X4cMinADN1uex3vs78+BpCPN2hzogB p38W5Ojx4nMcABteGRQBjKrrMf4Q6AhV855qDVMhUzMpTipw4a+2ygH7fX1UHE37sXzVuF rOFxO3LbVmcWY9JW3nX43zcvcaGHjJSMdNDDXE4YXX/JaEkGvWY3aKxAyYgDRM+koeSOHv DtjSis7wzJ+N5OpC8Qdk99qupswurIejGvmPrRe0+H3EqE29rZj4U4yeR/esSbUxedPLVb QepyNlM7Yx9wkczAcWaY9FrpOIdSmT4C8X9pfLNmO7sTRPtvTO2EjOtW+A+6Rg== 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=1718219801; 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=lL4ktS6yAerSScC7RlwcpU/06gJAEnKcjds9H42plLE=; b=cBaJ8fl96bquHNtotegR2NVZ1tTuH6b4LQCmTDXQgOYs3e/djBoeU1XqmSMzJ0KujFkfs9 JmsYh1NOqGLP3fPqvuap9FpMCNKiCY2fIVqi7bDHU1CNGOIuli3+NWS35SFo05viu+I5PV PSDaghPp9y6Jo9GNqmjUqDOSdr1lQ/ycZLAwjtkYVjLQdArX/0o5dVfEC9Vaxct6S7ExQ7 zNdCswWbdVQ5htmol2+Zl80hzpwO8P94ngnfba1F5kOBjnKfWfiFutEvZqzP1vRxn/BXOL uDnFIvERELkoWgNn4eoQgzCPFgPUBixDaG8uBCDNwCpo1NnUTfhXh3eZzCAIww== 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 4VzwJT4PsQz15Dl; Wed, 12 Jun 2024 19:16:41 +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 45CJGfOO003761; Wed, 12 Jun 2024 19:16:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45CJGfXE003758; Wed, 12 Jun 2024 19:16:41 GMT (envelope-from git) Date: Wed, 12 Jun 2024 19:16:41 GMT Message-Id: <202406121916.45CJGfXE003758@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: d5edaf3cf216 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: d5edaf3cf216c5e682a8664e5abb4fc5a01e3fdf Auto-Submitted: auto-generated The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=d5edaf3cf216c5e682a8664e5abb4fc5a01e3fdf commit d5edaf3cf216c5e682a8664e5abb4fc5a01e3fdf Author: Bjoern A. Zeeb AuthorDate: 2024-04-02 09:44:29 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-06-12 16:57:13 +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: */