Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126456 - kqemu won't compile on newer mm-kernels
Summary: kqemu won't compile on newer mm-kernels
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-16 13:40 UTC by emerald
Modified: 2006-03-17 16:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
module param fix for newest mm-kernels (module_param_fix.patch,571 bytes, patch)
2006-03-17 16:36 UTC, emerald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description emerald 2006-03-16 13:40:30 UTC
kqemu won't compile on newer mm-kernels since it uses a now deprecated module param and module loading method, which is no longer available in mm kernels but still works in non mm-kernels but sooner or later won't work there anymore too
(still works on -rc kernels: 2.6.16-rc5 tested)
i sadly am not yet enough of a kernel hacker otherwise i'd provided patches already :(

error message:

KQEMU Linux module configuration:
kernel sources    /usr/src/linux
kbuild type       2.6
make: Entering directory `/var/tmp/portage/kqemu-0.7.2/work/qemu-0.7.2/kqemu'
make -C /usr/src/linux M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.16-rc6-mm1'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  CC [M]  /var/tmp/portage/kqemu-0.7.2/work/qemu-0.7.2/kqemu/kqemu-linux.o
/var/tmp/portage/kqemu-0.7.2/work/qemu-0.7.2/kqemu/kqemu-linux.c:51: error: expected ')' before string constant
/var/tmp/portage/kqemu-0.7.2/work/qemu-0.7.2/kqemu/kqemu-linux.c:55: error: expected ')' before string constant
make[2]: *** [/var/tmp/portage/kqemu-0.7.2/work/qemu-0.7.2/kqemu/kqemu-linux.o] Error 1
make[1]: *** [_module_/var/tmp/portage/kqemu-0.7.2/work/qemu-0.7.2/kqemu] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16-rc6-mm1'
make: *** [kqemu.ko] Error 2
make: Leaving directory `/var/tmp/portage/kqemu-0.7.2/work/qemu-0.7.2/kqemu'

!!! ERROR: app-emulation/kqemu-0.7.2 failed.


changes in modules n module params:

2.6.16-rc5:
http://www.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fpeople%2Fakpm%2Fpatches%2F2.6%2F2.6.16-rc5%2F2.6.16-rc5-mm1%2F2.6.16-rc5-mm1.bz2;z=3055
http://www.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fpeople%2Fakpm%2Fpatches%2F2.6%2F2.6.16-rc5%2F2.6.16-rc5-mm1%2F2.6.16-rc5-mm1.bz2;z=3056

2.6.16-rc6:
http://www.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fpeople%2Fakpm%2Fpatches%2F2.6%2F2.6.16-rc6%2F2.6.16-rc6-mm1%2F2.6.16-rc6-mm1.bz2;z=3519
http://www.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fpeople%2Fakpm%2Fpatches%2F2.6%2F2.6.16-rc6%2F2.6.16-rc6-mm1%2F2.6.16-rc6-mm1.bz2;z=3520
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-16 13:52:12 UTC
mm-sources is unsupported kernel on Gentoo.

http://www.gentoo.org/doc/en/gentoo-kernel.xml#doc_chap3
Comment 2 emerald 2006-03-17 16:36:22 UTC
Created attachment 82415 [details, diff]
module param fix for newest mm-kernels

module params update patch for using current module_param structure, i confirmed it's in kernel since 2.6.0.
i don't know when it went in so at least everyone using 2.6 kernel can use the new struct and not the old, obsolete one
it's the same kind of patch andrew morton used to upgrade remaining modules to new module param struct
module compiles, loads correctly and is used when running qemu