Pauline Middelink wrote:
> On Tue, Jan 11, 2000 at 12:41:40PM +0000, Tigran Aivazian wrote:
> > I forgot to add it is clear that the compiler does *NOT* optimize the
> > chunk away even if request_module() is a nop, so there *is* some
> > optimization gained by my idea in comparison to simply dropping
> > #ifdef/#endif.
>
> You could refine this idea by making it a macro, which resolves
> into nothingness if CONFIG_KMOD is undefined. The function
> called in the macro (__request_module?) is also not compiled
> if CONFIG_KMOD is not set.
> (Yes, you can do varargs in a macro, use ...)
If you do it like this, Tigran's suggestion that the whole kernel
doesn't require recompilation on change of kmod setting is no longer
valid. (but I don't think that that's important!)
Roger.
-- ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 ** *-- BitWizard writes Linux device drivers for any device you may have! --* "I didn't say it was your fault. I said I was going to blame it on you."- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:20 EST