]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/gnttab: Add a guard for xenpci functions
authorJulien Grall <julien.grall@linaro.org>
Tue, 14 Jan 2014 01:41:12 +0000 (01:41 +0000)
committerJulien Grall <julien.grall@citrix.com>
Sat, 3 Oct 2015 18:37:24 +0000 (19:37 +0100)
On ARM, the xenpci doesn't exist. Add guard to call xenpci function only
if the device is enabled.

sys/conf/options
sys/dev/xen/grant_table/grant_table.c

index ccbbd800c3cf83de9aaef25e67fcf6d2c4fd61c9..985a26acf48d1aa87e287326aec8e1da373d1274 100644 (file)
@@ -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
index d7685e3569750f7330678242510a5133a6a01b05..ab999d2e2149422f479747a65269e8d283a53c85 100644 (file)
@@ -14,6 +14,7 @@
 __FBSDID("$FreeBSD$");
 
 #include "opt_pmap.h"
+#include "opt_xen.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>