From nobody Wed Sep 7 15:10:32 2022 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 4MN5Kh5PWLz4bPMq; Wed, 7 Sep 2022 15:10:32 +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 4MN5Kh2Trfz3Zj0; Wed, 7 Sep 2022 15:10:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563432; 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=/qqEFDT/RrgK3qBSlLWaeBjHyG+kMLwtwa134QILqek=; b=WfXdDPr5+NyR/A6zmFVWpZrkfnrSUy6vC5irrinILK/spSoUgTP5bWPJhV5E8ygOgQxCCh g9zzJb01GYGVT+hr1vq1KDgt9wSawzkSpVNWtNDDRTt0uossJBgO76AaGlTCSb+B+ML4bT lT7kL7Ttnh39l6+Yc07R9L3BcK4EwS4ZlIiNIEcuSc4jxeP/n/9T/cxKQB2+Spzjp8TeL9 xyUONErIaRsYLz/X62srf8PG4n0uBY4BUXAr7/2ScTN0EkzCzkNx6Wg5ba3DW4Hxf7b9AA 1JdRCbPsndp3hy0leGFHvuZSVlhT0YvI4IsWBXwBjvIeUNKgJx6iGdRCJgth8g== 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 4MN5Kh1bYVzZ8q; Wed, 7 Sep 2022 15:10:32 +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 287FAWZF026393; Wed, 7 Sep 2022 15:10:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 287FAWXx026392; Wed, 7 Sep 2022 15:10:32 GMT (envelope-from git) Date: Wed, 7 Sep 2022 15:10:32 GMT Message-Id: <202209071510.287FAWXx026392@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: d43c533ecbff - stable/13 - linuxkpi: Add stub kmem_cache_shrink 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d43c533ecbff8aef5aad245280bb8d3f1d592054 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563432; 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=/qqEFDT/RrgK3qBSlLWaeBjHyG+kMLwtwa134QILqek=; b=scAy23g2eDRXEF5YqvtXNmOcCvAgMt4BYADVOABZqwHKFvpCuzX+YMKKpiiS5z3zYlCRYp 4hdAE5eP4O1aEhwTAPPq4pqKIdZu6QRjB4DbVYJLb6XDMKVHK6Q2jSTspcYpxIoGJEbZqI oyxxL7QZYl1WJcyRuG/UH5rWaK2q0Zupw16Gu7IORVodlMMJ/w60h6YRDaEmn0IQ/sGBIB r3IBsvijYeMq3wtr6vbi1tNRfMCor/mti0B4D6SMB1PyeF6U6NmRmlR1wRu1H8ulZgaE5J 8OLCSUliBPQBIw0P32jkUFVBKpP5LvEP2DT31EOBxiS+gF1I1bEegEH2yWxSog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662563432; a=rsa-sha256; cv=none; b=RXM8oovxh3a6UnrEeJ178rBJywDY+EzLSYVQ1R/+BotLkLc7EUI5tqQ8cowGLeZgUIVDo5 1hhl/xHlVyoYjVtgTIA3Sq1+ZJNMBfXRVenbc7wQ7otRnCu0FMlwC9nruqjHKq2tkDUw0i cA/vAm5h3Oc2etmHGP65YjWD0v+eY+QieSUha0rAnX/Y5KDsNMfxNzJdvrkFg0JbXMx+wy YUHS8tgv3gSQI75ZW25PQCSbI422zY/46k81x0XfbyhvGnW4vkvNG1pSC74mBkCHA88XTB eVlsD5rqDiSI1iHGL53cFAfVFCKB5pxxcmbbCojWv8MJUUdmF4fC1Au66pES9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=d43c533ecbff8aef5aad245280bb8d3f1d592054 commit d43c533ecbff8aef5aad245280bb8d3f1d592054 Author: Emmanuel Vadot AuthorDate: 2022-08-09 12:50:04 +0000 Commit: Emmanuel Vadot CommitDate: 2022-09-07 15:09:05 +0000 linuxkpi: Add stub kmem_cache_shrink Needed by drm-kmod. Reviewed by: bz Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36108 (cherry picked from commit 35b7625ed026d8afaf3e8e27bc9d1067d38dbde6) --- sys/compat/linuxkpi/common/include/linux/slab.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linuxkpi/common/include/linux/slab.h b/sys/compat/linuxkpi/common/include/linux/slab.h index 00b4e12094d8..7d590683f346 100644 --- a/sys/compat/linuxkpi/common/include/linux/slab.h +++ b/sys/compat/linuxkpi/common/include/linux/slab.h @@ -67,6 +67,7 @@ MALLOC_DECLARE(M_KMALLOC); #define kmem_cache_zalloc(...) lkpi_kmem_cache_zalloc(__VA_ARGS__) #define kmem_cache_free(...) lkpi_kmem_cache_free(__VA_ARGS__) #define kmem_cache_destroy(...) linux_kmem_cache_destroy(__VA_ARGS__) +#define kmem_cache_shrink(x) (0) #define KMEM_CACHE(__struct, flags) \ linux_kmem_cache_create(#__struct, sizeof(struct __struct), \