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

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

 



Przemyslaw Urbanski (Przemyslaw.Urbanski@xxxxxxxxxxxx) wrote:
> Chris,
> 
> This is right, but only if i want to do actually something with the
> device. pci_get_device it's just probing if device is present on the
> system. so pci_enable it would not make sens if device would not exist. 
> 
> Anyway this code works (i mean do not cause seg fault), but if i add
> I/lib/modules/KERNELVERSIO/build/include/asm/mach-default to CFLAGS, i'm
> getting seg fault.

You are totally right. I have fired without search ;(

Sorry.

	~Christophe


--
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