All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [2.6 PATCH] Exporting mmu_cr4_features again for i386 & x86_64
       [not found] <OF692619AF.8A926C55-ON8725719B.007C1C06-8625719B.007E27C7@us.ibm.com>
@ 2006-06-29 10:55 ` Andi Kleen
  2006-06-29 11:04   ` Arjan van de Ven
  2006-06-29 11:08   ` Andrew Morton
  0 siblings, 2 replies; 3+ messages in thread
From: Andi Kleen @ 2006-06-29 10:55 UTC (permalink / raw)
  To: Milena Milenkovic; +Cc: linux-kernel, davej, hpa

On Thursday 29 June 2006 01:01, Milena Milenkovic wrote:
> Hi all,
> 
> The mmu_cr4_features variable was "unexported" in 2.6.12 kernel
> (A patch submitted by Adrian Bunk, [2.6 patch] unexport mmu_cr4_features).

Normal policy is to unexport symbols that are not used in the core 
kernel.

However I think there is a deprecation policy with prior 
warning that might not have been followed here.

> However, this variable is needed if a loadable kernel module wants to 
> enable
> access to performance counters from user space.

Ok I guess it's a reasonable request (although we will likely
eventually add a standard API for this and then it might 
be removed again) 


-Andi

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

* Re: [2.6 PATCH] Exporting mmu_cr4_features again for i386 & x86_64
  2006-06-29 10:55 ` [2.6 PATCH] Exporting mmu_cr4_features again for i386 & x86_64 Andi Kleen
@ 2006-06-29 11:04   ` Arjan van de Ven
  2006-06-29 11:08   ` Andrew Morton
  1 sibling, 0 replies; 3+ messages in thread
From: Arjan van de Ven @ 2006-06-29 11:04 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Milena Milenkovic, linux-kernel, davej, hpa


> > However, this variable is needed if a loadable kernel module wants to 
> > enable
> > access to performance counters from user space.
> 
> Ok I guess it's a reasonable request (although we will likely
> eventually add a standard API for this and then it might 
> be removed again) 

I kind of disagree that being a reasonable request; there are several
tools (perfmon/oprofile) that do this already without the export, and if
you want another one, adding a very simple API to do just this to the
kernel should not at all be a big deal, just add that to the patch when
submitting the module for inclusion....



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

* Re: [2.6 PATCH] Exporting mmu_cr4_features again for i386 & x86_64
  2006-06-29 10:55 ` [2.6 PATCH] Exporting mmu_cr4_features again for i386 & x86_64 Andi Kleen
  2006-06-29 11:04   ` Arjan van de Ven
@ 2006-06-29 11:08   ` Andrew Morton
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2006-06-29 11:08 UTC (permalink / raw)
  To: Andi Kleen; +Cc: mmilenko, linux-kernel, davej, hpa

On Thu, 29 Jun 2006 12:55:36 +0200
Andi Kleen <ak@suse.de> wrote:

> On Thursday 29 June 2006 01:01, Milena Milenkovic wrote:
> > Hi all,
> > 
> > The mmu_cr4_features variable was "unexported" in 2.6.12 kernel
> > (A patch submitted by Adrian Bunk, [2.6 patch] unexport mmu_cr4_features).
> 
> Normal policy is to unexport symbols that are not used in the core 
> kernel.
> 
> However I think there is a deprecation policy with prior 
> warning that might not have been followed here.

We have EXPORT_UNUSED_SYMBOL() and EXPORT_UNUSED_SYMBOL_GPL() as of this
morning.  We can convert unused exports to use those and users will get a
nasty warning at modprobe-time when they use the exported symbols.


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

end of thread, other threads:[~2006-06-29 11:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <OF692619AF.8A926C55-ON8725719B.007C1C06-8625719B.007E27C7@us.ibm.com>
2006-06-29 10:55 ` [2.6 PATCH] Exporting mmu_cr4_features again for i386 & x86_64 Andi Kleen
2006-06-29 11:04   ` Arjan van de Ven
2006-06-29 11:08   ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.