Prasad wrote:
Hello everyone !
I've written a LKM which comprise of two source file(.c files) and two
header files(.h files). I'm using -> Linux-2.6.8.1 kernel
- Both header files are NEED to be included in both of the source files,
but when I attempt to compile my LKM I get an error
message saying "symbol X is defined multiple time, First defined in file1.o"
It seems you have declared the same symobol in file1.o and file2.o. Try
to use the extern keywork or declare the symbol in the header file.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/