LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-18-2010, 11:03 AM   #1
suresh.j
Member
 
Registered: Jul 2010
Posts: 38

Rep: Reputation: 15
Compilation error


hi
i compiled the kernel and i got this error
i wrote a syscall and i compiled the kernel i got this error
kernel/sys.c: error:called object 8192ul is not a function
Can any one say how to rectify it.
thank you in advance.
 
Old 09-18-2010, 03:50 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You try to call something that isn't a function. It's most likely in a situation where you have a function pointer somewhere. Double-check your code.
 
Old 09-19-2010, 11:15 AM   #3
suresh.j
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 15
The code is
asmlinkage long sys_abcd(void)
{
printk("%ld",THREAD_SIZE);
}
if it is wrong can you say where is this is going wrong if it is correct then why its not working...
 
Old 09-25-2010, 02:37 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
This looks OK, the only small thing is that it should return something.

How do you register this function as a syscall handler?
 
1 members found this post helpful.
Old 09-25-2010, 02:59 PM   #5
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
You would need to return the value you tried to printk, like so:

Code:
asmlinkage long sys_abcd(void)
{
  printk("%ld", THREAD_SIZE);
  return THREAD_SIZE;
};
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to resolve compilation error;./List.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ amolgupta Programming 3 01-09-2009 10:09 AM
Inkscape compilation error: *** [extension/internal/pdfinput/pdf-parser.o] Error 1 w1k0 Slackware 12 10-25-2008 09:53 AM
compilation error : /tmp/cczC6Kc3.s:7368: Error: unknown pseudo-op: `.ltorg' nankie Red Hat 0 08-19-2008 10:15 AM
Error during the compilation of Prozilla. How to correct the recursive error? deepumnit Linux - Software 1 01-10-2008 11:02 AM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration