Re: buggy include path?

From: Randy.Dunlap (rddunlap@osdl.org)
Date: Tue Feb 18 2003 - 18:39:19 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:23 EST