public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/5] console: move for_each_console to linux/console.h
@ 2010-11-04 15:20 Jiri Slaby
  2010-11-04 15:20 ` [PATCH v2 2/5] parisc: cleanup console handling Jiri Slaby
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jiri Slaby @ 2010-11-04 15:20 UTC (permalink / raw)
  To: Andrew Morton; +Cc: werner, alan, gregkh, linux-kernel, jirislaby

Move it out of printk.c so that we can use it all over the code. There
are some potential users which will be converted to that macro in next
patches.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
 include/linux/console.h |    6 ++++++
 kernel/printk.c         |    6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/linux/console.h b/include/linux/console.h
index 95cf6f0..875cfb1 100644
--- a/include/linux/console.h
+++ b/include/linux/console.h
@@ -126,6 +126,12 @@ struct console {
 	struct	 console *next;
 };
 
+/*
+ * for_each_console() allows you to iterate on each console
+ */
+#define for_each_console(con) \
+	for (con = console_drivers; con != NULL; con = con->next)
+
 extern int console_set_on_cmdline;
 
 extern int add_preferred_console(char *name, int idx, char *options);
diff --git a/kernel/printk.c b/kernel/printk.c
index b2ebaee..bf0420a 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -43,12 +43,6 @@
 #include <asm/uaccess.h>
 
 /*
- * for_each_console() allows you to iterate on each console
- */
-#define for_each_console(con) \
-	for (con = console_drivers; con != NULL; con = con->next)
-
-/*
  * Architectures can override it:
  */
 void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...)
-- 
1.7.3.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-04 22:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04 15:20 [PATCH v2 1/5] console: move for_each_console to linux/console.h Jiri Slaby
2010-11-04 15:20 ` [PATCH v2 2/5] parisc: cleanup console handling Jiri Slaby
2010-11-04 17:26   ` Kyle McMartin
2010-11-04 22:02     ` Jiri Slaby
2010-11-04 15:20 ` [PATCH v2 3/5] VIDEO: xen-fb, switch to for_each_console Jiri Slaby
2010-11-04 15:20 ` [PATCH v2 4/5] TTY: include termios.h in tty_driver.h Jiri Slaby

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