public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] kernel/printk.c: EXPORT_SYMBOL_UNUSED
@ 2006-06-30 11:31 Adrian Bunk
  2006-07-01  3:34 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2006-06-30 11:31 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

This patch marks unused exports as EXPORT_SYMBOL_UNUSED.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 kernel/printk.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.17-mm4-full/kernel/printk.c.old	2006-06-30 02:30:47.000000000 +0200
+++ linux-2.6.17-mm4-full/kernel/printk.c	2006-06-30 02:32:07.000000000 +0200
@@ -53,7 +53,7 @@
 	DEFAULT_CONSOLE_LOGLEVEL,	/* default_console_loglevel */
 };
 
-EXPORT_SYMBOL(console_printk);
+EXPORT_UNUSED_SYMBOL(console_printk);  /*  June 2006  */
 
 /*
  * Low lever drivers may need that to know if they can schedule in
@@ -755,7 +755,7 @@
 {
 	return console_locked;
 }
-EXPORT_SYMBOL(is_console_locked);
+EXPORT_UNUSED_SYMBOL(is_console_locked);  /*  June 2006  */
 
 /**
  * release_console_sem - unlock the console system
@@ -1072,7 +1072,7 @@
 	spin_unlock_irqrestore(&ratelimit_lock, flags);
 	return 0;
 }
-EXPORT_SYMBOL(__printk_ratelimit);
+EXPORT_UNUSED_SYMBOL(__printk_ratelimit);  /*  June 2006  */
 
 /* minimum time in jiffies between messages */
 int printk_ratelimit_jiffies = 5 * HZ;

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

* Re: [2.6 patch] kernel/printk.c: EXPORT_SYMBOL_UNUSED
  2006-06-30 11:31 [2.6 patch] kernel/printk.c: EXPORT_SYMBOL_UNUSED Adrian Bunk
@ 2006-07-01  3:34 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2006-07-01  3:34 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Fri, 30 Jun 2006 13:31:37 +0200
Adrian Bunk <bunk@stusta.de> wrote:

> This patch marks unused exports as EXPORT_SYMBOL_UNUSED.
> 
> -EXPORT_SYMBOL(console_printk);
> +EXPORT_UNUSED_SYMBOL(console_printk);  /*  June 2006  */
> -EXPORT_SYMBOL(is_console_locked);
> +EXPORT_UNUSED_SYMBOL(is_console_locked);  /*  June 2006  */

OK.

> -EXPORT_SYMBOL(__printk_ratelimit);
> +EXPORT_UNUSED_SYMBOL(__printk_ratelimit);  /*  June 2006  */

It's a generalised and more useful version of printk_ratelimit() - worth
keeping.


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

end of thread, other threads:[~2006-07-01  3:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-30 11:31 [2.6 patch] kernel/printk.c: EXPORT_SYMBOL_UNUSED Adrian Bunk
2006-07-01  3:34 ` Andrew Morton

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