Hi All,
I am trying to get familiar with the IRQ functionality on a TS-7250 on
the Debian Sarge Distribution. I also took a look at the gps_pps
example in the File section of this group.
My problem is I want to use the request_irq(...) function, but I need
a specific header to include in C. When I try to compile with any of
the following headers:
#include <linux/module.h>
#include <linux/signal.g>
#include <linux/sched.h>
#include <asm/irq.h>
I receive a nasty exception (see at the bottom of this post).
Including <interrupt.h> alone does not throw any errors, but the
compiler will fail to recognize the request_irq(...) function.
Has anyone seen this before? Anyone have any idea?
Thanks guys,
Yas
In file included from /usr/include/linux/sched.h:12,
from /usr/include/linux/module.h:10,
from interrupt_test.c:12:
/usr/include/linux/jiffies.h:16: error: syntax error before "jiffies_64"
/usr/include/linux/jiffies.h:20: error: syntax error before
"get_jiffies_64"
In file included from /usr/include/linux/cpumask.h:8,
from /usr/include/linux/sched.h:15,
from /usr/include/linux/module.h:10,
from interrupt_test.c:12:
/usr/include/linux/bitmap.h: In function `bitmap_empty':
/usr/include/linux/bitmap.h:15: error: `BITS_PER_LONG' undeclared
(first use in this function)
/usr/include/linux/bitmap.h:15: error: (Each undeclared identifier is
reported only once
/usr/include/linux/bitmap.h:15: error: for each function it appears in.)
/usr/include/linux/bitmap.h: In function `bitmap_full':
/usr/include/linux/bitmap.h:29: error: `BITS_PER_LONG' undeclared
(first use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_equal':
/usr/include/linux/bitmap.h:44: error: `BITS_PER_LONG' undeclared
(first use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_shift_right':
/usr/include/linux/bitmap.h:85: error: `__shr_tmp' undeclared (first
use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_shift_left':
/usr/include/linux/bitmap.h:98: error: `__shl_tmp' undeclared (first
use in this function)
/usr/include/linux/bitmap.h: In function `bitmap_weight':
/usr/include/linux/bitmap.h:144: error: `BITS_PER_LONG' undeclared
(first use in this function)
In file included from /usr/include/linux/sched.h:18,
from /usr/include/linux/module.h:10,
from interrupt_test.c:12:
/usr/include/asm/semaphore.h: At top level:
/usr/include/asm/semaphore.h:18: error: syntax error before
"wait_queue_head_t"
/usr/include/asm/semaphore.h: In function `sema_init':
/usr/include/asm/semaphore.h:46: error: dereferencing pointer to
incomplete type
/usr/include/asm/semaphore.h:47: error: dereferencing pointer to
incomplete type
/usr/include/asm/semaphore.h:48: error: dereferencing pointer to
incomplete type
/usr/include/asm/semaphore.h: In function `sema_count':
/usr/include/asm/semaphore.h:66: error: dereferencing pointer to
incomplete type
In file included from /usr/include/linux/signal.h:6,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/module.h:10,
from interrupt_test.c:12:
/usr/include/asm/signal.h: At top level:
/usr/include/asm/signal.h:27: error: conflicting types for `sigset_t'
/usr/include/sys/select.h:38: error: previous declaration of `sigset_t'
In file included from /usr/include/linux/sched.h:29,
from /usr/include/linux/module.h:10,
from interrupt_test.c:12:
/usr/include/linux/completion.h:15: error: syntax error before
"wait_queue_head_t"
/usr/include/linux/completion.h: In function `init_completion':
/usr/include/linux/completion.h:26: error: dereferencing pointer to
incomplete type
/usr/include/linux/completion.h:27: error: dereferencing pointer to
incomplete type
In file included from /usr/include/linux/sched.h:30,
from /usr/include/linux/module.h:10,
from interrupt_test.c:12:
/usr/include/linux/pid.h: At top level:
/usr/include/linux/pid.h:18: error: field `task_list' has incomplete type
/usr/include/linux/pid.h:19: error: field `hash_chain' has incomplete type
/usr/include/linux/pid.h:24: error: field `pid_chain' has incomplete type
In file included from /usr/include/linux/sched.h:31,
from /usr/include/linux/module.h:10,
from interrupt_test.c:12:
/usr/include/linux/percpu.h: In function `__alloc_percpu':
/usr/include/linux/percpu.h:46: error: `GFP_KERNEL' undeclared (first
use in this function)
In file included from /usr/include/linux/sched.h:102,
from /usr/include/linux/module.h:10,
from interrupt_test.c:12:
/usr/include/linux/timer.h: At top level:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
In file included from /usr/include/asm/local.h:1,
from /usr/include/linux/module.h:19,
from interrupt_test.c:12:
/usr/include/asm-generic/local.h: In function `local_inc':
/usr/include/asm-generic/local.h:65: error: invalid type argument of `->'
/usr/include/asm-generic/local.h:65: error: invalid type argument of `->'
/usr/include/asm-generic/local.h: In function `local_dec':
/usr/include/asm-generic/local.h:72: error: invalid type argument of `->'
/usr/include/asm-generic/local.h:72: error: invalid type argument of `->'
/usr/include/asm-generic/local.h: In function `local_add':
/usr/include/asm-generic/local.h:79: error: invalid type argument of `->'
/usr/include/asm-generic/local.h:79: error: invalid type argument of `->'
/usr/include/asm-generic/local.h: In function `local_sub':
/usr/include/asm-generic/local.h:86: error: invalid type argument of `->'
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|