From nobody Mon Apr 22 19:44:02 2024 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 4VNbKb2NL9z5HlyL; Mon, 22 Apr 2024 19:44:03 +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 4VNbKb0SrNz4mdj; Mon, 22 Apr 2024 19:44:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713815043; 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=TPC55nbiBlqGZSfvM5VaQHHU0rPzmIznjxTYTmwOIc8=; b=BAKaF6DJicrmASqxQitJmmM+uu7iBeT+xdn0J4ZiSd1ngln50HijKDub8vex1boknDxmIi 2UB+h86hwiFSerlzIOruN2I8nlHBp0vob1cwF0ivkfNXLNvqGt9TIoldUdXYHqzHDu6N/E cVpxBo6AJTVy0Q2e0gqB0wwoUmhE2D9z5vzFPzsW+cWw7gb0pc4WltFxXXtojBQfw4dP7k 1D4J00PGB18Ex5JxIgjg/pnnIR7xVbYdOgeGq5NA1QJJdVlN++VfgBo5kuXAg0nM1ENDNO piuiSGbh79oKFzBZB0EktpxomhBW3aPPzs59j4D/F7xRk7sRhMSvh9nS3jp9Dg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713815043; a=rsa-sha256; cv=none; b=it3nnBrnIacpxYujBZu7kQJRuj/LX0+X9QcxIfxPgX8PZ3q05+hM9XEHSoBVnwalOVc/lJ /QN6sR3kDuvv5meJauxzEUdACK/FoEoKqhZXkcepby1ZjTGKYp2seNezpw1W4kj/KhytTj Y8maU49ezCMRjHg0V2V8ZfjRt8wFqEeqPJX3ErGFu8hC/qqDDrzfQPCZPb6xdlIdi3EvPP NhviR/GRrKbLcD6j1DZE38EnGdqNSByGcfJUlxUu+F8Wj9904wM8Hxiy6jC90k+diOnhDm zDtlBqZqS1J2u+qdvwOxFOsklaLxcOjBEzSLEvGY5nTImd4U46Wo1nayi5VY3g== 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=1713815043; 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=TPC55nbiBlqGZSfvM5VaQHHU0rPzmIznjxTYTmwOIc8=; b=V9AZTzBDlrwLKV42InlWVCmXgu8T9CeVSvr7GN0OeG1YJVkIx6Zayltr/UCq44EhRYAWXc BTohy7zSZKTBohvFPBRP68CSVVUshT6UWYwqoSlUf2S+n8tuDu34gxExS49/FhJZWgBSLR PJ8WnNO7dWRU7EgXZKzZxTYZlhUxU9KhKGeulQIg4fmbDVoDseS+ifzPxOsPcdEJDCy0nv QW2Y8qCo8D3qpsErjSutQt93WtsOoyU14tB+Y1SF0L26u1wr/ZTGOTiYwEFs9IDYHZYsNa 3g3MR99TZdEGKmlsW6woVyXuTDk6gtZkuOhesQz5zPERlHOfs0XklE5hK0Nxnw== 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 4VNbKb04fNz11qn; Mon, 22 Apr 2024 19:44:03 +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 43MJi2Sq032262; Mon, 22 Apr 2024 19:44:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43MJi2Ag032259; Mon, 22 Apr 2024 19:44:02 GMT (envelope-from git) Date: Mon, 22 Apr 2024 19:44:02 GMT Message-Id: <202404221944.43MJi2Ag032259@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: 24293e9f97a4 - stable/14 - LinuxKPI: add devm_kfree() 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: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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: 24293e9f97a4ade4b0ea785ff4d892d4ed50f6a6 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=24293e9f97a4ade4b0ea785ff4d892d4ed50f6a6 commit 24293e9f97a4ade4b0ea785ff4d892d4ed50f6a6 Author: Bjoern A. Zeeb AuthorDate: 2024-04-02 09:45:43 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-04-22 17:00:08 +0000 LinuxKPI: add devm_kfree() mt76 calls devm_kfree() directly, so alias it to our lkpi_devm_kmalloc_release() function. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44589 (cherry picked from commit 170c2e0e2bb1b2d9a7661ba729f8264381c9d9d7) --- sys/compat/linuxkpi/common/include/linux/device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h index 7e5b1423311b..4ac041298ab7 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -281,6 +281,7 @@ int lkpi_devres_destroy(struct device *, void(*release)(struct device *, void *) void lkpi_devres_release_free_list(struct device *); void lkpi_devres_unlink(struct device *, void *); void lkpi_devm_kmalloc_release(struct device *, void *); +#define devm_kfree(_d, _p) lkpi_devm_kmalloc_release(_d, _p) static inline const char * dev_driver_string(const struct device *dev)