On Wednesday 2010-06-02 21:05, Luciano Coelho wrote: >> > >+ idletimer_tg_kobj = kobject_create_and_add("idletimer", >> > >+ &THIS_MODULE->mkobj.kobj); >> > >> > Isn't this going to oops when you compile this module as =y? >> >> Damn, that's true. :( >> >> I'll investigate how to fix this. > >Would it be too hacky to force it to be a module (ie. add "depends on m" >in Kconfig)? > >Besides /sys/module/xt_IDLETIMER and /sys/class/net, which we have >already discarded, I can't find any other place that would make sense to >add the idletimer in the kernel object hierarchy... While THIS_MODULE is NULL in =y mode, /sys/module/<xyz> can still exist (cf. /sys/module/printk). I just don't know how to get at the kobj for it, but the existence of it must mean it's there somewhere. Might ask sysfs authors. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html