Leonardo E. Reiter wrote:
I have just had to apply this fix to get kqemu to work with the latest
FC6 Development kernel 2.6.16-1.2252_FC6. ALl working fine now.
I'm attaching a small update to Thomas's patch which conditionally
enables this based on kernel version. As far as I can tell (from very
brief research), module_param became available very late in 2.4. Also,
the old version (MODULE_PARM) is supported in most 2.6 kernels as well.
I picked arbitrarily 2.6.10 as the break-off point - it's really easy
to change that to be something else. In any case, Fabrice, can you
think about applying this, or something very similar, as it looks like
MODULE_PARM has been finally abandoned in the latest kernels.
Thomas Petazzoni wrote:
On 2.6.17-rc2, the MODULE_PARM() way of declaring module parameters
seems to have disappeared (it is anyway deprecated since the beginning
of the 2.6 series). As such, kqemu-1.3.0pre7 doesn't compile.
--- kqemu-linux.c.orig 2006-06-06 10:06:03.000000000 -0400
+++ kqemu-linux.c 2006-06-06 10:09:41.000000000 -0400
@@ -49,7 +49,11 @@
/* if 0 is used, then devfs/udev is used to automatically create the
int major = 250;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
+module_param(major, int, 0);
/* Lock the page at virtual address 'user_addr' and return its
physical address (page index). Return a host OS private user page