xen: fix compile without CONFIG_XEN_DEBUG_FS
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 20 May 2011 23:34:44 +0000 (16:34 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 20 May 2011 23:34:44 +0000 (16:34 -0700)
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/mmu.c

index 083b835d2dd06f39eeb97f5db67c39110b17157e..285335448143daf122e6d7ba1873c401be6c2411 100644 (file)
@@ -2302,6 +2302,7 @@ out:
 }
 EXPORT_SYMBOL_GPL(xen_remap_domain_mfn_range);
 
+#ifdef CONFIG_XEN_DEBUG_FS
 static int p2m_dump_open(struct inode *inode, struct file *filp)
 {
        return single_open(filp, p2m_dump_show, NULL);
@@ -2313,3 +2314,4 @@ static const struct file_operations p2m_dump_fops = {
        .llseek         = seq_lseek,
        .release        = single_release,
 };
+#endif /* CONFIG_XEN_DEBUG_FS */