--- zzzz-none-000/linux-4.1.52/include/linux/pm.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/pm.h 2022-03-02 11:37:13.000000000 +0000 @@ -39,10 +39,10 @@ extern void pm_vt_switch_required(struct device *dev, bool required); extern void pm_vt_switch_unregister(struct device *dev); #else -static inline void pm_vt_switch_required(struct device *dev, bool required) +static inline void pm_vt_switch_required(struct device *dev __maybe_unused, bool required __maybe_unused) { } -static inline void pm_vt_switch_unregister(struct device *dev) +static inline void pm_vt_switch_unregister(struct device *dev __maybe_unused) { } #endif /* CONFIG_VT_CONSOLE_SLEEP */ @@ -724,19 +724,19 @@ #define device_pm_lock() do {} while (0) #define device_pm_unlock() do {} while (0) -static inline int dpm_suspend_start(pm_message_t state) +static inline int dpm_suspend_start(pm_message_t state __maybe_unused) { return 0; } #define suspend_report_result(fn, ret) do {} while (0) -static inline int device_pm_wait_for_dev(struct device *a, struct device *b) +static inline int device_pm_wait_for_dev(struct device *a __maybe_unused, struct device *b __maybe_unused) { return 0; } -static inline void dpm_for_each_dev(void *data, void (*fn)(struct device *, void *)) +static inline void dpm_for_each_dev(void *data __maybe_unused, void (*fn)(struct device *, void *) __maybe_unused) { }