public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Remove init_mm export as planned for 2.6.26
@ 2008-07-11 20:19 Dave Jones
  2008-07-12  2:30 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Jones @ 2008-07-11 20:19 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: Linux Kernel

Signed-off-by: Dave Jones <davej@redhat.com>

diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index 46ece3f..5e89689 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -270,18 +270,6 @@ Who:	Michael Buesch <mb@bu3sch.de>
 
 ---------------------------
 
-What:	init_mm export
-When:	2.6.26
-Why:	Not used in-tree. The current out-of-tree users used it to
-	work around problems in the CPA code which should be resolved
-	by now. One usecase was described to provide verification code
-	of the CPA operation. That's a good idea in general, but such
-	code / infrastructure should be in the kernel and not in some
-	out-of-tree driver.
-Who:	Thomas Gleixner <tglx@linutronix.de>
-
-----------------------------
-
 What:	usedac i386 kernel parameter
 When:	2.6.27
 Why:	replaced by allowdac and no dac combination
diff --git a/arch/x86/kernel/init_task.c b/arch/x86/kernel/init_task.c
index a4f93b4..d399180 100644
--- a/arch/x86/kernel/init_task.c
+++ b/arch/x86/kernel/init_task.c
@@ -14,7 +14,6 @@ static struct fs_struct init_fs = INIT_FS;
 static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
 static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
 struct mm_struct init_mm = INIT_MM(init_mm);
-EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */
 
 /*
  * Initial thread structure.

-- 
http://www.codemonkey.org.uk

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

* Re: Remove init_mm export as planned for 2.6.26
  2008-07-11 20:19 Remove init_mm export as planned for 2.6.26 Dave Jones
@ 2008-07-12  2:30 ` Andrew Morton
  2008-07-14  2:37   ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2008-07-12  2:30 UTC (permalink / raw)
  To: Dave Jones; +Cc: Thomas Gleixner, Linux Kernel, sparclinux

On Fri, 11 Jul 2008 16:19:59 -0400 Dave Jones <davej@redhat.com> wrote:

> Signed-off-by: Dave Jones <davej@redhat.com>
> 
> diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
> index 46ece3f..5e89689 100644
> --- a/Documentation/feature-removal-schedule.txt
> +++ b/Documentation/feature-removal-schedule.txt
> @@ -270,18 +270,6 @@ Who:	Michael Buesch <mb@bu3sch.de>
>  
>  ---------------------------
>  
> -What:	init_mm export
> -When:	2.6.26
> -Why:	Not used in-tree. The current out-of-tree users used it to
> -	work around problems in the CPA code which should be resolved
> -	by now. One usecase was described to provide verification code
> -	of the CPA operation. That's a good idea in general, but such
> -	code / infrastructure should be in the kernel and not in some
> -	out-of-tree driver.
> -Who:	Thomas Gleixner <tglx@linutronix.de>
> -
> -----------------------------
> -
>  What:	usedac i386 kernel parameter
>  When:	2.6.27
>  Why:	replaced by allowdac and no dac combination
> diff --git a/arch/x86/kernel/init_task.c b/arch/x86/kernel/init_task.c
> index a4f93b4..d399180 100644
> --- a/arch/x86/kernel/init_task.c
> +++ b/arch/x86/kernel/init_task.c
> @@ -14,7 +14,6 @@ static struct fs_struct init_fs = INIT_FS;
>  static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
>  static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
>  struct mm_struct init_mm = INIT_MM(init_mm);
> -EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */
>  
>  /*
>   * Initial thread structure.
> 

grep -r init_mm include/asm-sparc64

This patch used to break stuff.  I'm not aware that anything was done
to prevent this.


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

* Re: Remove init_mm export as planned for 2.6.26
  2008-07-12  2:30 ` Andrew Morton
@ 2008-07-14  2:37   ` Christoph Hellwig
  2008-07-14  4:33     ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2008-07-14  2:37 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Dave Jones, Thomas Gleixner, Linux Kernel, sparclinux

On Fri, Jul 11, 2008 at 07:30:46PM -0700, Andrew Morton wrote:
> > -EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */
> >  
> >  /*
> >   * Initial thread structure.
> > 
> 
> grep -r init_mm include/asm-sparc64
> 
> This patch used to break stuff.  I'm not aware that anything was done
> to prevent this.

Dave's patch only unexprts it on x86, which per defintion can't break
sparc64 which is known to need this export.  It would be nice if someone
could do a little audit which architectures require it in addition to
sparc64 and remove it fromm all others.

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

* Re: Remove init_mm export as planned for 2.6.26
  2008-07-14  2:37   ` Christoph Hellwig
@ 2008-07-14  4:33     ` Andrew Morton
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2008-07-14  4:33 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Dave Jones, Thomas Gleixner, Linux Kernel, sparclinux

On Sun, 13 Jul 2008 22:37:09 -0400 Christoph Hellwig <hch@infradead.org> wrote:

> On Fri, Jul 11, 2008 at 07:30:46PM -0700, Andrew Morton wrote:
> > > -EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */
> > >  
> > >  /*
> > >   * Initial thread structure.
> > > 
> > 
> > grep -r init_mm include/asm-sparc64
> > 
> > This patch used to break stuff.  I'm not aware that anything was done
> > to prevent this.
> 
> Dave's patch only unexprts it on x86, which per defintion can't break
> sparc64 which is known to need this export.

What, you want beauty _and_ reading comprehension?

>  It would be nice if someone
> could do a little audit which architectures require it in addition to
> sparc64 and remove it fromm all others.

Yup.  afaik sparc64 is the only one.

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

end of thread, other threads:[~2008-07-14  4:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-11 20:19 Remove init_mm export as planned for 2.6.26 Dave Jones
2008-07-12  2:30 ` Andrew Morton
2008-07-14  2:37   ` Christoph Hellwig
2008-07-14  4:33     ` Andrew Morton

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