From nobody Thu Feb 16 11:56:11 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 4PHYLl705yz3q5s4; Thu, 16 Feb 2023 11:56:15 +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 4PHYLh624mz49s0; Thu, 16 Feb 2023 11:56:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548572; 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=P8O2liocHHobhyfEvVkGKYN4LMkUafdqFcYDpcFZUro=; b=JFrqIAYB7BVQUrQe0JGJ0n4+VXxbpImJg1y/P5+JHiD48jZ3Xgz1ABRQUtmy8LJnWv9zUh yHrJRLwdcNskzqM4SP57h4j1tIj0oycUC0anwMLZhJRWGSAg8T7SdjZXOmutUxGZ78Pt4s R7MYHIitGrHk+/uMJXfxdgoWuhRxWJVZZVyObIGkH0AJ+jvfpt9s3a1updJO6XHb9YE2+3 Y6jN0caKZTS4VFH8XYubWmMSJ2BdnbrZnpoeUg72hcYraa9sp3Fn6uiZmpUdeWMAbtJvT8 WYmcI7U1KRjOfo9UJhfJHomYYuaeBmeyRDzJ52eBQgxEOLLZP6anH0KrVG9f7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548572; 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=P8O2liocHHobhyfEvVkGKYN4LMkUafdqFcYDpcFZUro=; b=iZwcpKL9o+Vh6uqI91yiQCIjOGlUB3FPkN8TvA3oXF8NrcxWXa7OsKF0il+SifsjXVCqyC ULysIXasqOaJKm4Pl59Y10i/noeKf1BbVGOC6UNEHe5Y0H6/6fQB8BIVIzT1Zn82z3IyZd 1mpWUWIPKuB7wJxrYOH+L1EhvRIjqFV5o4wGRoX2txzoMWjKFhoB1yUvFmeNVHhwmvih+R oDCyyrO8mytjWJblp5yvDd/y9g8Uv3qC9IQcNo9bdnE3Q4YHPotSl0WVtRJAuu+LHznSLJ I6Asdum0J5mrqKbkz4A3Cgki9TjvDYeAY7R1HKdSFXiABEWH7Wg6eyfBp6NbSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676548572; a=rsa-sha256; cv=none; b=G20G8cUj2v/aTC2vHf3PYml0qphU2wAow84mAOoXSbvolatnoAbpYjj6FXGUFrcUItxh+x SM5WPZ2D+ffayBEo1xSt+zmJSn4mDaebm5hsuqgLJgsxisTP3CeBhg7LqTliBP9LoLeyKW 91VH53H9gNj/CHPN1wHXzoKYwR3AZTBDbheYV58RqFzXU5V5snNoxpILuaVxzxM3SIbkfe UY65M53IYY8mwArXiTGfGnuLLqRerhVx3V3zE9eBXEOBq6X1wgm8YsLASwfNSgl6egkQCx Hdortlzn1T+zyXRk5duXkUhgnSLVj4ggCGELAkzCaVhmnLDlEWhAi7tyuYgqew== 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 4PHYLg3kCVz13H8; Thu, 16 Feb 2023 11:56:11 +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 31GBuBli055742; Thu, 16 Feb 2023 11:56:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GBuBb0055741; Thu, 16 Feb 2023 11:56:11 GMT (envelope-from git) Date: Thu, 16 Feb 2023 11:56:11 GMT Message-Id: <202302161156.31GBuBb0055741@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: 970fd5aa41cc - stable/13 - linuxkpi: Define `might_alloc()` 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: 970fd5aa41ccef06ce8990743d1bd05de5829899 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=970fd5aa41ccef06ce8990743d1bd05de5829899 commit 970fd5aa41ccef06ce8990743d1bd05de5829899 Author: Jean-Sébastien Pédron AuthorDate: 2023-01-19 00:15:35 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-02-16 11:55:16 +0000 linuxkpi: Define `might_alloc()` ... as a no-op. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38146 (cherry picked from commit 19be627cfda7e509fc3444fd57de8a0a501aee04) --- sys/compat/linuxkpi/common/include/linux/mm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h index be3890edb5cf..9eb5ce7c5280 100644 --- a/sys/compat/linuxkpi/common/include/linux/mm.h +++ b/sys/compat/linuxkpi/common/include/linux/mm.h @@ -348,6 +348,11 @@ void lkpi_unmap_mapping_range(void *obj, loff_t const holebegin __unused, void vma_set_file(struct vm_area_struct *vma, struct linux_file *file); +static inline void +might_alloc(gfp_t gfp_mask __unused) +{ +} + #define is_cow_mapping(flags) (false) #endif /* _LINUXKPI_LINUX_MM_H_ */