From e8a029b5e74e4262aa498da9e7dd11b46f9a4aaf Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 12 Nov 2010 11:14:44 -0800 Subject: [PATCH] compat: fix pm_qos_params compile error on 2.6.35 Linux 2.6.35 pm_qos_params.h is missing a #ifndef/define/endif around its header file contents, causing a compile error when its functions are overwritten by macros in the compat header files. Fix this by adding these to the compat version of this header file. Signed-off-by: Felix Fietkau --- include/linux/pm_qos_params.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/pm_qos_params.h b/include/linux/pm_qos_params.h index e1f083c4e858..d0e3ad863aad 100644 --- a/include/linux/pm_qos_params.h +++ b/include/linux/pm_qos_params.h @@ -1,5 +1,8 @@ #include +#ifndef __COMPAT_LINUX_PM_QOS_PARAMS_H +#define __COMPAT_LINUX_PM_QOS_PARAMS_H + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) #include_next #else @@ -30,3 +33,4 @@ int pm_qos_add_notifier(int qos, struct notifier_block *notifier); int pm_qos_remove_notifier(int qos, struct notifier_block *notifier); #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) */ +#endif -- 2.30.2