git: 1a71288abcdf - releng/15.0 - LinuxKPI: device_driver add (*coredump)()

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 23 Oct 2025 23:37:10 UTC
The branch releng/15.0 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=1a71288abcdf1c7f0ea7e684c1445b0a38a5cd97

commit 1a71288abcdf1c7f0ea7e684c1445b0a38a5cd97
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-10-11 09:23:43 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-10-23 23:32:07 +0000

    LinuxKPI: device_driver add (*coredump)()
    
    Needed by multiple wireless driver for the v6.17 update (likely earlier
    versions already).
    
    Approved by:    re (cperciva)
    Reviewed by:    dumbbell
    Differential Revision: https://reviews.freebsd.org/D53206
    
    (cherry picked from commit 8ea366f40084010c14fe40b3aebb42b459b195cc)
    (cherry picked from commit 0741aa3c7230f24472d915e44121c0b92d75c3a1)
---
 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 7dd6340746d2..c291133e2e0b 100644
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -92,6 +92,7 @@ struct device_driver {
 	const struct dev_pm_ops *pm;
 
 	void (*shutdown) (struct device *);
+	void (*coredump) (struct device *);
 };
 
 struct device_type {