Find the answer to your Linux question:
Results 1 to 2 of 2
These r the errors i get during make, the program is from Linux kernel module programming guide. Can somebody help me out with the changes i need to do so ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Location
    Hyderabad, India
    Posts
    1

    Exclamation Interrupt Handler: Errors


    These r the errors i get during make, the program is from Linux kernel module programming guide. Can somebody help me out with the changes i need to do so as to make it work with linux kernel 2.6.34



    make -C /lib/modules/2.6.33.5-112.fc13.i686/build M=/home/adithya/Documents/test7 modules
    make[1]: Entering directory `/usr/src/kernels/2.6.33.5-112.fc13.i686'
    CC [M] /home/adithya/Documents/test7/intrpt.o
    /home/adithya/Documents/test7/intrpt.c:13:5: warning: "CONFIG_MODVERSIONS" is not defined
    /home/adithya/Documents/test7/intrpt.c:19:26: error: linux/tqueue.h: No such file or directory
    /home/adithya/Documents/test7/intrpt.c: In function ‘irq_handler’:
    /home/adithya/Documents/test7/intrpt.c:53: error: variable ‘task’ has initializer but incomplete type
    /home/adithya/Documents/test7/intrpt.c:53: warning: excess elements in struct initializer
    /home/adithya/Documents/test7/intrpt.c:53: warning: (near initialization for ‘task’)
    /home/adithya/Documents/test7/intrpt.c:53: warning: excess elements in struct initializer
    /home/adithya/Documents/test7/intrpt.c:53: warning: (near initialization for ‘task’)
    /home/adithya/Documents/test7/intrpt.c:53: warning: excess elements in struct initializer
    /home/adithya/Documents/test7/intrpt.c:53: warning: (near initialization for ‘task’)
    /home/adithya/Documents/test7/intrpt.c:53: warning: excess elements in struct initializer
    /home/adithya/Documents/test7/intrpt.c:53: warning: (near initialization for ‘task’)
    /home/adithya/Documents/test7/intrpt.c:53: error: storage size of ‘task’ isn’t known
    /home/adithya/Documents/test7/intrpt.c:61:5: warning: "LINUX_VERSION_CODE" is not defined
    /home/adithya/Documents/test7/intrpt.c:64: error: implicit declaration of function ‘queue_task_irq’
    /home/adithya/Documents/test7/intrpt.c:64: error: ‘tq_immediate’ undeclared (first use in this function)
    /home/adithya/Documents/test7/intrpt.c:64: error: (Each undeclared identifier is reported only once
    /home/adithya/Documents/test7/intrpt.c:64: error: for each function it appears in.)
    /home/adithya/Documents/test7/intrpt.c:66: error: implicit declaration of function ‘mark_bh’
    /home/adithya/Documents/test7/intrpt.c:66: error: ‘IMMEDIATE_BH’ undeclared (first use in this function)
    /home/adithya/Documents/test7/intrpt.c:53: warning: unused variable ‘task’
    /home/adithya/Documents/test7/intrpt.c: In function ‘init_module’:
    /home/adithya/Documents/test7/intrpt.c:86: error: ‘SA_SHIRQ’ undeclared (first use in this function)
    /home/adithya/Documents/test7/intrpt.c:87: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
    include/linux/interrupt.h:117: note: expected ‘irq_handler_t’ but argument is of type ‘void (*)(int, void *, struct pt_regs *)’
    make[2]: *** [/home/adithya/Documents/test7/intrpt.o] Error 1
    make[1]: *** [_module_/home/adithya/Documents/test7] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.33.5-112.fc13.i686'
    make: *** [all] Error 2

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Posts
    7
    Looks some headers file are missing from kernel source.

    Could you share code?

    Regards
    Soibam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •