I added
EXTRA_AFLAGS += -DLINUX_2_6
CFLAGS_miface.o = -D"KBUILD_MODNAME=KBUILD_STR(NAME)"
to all the modules that are to be linked to my module and I could load
the drivers without problems.
Dinesh
cihan wrote:
Hello everybody
I have a module that write for kernel 2.4 and I have to port to kernel 2.6
But I compile it and I give an error like below
pci.h: KBUILD_MODNAME undeclard
then I add a define in makefile like this
-D"KBUILD_MODNAME=KBUILD_STR(stpm)"
and I give this error
pci.h: stpm undeclared
I cant understand what problem is.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ