diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-03-18 08:46:08 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-03-18 08:46:08 +0000 |
commit | 58cb7b5be4f9ad0244294ede8f942bb76b37ca6f (patch) | |
tree | 04a329aebe9c31ff6ef446123566119285eca3e7 | |
parent | 5fa0e1ff08130a3f4e8a4da813b9977a02de0026 (diff) | |
download | FreeBSD-src-58cb7b5be4f9ad0244294ede8f942bb76b37ca6f.zip FreeBSD-src-58cb7b5be4f9ad0244294ede8f942bb76b37ca6f.tar.gz |
Declare missing symbol and inline macro which is only used once.
MFC after: 2 weeks
Sponsored by: Mellanox Technologies
Submitted by: glebius@
-rw-r--r-- | sys/ofed/include/linux/linux_compat.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/ofed/include/linux/linux_compat.c b/sys/ofed/include/linux/linux_compat.c index 5dc881d..31252af 100644 --- a/sys/ofed/include/linux/linux_compat.c +++ b/sys/ofed/include/linux/linux_compat.c @@ -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 kmalloc compat"); #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 |