[epic] Re: Bad compile for epic100 (Kent Jefferies)

Kent Jefferies jkjefferies@gmpexpress.net
Fri Mar 22 13:33:01 2002


epic-request@scyld.com wrote:

> Send epic mailing list submissions to
>         epic@scyld.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.scyld.com/mailman/listinfo/epic
> or, via email, send a message with subject or body 'help' to
>         epic-request@scyld.com
>
> You can reach the person managing the list at
>         epic-admin@scyld.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of epic digest..."
>
> Today's Topics:
>
>    1. Bad compile for epic100 (Kent Jefferies)
>
> --__--__--
>
> Message: 1
> Date: Thu, 21 Mar 2002 12:04:02 -0500
> From: Kent Jefferies <jkjefferies@gmpexpress.net>
> To: Epic Driver Group <epic@scyld.com>
> Subject: [epic] Bad compile for epic100
>
> --Compile line
> gcc -c epic100.c -DMODULE -I/usr/src/linux/include -Wall
> -Wstrict-prototypes -O6 -o epic100.o
>
> --Rresults
> In file included from epic100.c:97:
> /usr/src/linux/include/linux/interrupt.h:10: warning: `struct pt_regs'
> declared inside parameter list
> /usr/src/linux/include/linux/interrupt.h:10: warning: its scope is only
> this definition or declaration, which is probably not what you want.
> In file included from /usr/src/linux/include/linux/interrupt.h:52,
>                  from epic100.c:97:
> /usr/src/linux/include/asm/hardirq.h: In function `release_irqlock':
> /usr/src/linux/include/asm/hardirq.h:37: `NO_PROC_ID' undeclared (first
> use in this function)
> /usr/src/linux/include/asm/hardirq.h:37: (Each undeclared identifier is
> reported only once
> /usr/src/linux/include/asm/hardirq.h:37: for each function it appears
> in.)
> In file included from /usr/src/linux/include/linux/interrupt.h:53,
>                  from epic100.c:97:
> /usr/src/linux/include/asm/softirq.h: At top level:
> /usr/src/linux/include/asm/softirq.h:13: parse error before
> `i386_bh_lock_Rsmp_d084430b'
> /usr/src/linux/include/asm/softirq.h:13: warning: type defaults to `int'
>
> in declaration of `i386_bh_lock_Rsmp_d084430b'
> /usr/src/linux/include/asm/softirq.h:13: warning: data definition has no
>
> type or storage class
> /usr/src/linux/include/asm/softirq.h: In function `init_bh':
> /usr/src/linux/include/asm/softirq.h:86: warning: implicit declaration
> of function `spin_lock_irqsave'
> /usr/src/linux/include/asm/softirq.h:88: warning: implicit declaration
> of function `spin_unlock_irqrestore'
> make: *** [epic] Error 1
>
> --__--__--
>

By adding the following includes to the ".c", it now works, but I hate
doing this.  What is the real problem and solution here?

> #include <asm/ptrace.h>
> #include <asm/smp.h>
> #include <asm/spinlock.h>
>

Kent


>
> _______________________________________________
> epic mailing list
> epic@scyld.com
> http://www.scyld.com/mailman/listinfo/epic
>
> End of epic Digest