From: Julien Grall Date: Tue, 14 Jan 2014 01:41:12 +0000 (+0000) Subject: xen/gnttab: Add a guard for xenpci functions X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0979c2972bee3803769272074ebcd42e767e8d90;p=people%2Fjulieng%2Ffreebsd.git xen/gnttab: Add a guard for xenpci functions On ARM, the xenpci doesn't exist. Add guard to call xenpci function only if the device is enabled. --- diff --git a/sys/conf/options b/sys/conf/options index ccbbd800c3cf..985a26acf48d 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -958,3 +958,6 @@ RANDOM_ENABLE_UMA opt_global.h # Intel em(4) driver EM_MULTIQUEUE opt_em.h + +# Xen +DEV_XENPCI opt_xen.h diff --git a/sys/dev/xen/grant_table/grant_table.c b/sys/dev/xen/grant_table/grant_table.c index d7685e356975..ab999d2e2149 100644 --- a/sys/dev/xen/grant_table/grant_table.c +++ b/sys/dev/xen/grant_table/grant_table.c @@ -14,6 +14,7 @@ __FBSDID("$FreeBSD$"); #include "opt_pmap.h" +#include "opt_xen.h" #include #include