Re: [RFC PATCH] feature-removal: add documentation for exportedsymbols going away
From: Adrian Bunk
Date: Wed Feb 13 2008 - 17:35:30 EST
On Wed, Feb 13, 2008 at 02:22:06PM -0800, Harvey Harrison wrote:
>...
> --- /dev/null
> +++ b/Documentation/feature-removal/exported-symbols.txt
> @@ -0,0 +1,34 @@
> +The following is a list of symbols whose exports are unused in the kernel
> +tree and will be removed. Unused symbols are both increasing the size of
> +the kernel binary and are often a sign of a "wrong API"
> +
> +When adding a symbol, change to EXPORT_UNUSED_SYMBOL{_GPL} in the source
> +and schedule for removal in the first stable version the unused symbol is
> +marked in + 3. This will give out of tree code ~9 months to stop using the
> +export or make a case why the export should be kept.
> +
> +CONFIG_UNUSED_SYMBOLS is provided to enable unused symbol exports.
> +
> +Please include the following:
> +
> +What: the_symbol
> +Where: filename the symbol is exported from
> +When: next stable version+3
> +Why: a reason would be nice
> +
> +---------------------------
> +
> +What: __inet_hash_connect
> +Where: net/ipv4/inet_hashtables.c
> +When: 2.6.28
> +Why: No in tree users
> +
> +---------------------------
> +
> +What: io_delay_type
> +Where: arch/x86/kernel/io_delay.c
> +When: 2.6.28
> +Why: No in tree users
> +
> +---------------------------
>...
NAK.
It's a well-known and documented fact that we not have a stable API for
modules.
And as long as we anyway break the modules API in so many other cases
with each kernel release there's simply no point in not removing exports
immediately.
Oh, and for increasing the amount of nonsense even further, you should
explain why unused exports that just sneaked into 2.6.25-rc1 must be
shipped in 4 stable kernels before they can be removed.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/