LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-07-2011, 12:08 PM   #1
minivy
LQ Newbie
 
Registered: Nov 2011
Posts: 15

Rep: Reputation: Disabled
Why Does Linux Headers Keep Including Too Many Headers?


To Linux fans,

I am using the following files to build Linux USB3.0 Host Controller.

xhci.c, xhci.h, xhci-dbg.c, xhci-ext-caps.h, xhci-hub.c,
xhci-mem.c, xhci-pci.c, and xhci-ring.c

I face a problem that the header files just keep including other header files. So far I have to include about 100 header files already but still have more to go!

The question is when does it end or may be I am not doing it right?

Thanks in advnace
 
Old 12-07-2011, 12:11 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how are you including them? if they are including them, then the point is you will have them already. You're almost certainly not doing it right, but as you've not said what you ARE doing, how can we clarify it?
 
Old 12-07-2011, 02:16 PM   #3
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You should include high level's header file instead of low level. Normally high level's header file already include a lot of low level's.
 
  


Reply



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
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 11:12 AM
Difference between packages linux-headers-foo and linux-headers-foo-generic? jhwilliams Ubuntu 1 10-19-2009 05:04 AM
Makefile: including a subdirectory filled with headers and srcs chris24300 Linux - Newbie 7 09-11-2009 01:00 PM
Linux 2.4.26 headers toucents Linux From Scratch 1 09-22-2004 09:46 PM
c++ programming: including headers from external libraries isl01jbe Programming 3 07-20-2004 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:15 PM.

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