GNU Linux-libre 4.9.333-gnu1
[releases.git] / arch / x86 / xen / debugfs.c
1 #include <linux/init.h>
2 #include <linux/debugfs.h>
3 #include <linux/slab.h>
4
5 #include "debugfs.h"
6
7 static struct dentry *d_xen_debug;
8
9 struct dentry * __init xen_init_debugfs(void)
10 {
11         if (!d_xen_debug) {
12                 d_xen_debug = debugfs_create_dir("xen", NULL);
13
14                 if (!d_xen_debug)
15                         pr_warning("Could not create 'xen' debugfs directory\n");
16         }
17
18         return d_xen_debug;
19 }
20