|
Subject: revision 3845 committed Newsgroups: gmane.linux.drivers.madwifi.cvs Date: 2008-08-27 15:55:20 GMT (19 weeks, 2 days, 12 hours and 9 minutes ago)
Project : madwifi
Revision : 3845
Author : proski (Pavel Roskin)
Date : 2008-08-27 17:55:20 +0200 (Wed, 27 Aug 2008)
Log Message :
Backport kzalloc() from trunk
It's needed for consistent crypto testing implementation in all
branches.
Affected Files:
* madwifi/branches/madwifi-0.9.4/include/compat.h updated
Modified: madwifi/branches/madwifi-0.9.4/include/compat.h
===================================================================
--- madwifi/branches/madwifi-0.9.4/include/compat.h 2008-08-04 12:32:43 UTC (rev 3844)
+++ madwifi/branches/madwifi-0.9.4/include/compat.h 2008-08-27 15:55:20 UTC (rev 3845)
@@ -118,6 +118,18 @@
#ifdef __KERNEL__
#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
+typedef int gfp_t;
+
+static inline void *kzalloc(size_t size, gfp_t flags)
+{
+ void *p = kmalloc(size, flags);
+ if (likely(p != NULL))
+ memset(p, 0, size);
+ return p;
+}
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)
#define ATH_REGISTER_SYSCTL_TABLE(t) register_sysctl_table(t, 1)
#else
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
|
|
|