From nobody Fri Jul 4 03:22:39 2025 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 4bYJq44XZZz60Vhx; Fri, 04 Jul 2025 03:22:40 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bYJq42RVzz3Vg5; Fri, 04 Jul 2025 03:22:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751599360; 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=MRDtt6JbKxCcpmtb9ycT0HeOEdImzuWNrPFoZZSraFs=; b=NN8EXZbEB46TfHcgqnMgRAIeQGnPKqYIAbmnrobmUvTTbwC8xoCMk6VfJv6Ul+0Aao1JSg /I7AsDJLfnQZkzrU3BfBX/7gp+KbqsPyHk0YyWTBykdVZowPukmcj1XcjyDgOy06ere/NE x5pf+ZyVEIAeDiguKeSkQQc38CYLgFYvwlCsOvifQ5cC/S9Z5EIwCSeqi7bjZGyb45Yy54 xFS5wCryXh8AGfBStm54ipmtHXYJNhCVZuX0qU064/dg8QeMm/LmzkVnPqpw4AL+zPruqo QWmOhFUEAgJz9ully0ik6sKEbETRHwza+IU16th/VjVCXluZ7TmH/fRXaTX0Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751599360; 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=MRDtt6JbKxCcpmtb9ycT0HeOEdImzuWNrPFoZZSraFs=; b=Id1Sl1uUY5B12PkT21VBiErJv/ESr/RyEzD20XMxhkXV31/0rourqljClcqw5EXQTJRjsa 61D4Q7Nre/aVZDKjKlIU+sSy0xtEFFyPT3n9fyEQ1y4Ku8/mXl7FdZeLHaEETKd2bsosA7 w3K0E5K3NbsbU/HbpYn0kXFpux/G9QThGXZkRpdDG3yPymyqEVbcTROgNSk8re5ZwH7JDu rFOVo5Ub6BTwkXR5HnDfb7Y0uAffF5dK//ZEUFpM5fc9FT0P5TLDNeFvxJLTPCw1zDdLW8 4ZdzVKauoUmXOl3h6JSNBtwSj6asXOKzqGIDnt4bsc800UbXeW3MwTeGIRgiEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1751599360; a=rsa-sha256; cv=none; b=H4pa5ObcCW8zWQuJfFd5tZNKry3qoFGZHlTiKH3wrO1gfiWTJzN3A9En6vqgtOb/6BkHu/ zD2Ab3+bCZ8YcWoyAB2P7mndotG67Z82qWj1RCpQJlRQzz8gcbMmQ4XEaW8ZmEP/LZhViH uMwThozjfzTMlHbTpCSlap9ipDoqpVPKdMRxrK9CiPLHbgWk+zlFrfZujIL/C1ZfawCEpy Eh0ZAld4h1NsW6IRzSWFLWDfH9RKs/cvBUSamOf7XwuuaqWnYHs8OAz3T8nD8fk9kfE5AH o+frElkV7eWSvXhqFTptQmWp/KlRiVP7Mjy8bfWhbDXT9ShbfezRwmJA6EBYAA== 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 4bYJq41yc6zYsv; Fri, 04 Jul 2025 03:22:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5643MdBL079622; Fri, 4 Jul 2025 03:22:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5643Md3E079619; Fri, 4 Jul 2025 03:22:39 GMT (envelope-from git) Date: Fri, 4 Jul 2025 03:22:39 GMT Message-Id: <202507040322.5643Md3E079619@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: 16c6a3444a19 - main - LinuxKPI: device.h add (*shutdown) 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: 16c6a3444a1913e01ce0fce4257c52b5969da10a Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=16c6a3444a1913e01ce0fce4257c52b5969da10a commit 16c6a3444a1913e01ce0fce4257c52b5969da10a Author: Bjoern A. Zeeb AuthorDate: 2024-07-29 16:10:29 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-07-04 03:22:22 +0000 LinuxKPI: device.h add (*shutdown) There are too many ways to call (*shutdown)() and others in Linux it seems; rather than using the one from dev_pm_ops or directly on the bus system device, some wireless drivers are setting it on struct device_driver so add it. Bump __FreeBSD_version as this changes the size of various other structs which have struct device_driver embedded. Sponsored by: The FreeBSD Foundation Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D50679 --- sys/compat/linuxkpi/common/include/linux/device.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h index a5f6874a07f6..2556b0c45e49 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -90,6 +90,8 @@ struct dev_pm_ops { struct device_driver { const char *name; const struct dev_pm_ops *pm; + + void (*shutdown) (struct device *); }; struct device_type {