public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] unexport is_console_locked
@ 2005-03-04  0:48 Adrian Bunk
  0 siblings, 0 replies; 5+ messages in thread
From: Adrian Bunk @ 2005-03-04  0:48 UTC (permalink / raw)
  To: linux-kernel

I didn't find any possible modular usage in the kernel.

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

--- linux-2.6.11-rc5-mm1-full/kernel/printk.c.old	2005-03-04 00:58:16.000000000 +0100
+++ linux-2.6.11-rc5-mm1-full/kernel/printk.c	2005-03-04 00:58:22.000000000 +0100
@@ -675,7 +675,6 @@
 {
 	return console_locked;
 }
-EXPORT_SYMBOL(is_console_locked);
 
 /**
  * release_console_sem - unlock the console system


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

* [2.6 patch] unexport is_console_locked
@ 2005-04-15 15:10 Adrian Bunk
  2005-04-23 23:49 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2005-04-15 15:10 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

I didn't find any possible modular usage in the kernel.

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

---

This patch was already sent on:
- 4 Mar 2005

--- linux-2.6.11-rc5-mm1-full/kernel/printk.c.old	2005-03-04 00:58:16.000000000 +0100
+++ linux-2.6.11-rc5-mm1-full/kernel/printk.c	2005-03-04 00:58:22.000000000 +0100
@@ -675,7 +675,6 @@
 {
 	return console_locked;
 }
-EXPORT_SYMBOL(is_console_locked);
 
 /**
  * release_console_sem - unlock the console system


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

* Re: [2.6 patch] unexport is_console_locked
  2005-04-15 15:10 Adrian Bunk
@ 2005-04-23 23:49 ` Andrew Morton
  2005-04-24  0:51   ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2005-04-23 23:49 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel, Benjamin Herrenschmidt

Adrian Bunk <bunk@stusta.de> wrote:
>
> I didn't find any possible modular usage in the kernel.
> 

Is needed for WARN_CONSOLE_UNLOCKED().

It just happens that WARN_CONSOLE_UNLOCKED() is currently only using in
vt.c, which just happens to not support modular usage.

But disabling this export would make WARN_CONSOLE_UNLOCKED() pretty useless
for driver development.

So I'd suggest that we either leave this symbol exported for driver
developers or we nuke WARN_CONSOLE_UNLOCKED() altogether.

Ben, do you still want it?


> --- linux-2.6.11-rc5-mm1-full/kernel/printk.c.old	2005-03-04 00:58:16.000000000 +0100
> +++ linux-2.6.11-rc5-mm1-full/kernel/printk.c	2005-03-04 00:58:22.000000000 +0100
> @@ -675,7 +675,6 @@
>  {
>  	return console_locked;
>  }
> -EXPORT_SYMBOL(is_console_locked);
>  
>  /**
>   * release_console_sem - unlock the console system

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

* Re: [2.6 patch] unexport is_console_locked
  2005-04-23 23:49 ` Andrew Morton
@ 2005-04-24  0:51   ` Benjamin Herrenschmidt
  2005-04-24  9:54     ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2005-04-24  0:51 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Adrian Bunk, Linux Kernel list

On Sat, 2005-04-23 at 16:49 -0700, Andrew Morton wrote:
> Adrian Bunk <bunk@stusta.de> wrote:
> >
> > I didn't find any possible modular usage in the kernel.
> > 
> 
> Is needed for WARN_CONSOLE_UNLOCKED().
> 
> It just happens that WARN_CONSOLE_UNLOCKED() is currently only using in
> vt.c, which just happens to not support modular usage.
> 
> But disabling this export would make WARN_CONSOLE_UNLOCKED() pretty useless
> for driver development.
> 
> So I'd suggest that we either leave this symbol exported for driver
> developers or we nuke WARN_CONSOLE_UNLOCKED() altogether.
> 
> Ben, do you still want it?

Yes, I do. Please, keep it exported. On that note, I don't understand
that frenzy of unexporting everything you can, I find this useless
burden in general.

Ben.



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

* Re: [2.6 patch] unexport is_console_locked
  2005-04-24  0:51   ` Benjamin Herrenschmidt
@ 2005-04-24  9:54     ` Christoph Hellwig
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2005-04-24  9:54 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: Andrew Morton, Adrian Bunk, Linux Kernel list

On Sun, Apr 24, 2005 at 10:51:30AM +1000, Benjamin Herrenschmidt wrote:
> Yes, I do. Please, keep it exported. On that note, I don't understand
> that frenzy of unexporting everything you can, I find this useless
> burden in general.

If we ever want to a have a semi-stable driver API (1) we need to stop
exporting random symbols and move towards APIs that make sense and
operate at the right level instead of poking into implementation details.
Note that even without that goal only having the right primitives avaiable
to drivers makes sure they use the right tool instead of copy & pasting
random crap.

(1) that is changing only when we have a real need instead of all the time.


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

end of thread, other threads:[~2005-04-24  9:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-04  0:48 [2.6 patch] unexport is_console_locked Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-04-15 15:10 Adrian Bunk
2005-04-23 23:49 ` Andrew Morton
2005-04-24  0:51   ` Benjamin Herrenschmidt
2005-04-24  9:54     ` Christoph Hellwig

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