public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] proc: proc_tty.c should include internal.h
@ 2016-06-21 16:44 Ben Dooks
  0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2016-06-21 16:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ben Dooks, linux-kernel

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?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: linux-kernel@vger.kernel.org
---
 fs/proc/proc_tty.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c
index 15f327b..f4cfa50 100644
--- a/fs/proc/proc_tty.c
+++ b/fs/proc/proc_tty.c
@@ -15,6 +15,8 @@
 #include <linux/seq_file.h>
 #include <linux/bitops.h>
 
+#include "internal.h"
+
 /*
  * The /proc/tty directory inodes...
  */
-- 
2.8.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-21 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-21 16:44 [PATCH] proc: proc_tty.c should include internal.h Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox