[PATCH] RAS, debugfs: add missing header dependencies

From: Baoyou Xie
Date: Fri Sep 23 2016 - 09:04:24 EST


We get 3 warnings when building kernel with W=1:
drivers/ras/debugfs.c:7:5: warning: no previous prototype for 'ras_userspace_consumers' [-Wmissing-prototypes]
drivers/ras/debugfs.c:37:12: warning: no previous prototype for 'ras_add_daemon_trace' [-Wmissing-prototypes]
drivers/ras/debugfs.c:53:13: warning: no previous prototype for 'ras_debugfs_init' [-Wmissing-prototypes]

In fact, these functions are declared in linux/ras.h, so this patch
adds the missing header dependencies.

Signed-off-by: Baoyou Xie <baoyou.xie@xxxxxxxxxx>
---
drivers/ras/debugfs.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/ras/debugfs.c b/drivers/ras/debugfs.c
index 0322acf..627f6107 100644
--- a/drivers/ras/debugfs.c
+++ b/drivers/ras/debugfs.c
@@ -1,4 +1,5 @@
#include <linux/debugfs.h>
+#include <linux/ras.h>

static struct dentry *ras_debugfs_dir;

--
2.7.4