Re: Missing header files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hi all.

  I am in a situation very similar to Paridhi. In my module try, the compilator
don't find headers out of /usr/src/include but it can't find all headers it
seems need, and i can't understand why.

  This is the code:

*/ Trying to activate and desactivate the DMA from a module. */

#define __KERNEL__
#define MODULE

#include <linux/module.h>
#include <linux/ide.h>

MODULE_LICENSE("GPL");

u8 using_dma;

int init_module(void)
{
  printk("Activating DMA. \n");
  using_dma = 1;
  return 0;
}

void cleanup_module(void)
{
  using_dma = 0;
  printk("Deactivating DMA. \n");
}

  I compile this code with:

gcc -Wall -c -I/usr/src/linux/include -DKBUILD_MODNAME=Module_dma Module_dma.c

and i'm using gcc version 3.2.1 and module-init-tools-0.7

  I hope you can help.

  Thanks you, very much, in advance.

  Regards.

  Jose. 

Debian GNU/Linux 'Sid' Kernel 2.4.19 Ext3.
ESware Linux 365 Kernel 2.5.49 ReiserFS.
Registered Linux User #213309.
Memories..... You are talking about memories.
Rick Deckard. Blade Runner.


--- message from Seth Arnold <sarnold@wirex.com> attached:

_____________________________________________________________
Get your own free tiggerfan.com email address!!
DisneySites!! - http://www.disneysites.com/webmail/tiggerfan

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
--- Begin Message ---
On Thu, Nov 28, 2002 at 10:50:35PM -0800, paridhi bansal wrote:
> I have included linux/skbuff.h in my program.When i
> compile this program, it gives me error that asm/msr.h
> and asm/fixmap.h are not in /usr/include.

If your program is in the kernel, it should not be using /usr/include.
Please see the FAQ. :)

-- 
"There's an old saying in Tennessee, i know it's in Texas, probably in
Tennessee, that says, 'Fool me once... shame on ... shame on .. you; but
fool--you can't get fooled again.'" -- Commander in Chief of the US Military

Attachment: pgp00232.pgp
Description: PGP signature

--- End Message ---

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux