Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 06-30-2008, 02:31 AM   #1
LQ Newbie
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error: ‘LOGGING_FACILITY’ undeclared (first use in this function) nasim751 Linux - Software 1 04-19-2008 05:55 AM
undeclared here (not in a function) ashlesha Linux - Software 2 08-23-2006 11:29 PM
cairo-1.0.2 and 1.0.0 - error: CAIRO_FONT_SCALED_BACKEND_DEFAULT undeclared Linux - Software 0 01-15-2006 06:42 PM
prelink error: `PT_GNU_STACK' undeclared vbbjq Slackware 7 08-23-2004 12:57 PM
GCC:- 'cout' is an undeclared function when #include <iostream> is included? caesius_01 Programming 5 04-04-2004 11:00 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration