Re: example 2.4 standalone modules?

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

 



On Wed, Jan 29, 2003 at 01:35:33AM -0800, Adam Wiggins wrote:
> gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c chardev.c
> In file included from /usr/include/linux/fs.h:23,
>                  from chardev.c:21:
> /usr/include/linux/string.h:8:2: warning: #warning Using kernel header
> in userland!
> chardev.c:41:45: asm/uaccess.h: No such file or directory
[....]


First problems first:
http://kernelnewbies.org/faq/index.php3#compmod

Note especially the admonation against /usr/include/.

:)

-- 
United States of America: The world leader in short-sighted policy!

Attachment: pgp00275.pgp
Description: PGP signature


[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