error: ‘KBUILD_MODNAME’ undeclared in function ‘pci_register_driver’
Hi all,
Am developing a sample PCI driver and running it in FC7 - 2.6.21 kernel.
On compilation, i got the follwing error:
include/linux/pci.h: In function ‘pci_register_driver’:
include/linux/pci.h:595: error: ‘KBUILD_MODNAME’ undeclared (first use in this function)
include/linux/pci.h:595: error: (Each undeclared identifier is reported only once
include/linux/pci.h:595: error: for each function it appears in.)
May i know the root cause of this error?
Thanks in advance.
Regards,
amio
|