Hi, This is a common problem while starting the module programming. As stated in the error all the include files are taken from the kernel source 2.4.0-0.26smp while your running kernel is 2.2.16-22smp. What you need to do is you need to include all the files for kernel version 2.2.16-22smp. gcc got an option -I <include path> which allows you to specify the path of include files. So specify this option at compile time, where you point to include directory of 2.2.16-22smp kernel - your running kernel. So if you have two kernel sources under /usr/src as 2.2.16-22smp. 2.4.0-0.26smp your command should be something like gcc -c -D__KERNEL__ -DMODULE <file name> -I /usr/src/2.2.16-22smp/include HTS Aniruddha -----Original Message----- From: Chirag Kantharia [mailto:kantharia@hathway.com] Sent: Thursday, January 23, 2003 10:55 AM To: radha anu Cc: kernelnewbies@nl.linux.org Subject: Re: Help for Charcter Device driver On Mon, Jan 20, 2003 at 11:03:49PM -0800, radha anu wrote: | warning: kernel-module version mismatch | x.o was compiled for kernel version 2.4.0-0.26smp while this kernel is version 2.2.16-22smp. <snip> | How to take care of this smp system for version problem.what code i have to write . You do not have to write anything special. Read the FAQ on kernelnewbies.org (`How do I compile a module?'). -- Chirag Kantharia, symonds.net/~chyrag/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/