--- zzzz-none-000/linux-3.10.107/include/linux/pm_wakeup.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/pm_wakeup.h 2021-11-10 11:53:56.000000000 +0000 @@ -112,28 +112,36 @@ return dev->power.can_wakeup; } -static inline void wakeup_source_prepare(struct wakeup_source *ws, - const char *name) {} +static inline void wakeup_source_prepare(struct wakeup_source *ws + __maybe_unused, + const char *name __maybe_unused) {} -static inline struct wakeup_source *wakeup_source_create(const char *name) +static inline struct wakeup_source *wakeup_source_create(const char *name + __maybe_unused) { return NULL; } -static inline void wakeup_source_drop(struct wakeup_source *ws) {} +static inline void wakeup_source_drop(struct wakeup_source *ws __maybe_unused) +{} -static inline void wakeup_source_destroy(struct wakeup_source *ws) {} +static inline void wakeup_source_destroy(struct wakeup_source *ws + __maybe_unused) {} -static inline void wakeup_source_add(struct wakeup_source *ws) {} +static inline void wakeup_source_add(struct wakeup_source *ws __maybe_unused) +{} -static inline void wakeup_source_remove(struct wakeup_source *ws) {} +static inline void wakeup_source_remove(struct wakeup_source *ws + __maybe_unused) {} -static inline struct wakeup_source *wakeup_source_register(const char *name) +static inline struct wakeup_source *wakeup_source_register(const char *name + __maybe_unused) { return NULL; } -static inline void wakeup_source_unregister(struct wakeup_source *ws) {} +static inline void wakeup_source_unregister(struct wakeup_source *ws + __maybe_unused) {} static inline int device_wakeup_enable(struct device *dev) { @@ -165,17 +173,19 @@ return dev->power.can_wakeup && dev->power.should_wakeup; } -static inline void __pm_stay_awake(struct wakeup_source *ws) {} +static inline void __pm_stay_awake(struct wakeup_source *ws __maybe_unused) {} -static inline void pm_stay_awake(struct device *dev) {} +static inline void pm_stay_awake(struct device *dev __maybe_unused) {} -static inline void __pm_relax(struct wakeup_source *ws) {} +static inline void __pm_relax(struct wakeup_source *ws __maybe_unused) {} -static inline void pm_relax(struct device *dev) {} +static inline void pm_relax(struct device *dev __maybe_unused) {} -static inline void __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec) {} +static inline void __pm_wakeup_event(struct wakeup_source *ws __maybe_unused, + unsigned int msec __maybe_unused) {} -static inline void pm_wakeup_event(struct device *dev, unsigned int msec) {} +static inline void pm_wakeup_event(struct device *dev __maybe_unused, + unsigned int msec __maybe_unused) {} #endif /* !CONFIG_PM_SLEEP */