git: 1396a7316f40 - main - linuxkpi: Print "TODO" if a driver call `pci_wake_from_d3()`

From: Jean-Sébastien Pédron <dumbbell_at_FreeBSD.org>
Date: Wed, 19 Feb 2025 20:48:06 UTC
The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=1396a7316f40267e8ff28b9d2d79206ebb20a330

commit 1396a7316f40267e8ff28b9d2d79206ebb20a330
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2025-02-05 18:17:07 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2025-02-19 20:39:46 +0000

    linuxkpi: Print "TODO" if a driver call `pci_wake_from_d3()`
    
    This helps developers working with linuxkpi find out a function is
    already defined but is just a stub.
    
    Reported by:    bz
    Reviewed by:    bz, emaste
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D48862
---
 sys/compat/linuxkpi/common/include/linux/pci.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index b3f89760dac9..31475d6dc7c3 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -60,6 +60,8 @@
 #include <linux/pci_ids.h>
 #include <linux/pm.h>
 
+#include <linux/kernel.h>	/* pr_debug */
+
 struct pci_device_id {
 	uint32_t	vendor;
 	uint32_t	device;
@@ -1504,6 +1506,7 @@ static inline int
 pci_wake_from_d3(struct pci_dev *pdev, bool enable)
 {
 
+	pr_debug("%s: TODO\n", __func__);
 	return (0);
 }