Re: [PATCH] reduce __deprecated spew

From: Andrew Morton
Date: Tue Mar 15 2005 - 01:44:06 EST


Matt Mackall <mpm@xxxxxxxxxxx> wrote:
>
> This patch changes a couple of the noisier deprecations to only warn
> on the primary entrypoint (in these cases, the _register functions).
> This approach makes it obvious that an interface is going away while
> only warning once per user. I suggest we adopt this approach for
> future deprecation campaigns.

But that's going to warn when the deprecated function itself is compiled,
isn't it?

If so, that's backwards. We want to warn when the deprecated function is
_used_, so people go fix up their code, and we can then remove the
deprecated function.

(The intermodule_register and pm_register stuff has been hanging around for
so long that one wonders if we need sterner stimuli, not lesser).
-
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/