From nobody Mon Apr 15 16:56:32 2024 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 4VJCxX4jMDz5GxLh; Mon, 15 Apr 2024 16:56: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 4VJCxX48Ycz42dk; Mon, 15 Apr 2024 16:56:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713200192; 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=gvNjeYYC/U5hIwua6PXLqITPWs+I5yiLnFZptnZCSEw=; b=xrlR6CmM93LuNUaE3ESeglWT5VjYkkHayjZHPbEjK+7ykJCshDugETyuUNuJVHROaMVn3u AzvIlAqBhygPOBFdHetaSaqLp8V6KSdGZMrfhehjCDZZgiF0dxT5UFF9cAVbocnOWdoMVt 3z7Vnl6kFGWIeyikFWC0mSBtIEuNThJRluy1NYgnYwFraQ1PdQC+yn27YHM+GWBRNx/uSb tL1jZLFZ6paR+pXlawPow8/1CV+MdREVCqnluYQYTsb1OqPxqOa+1fEVh0yyBkFfAxHlEm LF4m2keNMxWtgFcZXtsF5tcMt5kc5vggZLiTA62CdSv59A7tEpbZUYJ7H+V8GA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713200192; a=rsa-sha256; cv=none; b=UWjhjA3D9UW92Qz8FK4Imx2FxsiCZIrvwjPLFsmkTZCn7lKObORB6a0o4FnjaPtxkP/07u gm8F2aEfW9rLcTOLDamDafmuxFEYF0WO36sjAsbiLbGrBn4U8/W2wf2Ett1DYrrycF2GH+ y59mm4y+aEcPdcYihQiWdadLw2MYv69RtLlqyk4diKHt5s4yprsR2FRXH09LOul1Eymdqu moJmnKrSCES3oM5V/o67lysywMhgJtEHrKCtBbkkZgDqY9F2I4yf0BrWQUstrZKriznN80 tnF8Kn9+WufKm8l6cuIDIx5JQ3Jr++cR4qAbgy/rl79y2+T4EuQNur+7PneSIg== 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=1713200192; 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=gvNjeYYC/U5hIwua6PXLqITPWs+I5yiLnFZptnZCSEw=; b=Alfl1PmBP1fJOU1AWYJtj3chYBK9xd8nCpIvcMqeLSShxaFmFmop/9dbDZbEqwa/3hT3CV Fnr1x4CDrxTz6MWkfxTk7Ddf4f7zotTqcEVwwR4EP+ByNUFFDSnG0OTG322G+cxS8JYmK7 rGRTEuhzqOjcG68jhFWucojZAnG/Ur6GTjI5heqLZQnn+qeqacBgkCOvH5S8GnOLvxaf00 214k40zjf+UvWJmN6whKMx55kGhCc035RPRFNzBHKC9qoTzBAzQVvpG06lihISDJfuhIto yjp3VxSI6dszYSJMDO0GVNHrFkX3C9A8304J1eArCqn/G3tFDla+ap4uvadh0w== 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 4VJCxX3gs7z17Bg; Mon, 15 Apr 2024 16:56:32 +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 43FGuWs6056315; Mon, 15 Apr 2024 16:56:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43FGuWaC056312; Mon, 15 Apr 2024 16:56:32 GMT (envelope-from git) Date: Mon, 15 Apr 2024 16:56:32 GMT Message-Id: <202404151656.43FGuWaC056312@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 170c2e0e2bb1 - main - LinuxKPI: add devm_kfree() 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 170c2e0e2bb1b2d9a7661ba729f8264381c9d9d7 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=170c2e0e2bb1b2d9a7661ba729f8264381c9d9d7 commit 170c2e0e2bb1b2d9a7661ba729f8264381c9d9d7 Author: Bjoern A. Zeeb AuthorDate: 2024-04-02 09:45:43 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-04-15 16:55:59 +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 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D44589 --- 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 77c7a253a2e8..668fe9cb8650 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -283,6 +283,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)