From nobody Thu Aug 18 09:10:09 2022 X-Original-To: dev-commits-src-main@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 4M7fH56X4bz4Ywxd; Thu, 18 Aug 2022 09:10:09 +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 4M7fH55dLQz3Pmh; Thu, 18 Aug 2022 09:10:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660813809; 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=fZobKDA+NxucJwO50thGdl5yQqfkbzvro7ZIDfp/RLc=; b=tpJQpND8idwVqgbsaGIA3gnJiUBsBYdlMI+CDmP1FaaP8qEB5GKOgWnQBA1PSqxuCuFpTC 5QCg8PREl3sAdHGHKk3C48ZNblokKDsUIRTfAqbI2eWS0OwxzAcmzJN5R8oPZdbXnhoRiK e4AUWGSrQnxKbCAXA1fRLBnKiti+H85hdRHA4zek4uSHBpHuBQ2VQ3KMmKP/S2ApJ6YbZi wXk0Y2lxC21bJFRbNa1fre1BjjJi/sus7PDBCRW0CM5X7FMNyvRHBduxGRoUiSz49S5rkY 4VcqhYU5trpjnKdu3CCvN8wiCWjCc9oAy2HfQ3nUpHmY/377Pp3YbnzCA9q+rQ== 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 4M7fH54Z1zz1Msn; Thu, 18 Aug 2022 09:10:09 +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 27I9A9gr017881; Thu, 18 Aug 2022 09:10:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27I9A9RW017879; Thu, 18 Aug 2022 09:10:09 GMT (envelope-from git) Date: Thu, 18 Aug 2022 09:10:09 GMT Message-Id: <202208180910.27I9A9RW017879@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 35b7625ed026 - main - linuxkpi: Add stub kmem_cache_shrink List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 35b7625ed026d8afaf3e8e27bc9d1067d38dbde6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660813809; 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=fZobKDA+NxucJwO50thGdl5yQqfkbzvro7ZIDfp/RLc=; b=pgEpHPJ6LrCdgijqmy2/B11eb/MnBkevZ3PsqNwg67vGO2KvlZP1ebqHUFwJCqvIA5+tVW stKifrTjBXxtW08W/aO8S7744MvDcnqEvCRBUGS+5YJtYSUfbeFTlm83kS6MdLajArPSjC /RUrov42sVng37QMTLmqQmH8uu47NZmLhstz9dD0p/EfZE5Mlggft4H4VMOiAQ0iZzhLBD G8Gt+7dB4Otoe9WQhtG4WowqcnOddIvBLo/xTpJmNY1UdaNjCmxmvu+RMIfNFw8m7t4TTN tR5pE604iZivsCFQOaszOlpDBilNUdYDNB0ysxelbpAONZ50Rl7vopf2sn13EA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660813809; a=rsa-sha256; cv=none; b=MfJzGX+koe6Poy3sTbWtBMEn3xl2KRVbXOQtnGSOQ4VjOLkMt+PVLUpALit0s23hFgcKXB 8tFsPblcG5c0uTYr1RmUIGjbRlIS1cd/yLxnShAUPgWZlq9wPho5D94yZ71hPeI5UOfuFf 2b0K1zzcbEORtGZY3bV1vqjeQnV3orYBO3NjIZHkgNSMr4cpxgXgXlikIX1CBW1oeyQwZR +aEmbLO8RHb+WFnBDgqhY4ZJmcmBBZjcMSPOgjXpJPMXZ00pbANkrxXitAy45MAKSzanH1 Vuk5AG8qGp1kSntDKlSHtJZDfJhhGVU4MAbdTNcUWQ1i6dO1Od1iSvuXqukJ3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=35b7625ed026d8afaf3e8e27bc9d1067d38dbde6 commit 35b7625ed026d8afaf3e8e27bc9d1067d38dbde6 Author: Emmanuel Vadot AuthorDate: 2022-08-09 12:50:04 +0000 Commit: Emmanuel Vadot CommitDate: 2022-08-18 07:46:47 +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 --- 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 1228c4d07aa6..16b5afcea693 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), \