--- zzzz-none-000/linux-3.10.107/include/linux/pm_qos.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/pm_qos.h 2021-11-10 11:53:56.000000000 +0000 @@ -144,37 +144,48 @@ int dev_pm_qos_add_ancestor_request(struct device *dev, struct dev_pm_qos_request *req, s32 value); #else -static inline enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, - s32 mask) - { return PM_QOS_FLAGS_UNDEFINED; } -static inline enum pm_qos_flags_status dev_pm_qos_flags(struct device *dev, - s32 mask) - { return PM_QOS_FLAGS_UNDEFINED; } -static inline s32 __dev_pm_qos_read_value(struct device *dev) - { return 0; } -static inline s32 dev_pm_qos_read_value(struct device *dev) - { return 0; } -static inline int dev_pm_qos_add_request(struct device *dev, - struct dev_pm_qos_request *req, - enum dev_pm_qos_req_type type, - s32 value) - { return 0; } -static inline int dev_pm_qos_update_request(struct dev_pm_qos_request *req, - s32 new_value) - { return 0; } -static inline int dev_pm_qos_remove_request(struct dev_pm_qos_request *req) +static inline enum pm_qos_flags_status __dev_pm_qos_flags( + struct device *dev __maybe_unused, + s32 mask __maybe_unused) +{ + return PM_QOS_FLAGS_UNDEFINED; +} +static inline enum pm_qos_flags_status dev_pm_qos_flags( + struct device *dev __maybe_unused, + s32 mask __maybe_unused) +{ + return PM_QOS_FLAGS_UNDEFINED; +} +static inline s32 __dev_pm_qos_read_value(struct device *dev __maybe_unused) { return 0; } -static inline int dev_pm_qos_add_notifier(struct device *dev, - struct notifier_block *notifier) +static inline s32 dev_pm_qos_read_value(struct device *dev __maybe_unused) { return 0; } -static inline int dev_pm_qos_remove_notifier(struct device *dev, - struct notifier_block *notifier) +static inline int dev_pm_qos_add_request( + struct device *dev __maybe_unused, + struct dev_pm_qos_request *req __maybe_unused, + enum dev_pm_qos_req_type type __maybe_unused, + s32 value __maybe_unused) + { return 0; } +static inline int dev_pm_qos_update_request( + struct dev_pm_qos_request *req __maybe_unused, + s32 new_value __maybe_unused) + { return 0; } +static inline int dev_pm_qos_remove_request( + struct dev_pm_qos_request *req __maybe_unused) + { return 0; } +static inline int dev_pm_qos_add_notifier( + struct device *dev __maybe_unused, + struct notifier_block *notifier __maybe_unused) + { return 0; } +static inline int dev_pm_qos_remove_notifier( + struct device *dev __maybe_unused, + struct notifier_block *notifier __maybe_unused) { return 0; } static inline int dev_pm_qos_add_global_notifier( - struct notifier_block *notifier) + struct notifier_block *notifier __maybe_unused) { return 0; } static inline int dev_pm_qos_remove_global_notifier( - struct notifier_block *notifier) + struct notifier_block *notifier __maybe_unused) { return 0; } static inline void dev_pm_qos_constraints_init(struct device *dev) { @@ -184,8 +195,10 @@ { dev->power.power_state = PMSG_INVALID; } -static inline int dev_pm_qos_add_ancestor_request(struct device *dev, - struct dev_pm_qos_request *req, s32 value) +static inline int dev_pm_qos_add_ancestor_request( + struct device *dev __maybe_unused, + struct dev_pm_qos_request *req __maybe_unused, + s32 value __maybe_unused) { return 0; } #endif @@ -206,17 +219,31 @@ return dev->power.qos->flags_req->data.flr.flags; } #else -static inline int dev_pm_qos_expose_latency_limit(struct device *dev, s32 value) - { return 0; } -static inline void dev_pm_qos_hide_latency_limit(struct device *dev) {} -static inline int dev_pm_qos_expose_flags(struct device *dev, s32 value) - { return 0; } -static inline void dev_pm_qos_hide_flags(struct device *dev) {} -static inline int dev_pm_qos_update_flags(struct device *dev, s32 m, bool set) +static inline int dev_pm_qos_expose_latency_limit( + struct device *dev __maybe_unused, + s32 value __maybe_unused) + { return 0; } +static inline void dev_pm_qos_hide_latency_limit( + struct device *dev __maybe_unused) {} +static inline int dev_pm_qos_expose_flags(struct device *dev __maybe_unused, + s32 value __maybe_unused) + { return 0; } +static inline void dev_pm_qos_hide_flags(struct device *dev __maybe_unused) {} +static inline int dev_pm_qos_update_flags(struct device *dev __maybe_unused, + s32 m __maybe_unused, + bool set __maybe_unused) { return 0; } -static inline s32 dev_pm_qos_requested_latency(struct device *dev) { return 0; } -static inline s32 dev_pm_qos_requested_flags(struct device *dev) { return 0; } +static inline s32 dev_pm_qos_requested_latency( + struct device *dev __maybe_unused) +{ + return 0; +} +static inline s32 dev_pm_qos_requested_flags( + struct device *dev __maybe_unused) +{ + return 0; +} #endif #endif