diff mbox

RAS: debugfs: add missing header dependencies

Message ID 1472634806-11905-1-git-send-email-baoyou.xie@linaro.org
State Superseded
Headers show

Commit Message

Baoyou Xie Aug. 31, 2016, 9:13 a.m. UTC
We get 3 warnings when building kernel with W=1:
drivers/ras/debugfs.c:8:5: warning: no previous prototype for 'ras_userspace_consumers' [-Wmissing-prototypes]
drivers/ras/debugfs.c:38:12: warning: no previous prototype for 'ras_add_daemon_trace' [-Wmissing-prototypes]
drivers/ras/debugfs.c:54:13: warning: no previous prototype for 'ras_debugfs_init' [-Wmissing-prototypes]

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

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>

---
 drivers/ras/debugfs.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.7.4

Comments

Arnd Bergmann Aug. 31, 2016, 10:01 a.m. UTC | #1
On Wednesday, August 31, 2016 5:13:26 PM CEST Baoyou Xie wrote:
> We get 3 warnings when building kernel with W=1:

> drivers/ras/debugfs.c:8:5: warning: no previous prototype for 'ras_userspace_consumers' [-Wmissing-prototypes]

> drivers/ras/debugfs.c:38:12: warning: no previous prototype for 'ras_add_daemon_trace' [-Wmissing-prototypes]

> drivers/ras/debugfs.c:54:13: warning: no previous prototype for 'ras_debugfs_init' [-Wmissing-prototypes]

> 

> In fact, these functions are declared in include/linux/ras.h,

> so this patch adds missing header dependencies.

> 

> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>

> 


Acked-by: Arnd Bergmann <arnd@arndb.de>
diff mbox

Patch

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;