В Вск, 02/11/2008 в 12:11 -0700, Gordon Malm пишет: > You can cry "abuse" all you want. You FAIL to offer any alternatives or > solutions. I'll ask again, how do you detect that you are compiling code > destined to be run in-kernel from within gcc without checking for the > __KERNEL__ macro? I think we both know the answer.
Gordon, as far as I see our linux-mod.eclass builds each kernel module separately and it is possible to modify it to pass CFLAGS you wish for kernel modules only and as such avoid using __KERNEL__ macro for this... -- Peter.