]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Remove compat_list.h
authorVMware, Inc <>
Mon, 26 Jul 2010 18:24:08 +0000 (11:24 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 18:24:08 +0000 (11:24 -0700)
Kernels 2.6.9 and newer have all required list handling routines.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/shared/compat_list.h [deleted file]
open-vm-tools/modules/linux/vmhgfs/transport.c
open-vm-tools/modules/linux/vsock/linux/af_vsock.c
open-vm-tools/modules/linux/vsock/linux/util.c

diff --git a/open-vm-tools/modules/linux/shared/compat_list.h b/open-vm-tools/modules/linux/shared/compat_list.h
deleted file mode 100644 (file)
index 333557b..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*********************************************************
- * Copyright (C) 2006 VMware, Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation version 2 and no later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
- *
- *********************************************************/
-
-#ifndef __COMPAT_LIST_H__
-#   define __COMPAT_LIST_H__
-
-#include <linux/list.h>
-
-/*
- * list_add_tail is with us since 2.4.0, or something like that.
- */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
-#define list_add_tail(newe, head) do {  \
-   struct list_head *__h = (head);      \
-   __list_add((newe), __h->prev, __h);  \
-} while (0)
-#endif
-
-/*
- * list_for_each_safe() showed up in 2.4.10, but it may be backported so we
- * just check for its existence.
- */
-#ifndef list_for_each_safe
-# define list_for_each_safe(pos, n, head) \
-         for (pos = (head)->next, n = pos->next; pos != (head); \
-                 pos = n, n = pos->next)
-#endif
-
-/*
- * list_for_each_entry() showed up in 2.4.20, but it may be backported so we
- * just check for its existence.
- */
-#ifndef list_for_each_entry
-# define list_for_each_entry(pos, head, member) \
-         for (pos = list_entry((head)->next, typeof(*pos), member); \
-              &pos->member != (head); \
-              pos = list_entry(pos->member.next, typeof(*pos), member))
-#endif
-
-#endif /* __COMPAT_LIST_H__ */
index 728b95fc2dd67eadd6e88dd2e72431bc160736eb..b52dc0468e9c5e44a3f9c8f6030799d5c47f9960 100644 (file)
@@ -33,7 +33,7 @@
 #include "driver-config.h"
 
 #include <linux/errno.h>
-#include "compat_list.h"
+#include <linux/list.h>
 #include "compat_mutex.h"
 #include "compat_sched.h"
 #include "compat_spinlock.h"
index 214439639fd0d81d67b6122b7b7144717800aa55..a6a10a018ff8e2b4b98585208b925aef77bef785 100644 (file)
 #include <linux/smp.h>
 #include <linux/smp_lock.h>
 #include <linux/bitops.h>
+#include <linux/list.h>
 #include <asm/io.h>
 #if defined(__x86_64__) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12)
 #   include <linux/ioctl32.h>
@@ -119,7 +120,6 @@ sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
 #include "compat_wait.h"
 #include "compat_version.h"
 #include "compat_workqueue.h"
-#include "compat_list.h"
 #include "compat_mutex.h"
 
 #include "vmware.h"
index a776321ee694a13c8639034398cea5956fb98d91..1e9fdea2864bac5b0e9433cab7c6773ab143c87d 100644 (file)
@@ -24,9 +24,9 @@
  */
 
 #include "driver-config.h"
+#include <linux/list.h>
 #include <linux/socket.h>
 #include "compat_sock.h"
-#include "compat_list.h"
 
 #include "af_vsock.h"
 #include "util.h"