From 75beeeb87687804c1610480ab5efcf17b0f73a86 Mon Sep 17 00:00:00 2001 From: proski Date: Sun, 4 May 2008 23:07:39 +0000 Subject: [PATCH] Define gfp_t before it's used git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3597 0192ed92-7a03-0410-a25b-9323aeb14dbd --- include/compat.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/compat.h b/include/compat.h index 4c011fa..c1b3d69 100644 --- a/include/compat.h +++ b/include/compat.h @@ -58,6 +58,10 @@ #define __force #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) +typedef int gfp_t; +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,3) static inline void *kzalloc(size_t size, gfp_t flags) { @@ -154,10 +158,6 @@ static inline void *kzalloc(size_t size, gfp_t flags) #define __iomem #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) -typedef int gfp_t; -#endif - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16) static inline int timeval_compare(struct timeval *lhs, struct timeval *rhs) {