From: Luis R. Rodriguez Date: Mon, 6 Jul 2009 20:02:05 +0000 (-0700) Subject: Fix 2.6.23 compat header X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5a2073b30eff2c22abae901e6d48181a034a9757;p=openwrt%2Fstaging%2Fblogic.git Fix 2.6.23 compat header Signed-off-by: Luis R. Rodriguez --- diff --git a/compat/compat-2.6.23.h b/compat/compat-2.6.23.h index 655cb929ec52..51076b471671 100644 --- a/compat/compat-2.6.23.h +++ b/compat/compat-2.6.23.h @@ -8,6 +8,11 @@ /* Compat work for < 2.6.23 */ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) +#include +#include +#include +#include + /* * Tell gcc if a function is cold. The compiler will assume any path * directly leading to the call is unlikely. @@ -58,12 +63,6 @@ static inline void tcf_destroy_chain_compat(struct tcf_proto **fl) } } -#else - -#define tcf_destroy_chain_compat tcf_destroy_chain - -#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) */ - /* dev_mc_list was replaced with dev_addr_list as of 2.6.23, * only new member added is da_synced. */ #define dev_addr_list dev_mc_list @@ -131,6 +130,8 @@ static inline void set_freezable(void) static inline void set_freezable(void) {} #endif /* CONFIG_PM_SLEEP */ +#else +#define tcf_destroy_chain_compat tcf_destroy_chain #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)) */ #endif /* LINUX_26_23_COMPAT_H */