Skip to contentSkip to conversation

proc: proc_tty.c should include internal.h

PATCH New Ben Dooks 1 participant 1 message Jun 21, 2016 Proc filesystem

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 proc: proc_tty.c should include internal.h

The proc_tty_init() is defined in proc_tty.c, but has no declaration as the file does not include internal.h where the declaration is.

Fix the following sparse error by including internal.h:

linux/fs/proc/proc_tty.c:175:13: warning: symbol 'proc_tty_init' was not declared. Should it be static?

---
Cc: [email protected]

---
 fs/proc/proc_tty.c | 2 ++
 1 file changed, 2 insertions(+)
fs/proc/proc_tty.c +2 -0
index 15f327b..f4cfa50 100644
@@ -15,6 +15,8 @@
 #include <linux/seq_file.h>
 #include <linux/bitops.h>
 
+#include "internal.h"
+
 /*
  * The /proc/tty directory inodes...
  */
Signature · 1 line
2.8.1