This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new b53b449847 pm: make compile dummy when PM not enabled.
b53b449847 is described below

commit b53b449847d79b2223814b6794dd0804beb098c2
Author: buxiasen <[email protected]>
AuthorDate: Mon Jun 3 15:36:14 2024 +0800

    pm: make compile dummy when PM not enabled.
    
    Signed-off-by: buxiasen <[email protected]>
---
 include/nuttx/power/pm.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/nuttx/power/pm.h b/include/nuttx/power/pm.h
index 54d6f16ce5..8b9a3f2c3c 100644
--- a/include/nuttx/power/pm.h
+++ b/include/nuttx/power/pm.h
@@ -837,7 +837,9 @@ void pm_auto_updatestate(int domain);
 #  define PM_WAKELOCK_DECLARE(v,n,d,s)
 #  define PM_WAKELOCK_DECLARE_STATIC(v,n,d,s)
 #  define pm_initialize()
+#  define pm_domain_register(domain,cb)       (0)
 #  define pm_register(cb)                     (0)
+#  define pm_domain_unregister(domain,cb)     (0)
 #  define pm_unregister(cb)                   (0)
 #  define pm_activity(domain,prio)
 #  define pm_stay(domain,state)

Reply via email to