[2.6 patch] __deprecated_for_modules insert_resource

Adrian Bunk
2005-05-02T01:46:17Z

On Sat, Apr 23, 2005 at 04:44:11PM -0700, Andrew Morton wrote:
> Adrian Bunk <bunk@stusta.de> wrote:
> >
> > I didn't find any possible modular usage in the kernel.
> >
>
> True, but this looks like something which out-of-tree code could possibly
> be using. I'd prefer to see this one get the deprecated_for_modules
> twelve-month treatment.
>...

Patch below.

cu
Adrian

<-- snip -->

--- linux-2.6.12-rc3-mm2-full/Documentation/feature-removal-schedule.txt.old 2005-05-01 23:59:05.000000000 +0200
+++ linux-2.6.12-rc3-mm2-full/Documentation/feature-removal-schedule.txt 2005-05-02 00:00:17.000000000 +0200
@@ -57,0 +58,8 @@
+
+---------------------------
+
+What: remove EXPORT_SYMBOL(insert_resource)
+When: April 2006
+Files: kernel/resource.c
+Why: No modular usage in the kernel.
+Who: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.12-rc3-mm2-full/include/linux/ioport.h.old 2005-05-02 00:00:30.000000000 +0200
+++ linux-2.6.12-rc3-mm2-full/include/linux/ioport.h 2005-05-02 00:00:56.000000000 +0200
@@ -97 +97 @@
-extern int insert_resource(struct resource *parent, struct resource *new);
+extern __deprecated_for_modules int insert_resource(struct resource *parent, struct resource *new);