Skip to contentSkip to conversation

kernel/printk.c: EXPORT_SYMBOL_UNUSED

PATCH In review Adrian Bunk 2 participants 2 messages Jun 30, 2006 – Jul 1, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/printk.c: EXPORT_SYMBOL_UNUSED

This patch marks unused exports as EXPORT_SYMBOL_UNUSED.

---

 kernel/printk.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/printk.c renamed from kernel/printk.c.old +3 -3
@@ -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;
#1 lore raw

kernel/printk.c

Quoted 6 lines · On Fri, 30 Jun 2006 13:31:37 +0200 Adrian Bunk <[email protected]> wrote:

This patch marks unused exports as EXPORT_SYMBOL_UNUSED.

kernel/printk.c renamed from kernel/printk.c.old +2 -2
-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.

kernel/printk.c line 1075

Quoted 2 lines
kernel/printk.c renamed from kernel/printk.c.old +1 -1
-EXPORT_SYMBOL(__printk_ratelimit);
+EXPORT_UNUSED_SYMBOL(__printk_ratelimit);  /*  June 2006  */

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