All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel-module version mismatch
@ 2001-11-23  7:15 Kashif
  2001-11-23  7:17 ` Robert Love
  0 siblings, 1 reply; 4+ messages in thread
From: Kashif @ 2001-11-23  7:15 UTC (permalink / raw)
  To: linux-kernel


Hi Everybody,
 I have recently upgraded from Redhat Linux 7.1 kernel
version 2.4.2 to 2.4.10. I am trying to insert a
driver module "code.o" (which was perfectly fine in the previous kernel)into
the new Kernel. But on insmod i get
an error:-

"kernel-module version mismatch. code.o was compiled
for kernel version 2.4.2-2 while this kernel is
version 2.4.10"

 Although i am able to insert the driver module with
the -f(force) switch. But this results in a faulty
operation of the driver module. Rather i get an OOps message
I have tried recompiling the source of gcc in this new kernel but
that has also not solved this problem. Help will be
appreciated! Thank you.

Kashif!



^ permalink raw reply	[flat|nested] 4+ messages in thread
* kernel-module version mismatch
@ 2003-06-30  7:19 Christopher Sly
  2003-06-30  8:36 ` Riley Williams
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Sly @ 2003-06-30  7:19 UTC (permalink / raw)
  To: linux-newbie

hello,
	im trying to run the most simple linux modules and i get the
following error on saing: 

/sbin/insmod hello.o

 hello.o was compiled for kernel version 2.4.9-9
        while this kernel is version 2.4.18-14.

I also tried:
gcc -c hello.c -I /usr/src/linux-2.4.18-14/include
 with the same consequences 

And:
gcc -c -D__KERNEL__ -DMODULE -I/usr/src/linux-2.4.18-14/include -o hello.o
hello.c
hello.c:1:1: warning: "MODULE" redefined
hello.c:1:1: warning: this is the location of the previous definition

again with the same consequence.

any suggestions?

the code looks like so:
#define MODULE
#include <linux/module.h>

int init_module (void) /* Loads a module in the kernel */
{
        printk("Hello kernel n");
        return 0;
}

void cleanup_module(void) /* Removes module from kernel */
{
        printk("GoodBye Kerneln");
}



*******************************************************************************

	Getting crazy on the waltzers but it's the life that I choose
				-- Dire Straits

*******************************************************************************




-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-30  8:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-23  7:15 Kernel-module version mismatch Kashif
2001-11-23  7:17 ` Robert Love
  -- strict thread matches above, loose matches on Subject: below --
2003-06-30  7:19 kernel-module " Christopher Sly
2003-06-30  8:36 ` Riley Williams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.