From 7bca8f19264c69adaaa370b7da3e565ce5dd22e8 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 16 Mar 2009 11:27:26 -0700 Subject: [PATCH] Use vmem_size() only on i386 systems and in the kernel. --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 6292121ed3..b416907b65 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -3437,7 +3437,7 @@ arc_init(void) /* Start out with 1/8 of all memory */ arc_c = physmem * PAGESIZE / 8; -#if defined(__i386) +#if defined(_KERNEL) && defined(__i386) /* * On architectures where the physical memory can be larger * than the addressable space (intel in 32-bit mode), we may