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]

 



I am very beginner at kernel programing, and I have to work with
someones else code. Anyway, I do not know which header should be
included from <asm/mach-default/...> (if any)

anyway, when I get rid of -I/lib/modules..... option from my makefile
i'm getting warnings (which stops me from loading module afterward)
like:

*** Warning: "__subdf3" [/tmp/123/ppval.ko] undefined!
*** Warning: "__muldf3" [/tmp/123/ppval.ko] undefined!
*** Warning: "__divdf3" [/tmp/123/ppval.ko] undefined!
*** Warning: "__ledf2" [/tmp/123/ppval.ko] undefined!
*** Warning: "__adddf3" [/tmp/123/ppval.ko] undefined!
*** Warning: "__fixunsdfsi" [/tmp/123/ppval.ko] undefined!
*** Warning: "__ltdf2" [/tmp/123/ppval.ko] undefined!
*** Warning: "__floatsidf" [/tmp/123/ppval.ko] undefined!


P

On Tue, 2005-03-08 at 23:05 +0200, Octavian Purdila wrote:
> 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/
> 
> 
-- 
Przemyslaw Urbanski <purbanski@xxxxxxxxxx>


----------------------------------------------------------------------
Najlepsze MOTO w sieci! >>> http://link.interia.pl/f1862


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