Removing exported symbols in a stable kernel
It looked like more of the same when Adrian Bunk posted a patch unexporting do_settimeofday(), which is not used by any mainline modules. There didn't seem to be any reason to allow modules to change the kernel's idea of what time it is, so the symbol could go.
Andrew Morton has drawn the line, however, on symbol removals. He now wants them to be marked as being deprecated (when used in a module), added to the feature removal schedule, and actually removed a year down the line. His position is:
If this view sticks, it means that the days of abrupt disappearance of exported symbols are done. Symbols can still go away, but there will be some advance warning before it happens. Whether it will stick remains to be seen, however; there is a definite subset of kernel hackers who feel that there is no need to make life easier for out-of-tree modules.
So what happened with the patch? It turns
out that the ARM architecture has a number of out-of-tree real-time
clock modules which need to be able to call do_settimeofday(). So
Adrian withdrew the patch, and the symbol remains exported.
| Index entries for this article | |
|---|---|
| Kernel | Modules/Exported symbols |