Re: pci_get_device causing seg fault whenCFLAGS=-I/lib/modules/$(shell uname -r)/build/include/asm/mach-default

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

 



On Tuesday 08 March 2005 05:16 pm, Przemyslaw Urbanski wrote:
> Hey,
>
> I have very simple module like:
>
[...]
>
> It compiles, I can load and unload module.
>
> If I add
>
> CFLAGS = -I/lib/modules/$(shell uname -r)/build/include/asm/mach-default
>
> module will cause seg fault while loading the module. Any idea, why?
>
> P

Why do you need such a thing? Use #include <asm/mach-default/header.h> in your 
source file instead.

tavi

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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