Re: [RFC: 2.6 patch] kernel/sys.c: possible cleanups

Andrew Morton
2006-05-01T09:12:31Z

Adrian Bunk <bunk@stusta.de> wrote:
>
> So the work would expand to:
> - writing 200 feature-removal-schedule.txt entries
> - marking 200 functions and variables as __deprecated_for_modules
>
> And in a few months:
> - removing 200 feature-removal-schedule.txt entries
> - removing 200 __deprecated_for_modules markers
> - removing the 200 unused exports

Don't bother with all that stuff - a modprobe-time warning across a few
kernel releases is sufficient to make any developers who are dependent upon
an export aware of their problem.

Changing the export to EXPORT_UNUSED_SYMBOL() and then later removing the
export is adequate.