Find the answer to your Linux question:
Results 1 to 6 of 6
Hay, Whenever I tried "Make" command for build a module at that time I got warning implicit declaration of function ‘register_chardev' module is generated but I m not able to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! s13884's Avatar
    Join Date
    Apr 2007
    Posts
    28

    Arrow Makefile compailation warning "implicit declaration of function"


    Hay,

    Whenever I tried "Make" command for build a module at that time I got warning

    implicit declaration of function ‘register_chardev'

    module is generated but I m not able to load the module into kernel and I got the errro like
    "insmod: error inserting 'chardev.ko': -1 Unknown symbol in module"

    so can anybody help me for this problem

    Is that any mistek in my make file or in my source code.

    -S

  2. #2
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    464
    You would probably benefit by pasting the error text into a google search. You'll get a lot of hits.
    Glenn
    Powered by Fedora

  3. #3
    Just Joined! s13884's Avatar
    Join Date
    Apr 2007
    Posts
    28
    Quote Originally Posted by glennzo View Post
    You would probably benefit by pasting the error text into a google search. You'll get a lot of hits.
    Thanks for your assitence,
    But I already tried google.

    -S

  4. #4
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Quote Originally Posted by s13884 View Post
    Is that any mistek in my make file or in my source code.
    -S
    Probably, can you post the warnings, your code and make file within code brackets?
    Do you have the proper header/source files installed on your system?

    Regards

  5. #5
    Just Joined! vijay_kernel's Avatar
    Join Date
    Apr 2007
    Posts
    77
    hi,

    Please check ur function name its not "register_chardev".
    It should be " register_chrdev" . dont mention "a" in chrdev.
    check now , it should work.


    Cheers!!
    Vjiay.

    " Have a gr8 weekend ".

  6. #6
    Just Joined! s13884's Avatar
    Join Date
    Apr 2007
    Posts
    28
    Quote Originally Posted by vijay_kernel View Post
    hi,

    Please check ur function name its not "register_chardev".
    It should be " register_chrdev" . dont mention "a" in chrdev.
    check now , it should work.


    Cheers!!
    Vjiay.

    " Have a gr8 weekend ".
    Thanks vijay...

    Now it's working

    Cheers
    -S

Posting Permissions

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