Author: hselasky
Date: Wed Mar 18 08:46:08 2015
New Revision: 280208
URL: https://svnweb.freebsd.org/changeset/base/280208

Log:
  Declare missing symbol and inline macro which is only used once.
  
  MFC after:    2 weeks
  Sponsored by: Mellanox Technologies
  Submitted by: glebius@

Modified:
  head/sys/ofed/include/linux/linux_compat.c

Modified: head/sys/ofed/include/linux/linux_compat.c
==============================================================================
--- head/sys/ofed/include/linux/linux_compat.c  Wed Mar 18 06:09:37 2015        
(r280207)
+++ head/sys/ofed/include/linux/linux_compat.c  Wed Mar 18 08:46:08 2015        
(r280208)
@@ -56,6 +56,7 @@
 #include <linux/mm.h>
 #include <linux/io.h>
 #include <linux/vmalloc.h>
+#include <linux/netdevice.h>
 
 #include <vm/vm_pager.h>
 
@@ -67,18 +68,13 @@ MALLOC_DEFINE(M_KMALLOC, "linux", "Linux
 #undef file
 #undef cdev
 #define        RB_ROOT(head)   (head)->rbh_root
-#undef LIST_HEAD
-/* From sys/queue.h */
-#define LIST_HEAD(name, type)                                          \
-struct name {                                                          \
-       struct type *lh_first;  /* first element */                     \
-}
 
 struct kobject class_root;
 struct device linux_rootdev;
 struct class miscclass;
 struct list_head pci_drivers;
 struct list_head pci_devices;
+struct net init_net;
 spinlock_t pci_lock;
 
 int
@@ -621,7 +617,9 @@ struct vmmap {
        unsigned long           vm_size;
 };
 
-LIST_HEAD(vmmaphd, vmmap);
+struct vmmaphd {
+       struct vmmap *lh_first;
+};
 #define        VMMAP_HASH_SIZE 64
 #define        VMMAP_HASH_MASK (VMMAP_HASH_SIZE - 1)
 #define        VM_HASH(addr)   ((uintptr_t)(addr) >> PAGE_SHIFT) & 
VMMAP_HASH_MASK
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to