All of lore.kernel.org
 help / color / mirror / Atom feed
* buggy include path?
@ 2003-02-18 23:29 Arador
  2003-02-18 23:39 ` Randy.Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Arador @ 2003-02-18 23:29 UTC (permalink / raw)
  To: linux-kernel

Including include/usb.h from a external module source (out of the kernel tree) causes 
this:
In file included from /home/diego/kernel/unsta/include/linux/irq.h:19,
                 from /home/diego/kernel/unsta/include/asm/hardirq.h:6,
                 from /home/diego/kernel/unsta/include/linux/interrupt.h:9,
                 from /home/diego/kernel/unsta/include/linux/usb.h:15, <- file included
                 from w9968cf.h:38,
                 from w9968cf.c:57:
/home/diego/kernel/unsta/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory

However in include/asm/irq.h you can see:

#include <linux/config.h>
#include <linux/sched.h>
/* include comes from machine specific directory */
#include "irq_vectors.h"

so who is wrong here? This include cames out
of the specific machine directory; but it doesnt
seems a wrong include.

irq_vectors.h is at: include/asm-i386/mach-default/irq_vectors.h



Diego Calleja





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: buggy include path?
  2003-02-18 23:29 buggy include path? Arador
@ 2003-02-18 23:39 ` Randy.Dunlap
  2003-02-19 15:32   ` Sam Ravnborg
  2003-02-18 23:47 ` Arador
  2003-02-19 15:33 ` Sam Ravnborg
  2 siblings, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2003-02-18 23:39 UTC (permalink / raw)
  To: Arador; +Cc: linux-kernel

On Wed, 19 Feb 2003 00:29:38 +0100
Arador <diegocg@teleline.es> wrote:

| Including include/usb.h from a external module source (out of the kernel tree)
| causes this:
| In file included from /home/diego/kernel/unsta/include/linux/irq.h:19,
|                  from /home/diego/kernel/unsta/include/asm/hardirq.h:6,
|                  from /home/diego/kernel/unsta/include/linux/interrupt.h:9,
|                  from /home/diego/kernel/unsta/include/linux/usb.h:15, <- file included
|                  from w9968cf.h:38,
|                  from w9968cf.c:57:
| /home/diego/kernel/unsta/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
| 
| However in include/asm/irq.h you can see:
| 
| #include <linux/config.h>
| #include <linux/sched.h>
| /* include comes from machine specific directory */
| #include "irq_vectors.h"
| 
| so who is wrong here? This include cames out
| of the specific machine directory; but it doesnt
| seems a wrong include.
| 
| irq_vectors.h is at: include/asm-i386/mach-default/irq_vectors.h

Actually it's in several places:
./include/asm-um/irq_vectors.h
./include/asm-i386/mach-default/irq_vectors.h
./include/asm-i386/mach-visws/irq_vectors.h
./include/asm-i386/mach-voyager/irq_vectors.h

and where it's included from is decided in linux/arch/i386/Makefile:
for example:
mflags-y += -Iinclude/asm-i386/mach-default

so the include directory is relative (ISTM).
Can the -Idirname be made more complete, e.g. by using
$TOPDIR or $MODLIB ... me wonders.
Or would that just be duplicating the default behavior?
Anyone?

--
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: buggy include path?
  2003-02-18 23:29 buggy include path? Arador
  2003-02-18 23:39 ` Randy.Dunlap
@ 2003-02-18 23:47 ` Arador
  2003-02-19 15:33 ` Sam Ravnborg
  2 siblings, 0 replies; 5+ messages in thread
From: Arador @ 2003-02-18 23:47 UTC (permalink / raw)
  To: linux-kernel

El día Wed, 19 Feb 2003 00:29:38 +0100
Arador <diegocg@teleline.es> escribió...

> Including include/usb.h from a external module source (out of the kernel tree) causes 
> this:
> In file included from /home/diego/kernel/unsta/include/linux/irq.h:19,
>                  from /home/diego/kernel/unsta/include/asm/hardirq.h:6,
>                  from /home/diego/kernel/unsta/include/linux/interrupt.h:9,
>                  from /home/diego/kernel/unsta/include/linux/usb.h:15, <- file included
>                  from w9968cf.h:38,
>                  from w9968cf.c:57:
> /home/diego/kernel/unsta/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory

of course, w9968cf.c just includes <include/usb.h>, with -I/home/diego/kernel/unsta/include


Diego Calleja

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: buggy include path?
  2003-02-18 23:39 ` Randy.Dunlap
@ 2003-02-19 15:32   ` Sam Ravnborg
  0 siblings, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2003-02-19 15:32 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: Arador, linux-kernel

On Tue, Feb 18, 2003 at 03:39:19PM -0800, Randy.Dunlap wrote:
> Can the -Idirname be made more complete, e.g. by using
> $TOPDIR or $MODLIB ... me wonders.
> Or would that just be duplicating the default behavior?
> Anyone?

That would make moving a kernel tree requiring a recompile due to usage
of absolute paths.

	Sam

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: buggy include path?
  2003-02-18 23:29 buggy include path? Arador
  2003-02-18 23:39 ` Randy.Dunlap
  2003-02-18 23:47 ` Arador
@ 2003-02-19 15:33 ` Sam Ravnborg
  2 siblings, 0 replies; 5+ messages in thread
From: Sam Ravnborg @ 2003-02-19 15:33 UTC (permalink / raw)
  To: Arador; +Cc: linux-kernel

On Wed, Feb 19, 2003 at 12:29:38AM +0100, Arador wrote:
> Including include/usb.h from a external module source (out of the kernel tree) causes 
> this:
> In file included from /home/diego/kernel/unsta/include/linux/irq.h:19,
>                  from /home/diego/kernel/unsta/include/asm/hardirq.h:6,
>                  from /home/diego/kernel/unsta/include/linux/interrupt.h:9,
>                  from /home/diego/kernel/unsta/include/linux/usb.h:15, <- file included
>                  from w9968cf.h:38,
>                  from w9968cf.c:57:
> /home/diego/kernel/unsta/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
> 

Follow Documentations/modules.txt when compiling modules outside the
kernel tree.
That will fix it.

	Sam

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-19 15:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-18 23:29 buggy include path? Arador
2003-02-18 23:39 ` Randy.Dunlap
2003-02-19 15:32   ` Sam Ravnborg
2003-02-18 23:47 ` Arador
2003-02-19 15:33 ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.