--- zzzz-none-000/linux-4.1.38/include/linux/pm_wakeup.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/linux/pm_wakeup.h 2020-11-25 10:06:48.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 */