aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-06-29 09:25:29 -0700
committerBrian Behlendorf <[email protected]>2015-06-29 09:26:29 -0700
commit77ab5dd33a99bdf7fb062f0ea327582236a225b3 (patch)
tree8cefb94a2b1031fa0e2a343bb58a1c42d9807dc8
parent3c82160ff2feb86fb7275fd941d203167340a187 (diff)
Add memory compatibility wrappers
The function vmem_qcache_reap() and global variables 'needfree', 'desfree', and 'lotsfree' are all used in the upstream. While these variables have no meaning under Linux they're being defined as 0's to avoid needing to make additional changes to the ARC code. Signed-off-by: Brian Behlendorf <[email protected]>
-rw-r--r--include/sys/vmem.h1
-rw-r--r--include/sys/vmsystm.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/vmem.h b/include/sys/vmem.h
index 8aadc9d03..eb4828052 100644
--- a/include/sys/vmem.h
+++ b/include/sys/vmem.h
@@ -98,6 +98,7 @@ extern void *spl_vmalloc(unsigned long size, gfp_t lflags, pgprot_t prot);
#define vmem_alloc(sz, fl) spl_vmem_alloc((sz), (fl), __func__, __LINE__)
#define vmem_zalloc(sz, fl) spl_vmem_zalloc((sz), (fl), __func__, __LINE__)
#define vmem_free(ptr, sz) spl_vmem_free((ptr), (sz))
+#define vmem_qcache_reap(ptr) ((void)0)
extern void *spl_vmem_alloc(size_t sz, int fl, const char *func, int line);
extern void *spl_vmem_zalloc(size_t sz, int fl, const char *func, int line);
diff --git a/include/sys/vmsystm.h b/include/sys/vmsystm.h
index 2fa169523..3720d209a 100644
--- a/include/sys/vmsystm.h
+++ b/include/sys/vmsystm.h
@@ -36,6 +36,9 @@
#define membar_producer() smp_wmb()
#define physmem totalram_pages
#define freemem nr_free_pages()
+#define needfree 0
+#define desfree 0
+#define lotsfree 0
#define xcopyin(from, to, size) copy_from_user(to, from, size)
#define xcopyout(from, to, size) copy_to_user(to, from, size)