>> Patch below. It simply returns in case the tables are empty and nothing >> is do to, thus avoids printing the confusing message. > > It does avoid the message but well, that's also _all_ it avoids. Why do > you want to do it this way? [ ... patch ... ] > > Yes, the #ifdef in arch/i386/kernel/module.c is a bit clumsy. Yep, thats why. I wanted avoid exactly that. Having some code need to know that function foobar() is only available with CONFIG_BAZ is set is really ugly ... The attached patch hides the magic in alternative.h and provides some dummy inline functions for the UP case (gcc should manage to optimize away these calls). No changes in module.c. cheers, Gerd -- Gerd Hoffmann Erst mal heiraten, ein, zwei Kinder, und wenn alles läuft geh' ich nach drei Jahren mit der Familie an die Börse. http://www.suse.de/~kraxel/julika-dora.jpeg