[<prev] [next>] [day] [month] [year] [list]
Message-ID: <19985.1552390731@turing-police>
Date: Tue, 12 Mar 2019 07:38:51 -0400
From: "Valdis Klētnieks" <valdis.kletnieks@...edu>
To: Tony Luck <tony.luck@...el.com>, Borislav Petkov <bp@...en8.de>
cc: linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drivers/ras/debugfs.c - add missing #includes
Building with C=2 W=1 reports:
CHECK drivers/ras/debugfs.c
drivers/ras/debugfs.c:3:15: warning: symbol 'ras_debugfs_dir' was not declared. Should it be static?
drivers/ras/debugfs.c:7:5: warning: symbol 'ras_userspace_consumers' was not declared. Should it be static?
drivers/ras/debugfs.c:37:12: warning: symbol 'ras_add_daemon_trace' was not declared. Should it be static?
drivers/ras/debugfs.c:53:13: warning: symbol 'ras_debugfs_init' was not declared. Should it be static?
CC drivers/ras/debugfs.o
drivers/ras/debugfs.c:7:5: warning: no previous prototype for 'ras_userspace_consumers' [-Wmissing-prototypes]
7 | int ras_userspace_consumers(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/ras/debugfs.c:37:12: warning: no previous prototype for 'ras_add_daemon_trace' [-Wmissing-prototypes]
37 | int __init ras_add_daemon_trace(void)
| ^~~~~~~~~~~~~~~~~~~~
drivers/ras/debugfs.c:53:13: warning: no previous prototype for 'ras_debugfs_init' [-Wmissing-prototypes]
53 | void __init ras_debugfs_init(void)
| ^~~~~~~~~~~~~~~~
And indeed, there's 2 missing #include's.
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@...edu>
diff --git a/drivers/ras/debugfs.c b/drivers/ras/debugfs.c
index 501603057dff..12a161377f4f 100644
--- a/drivers/ras/debugfs.c
+++ b/drivers/ras/debugfs.c
@@ -1,4 +1,6 @@
#include <linux/debugfs.h>
+#include <linux/ras.h>
+#include "debugfs.h"
struct dentry *ras_debugfs_dir;
Powered by blists - more mailing lists