kernel/kobj: Put the default kobj_method inside the kobjop_desc struct.
authorSascha Wildner <saw@online.de>
Thu, 22 Mar 2012 18:35:13 +0000 (19:35 +0100)
committerSascha Wildner <saw@online.de>
Thu, 22 Mar 2012 19:07:54 +0000 (20:07 +0100)
commit0e0fd600f4c75d4dc8a6d605ba9edc960d4f205e
tree0487a28096d3c04252e5561a032e4349e6279a03
parent18cd8808a42f4ca63dec5ead58586c05a05a909b
kernel/kobj: Put the default kobj_method inside the kobjop_desc struct.

Also, make kobj_methods constant. See FreeBSD's r227343 and r227384 for
more information.

This change reduces the size of a LINT64 kernel by 18KB and our source
by 7 lines!

Taken-from: FreeBSD
sys/kern/subr_kobj.c
sys/sys/kobj.h
sys/tools/makeobjops.awk