LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2013, 12:54 PM   #1
suneeta
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
implicit declaration of function get_free_pages


getting warnings:implicit declaration of function get_free_pages

while allocating memory by using get_free_pages
 
Old 12-02-2013, 01:07 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,932

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by suneeta View Post
getting warnings:implicit declaration of function get_free_pages

while allocating memory by using get_free_pages
...and since you provide NOTHING that even gives us a HINT of your situation, what do you think we'll be able to tell you?? You posted a vague warning message...that's all. Unless you provide DETAILS (version/distro of Linux, what language the program was written in, what program it IS, where you got it, what you're trying to do, etc.), there's nothing anyone, anywhere will be able to tell you
 
Old 12-02-2013, 01:13 PM   #3
suneeta
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
im writing a code in linux kernel by using c to allocate dynamic memory up to 1MB for buff by using get_free_pages()function in kernel module
 
Old 12-02-2013, 01:47 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,932

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by suneeta View Post
im writing a code in linux kernel by using c to allocate dynamic memory up to 1MB for buff by using get_free_pages()function in kernel module
Ok...and you STILL don't tell us anything that would let us help you. AGAIN
  • Version/distro of Linux?
  • Kernel you're using?
  • The code?
  • What you've done/tried?
Since this is your code, unless we see it, how do you think we'll be able to help you, or tell you anything more than "You've got a bug in your code...fix it".
 
Old 12-03-2013, 08:04 AM   #5
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Quote:
Originally Posted by suneeta View Post
im writing a code in linux kernel by using c to allocate dynamic memory up to 1MB for buff by using get_free_pages()function in kernel module
And did you check which header file declares this function and did you '#include" it in your code?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
warning: implicit declaration of function liguorir Linux - Software 5 10-22-2012 04:20 PM
[SOLVED] error: implicit declaration of function 'i2c_smbus_read_byte_data' sajnanazeer Programming 5 08-18-2011 11:14 AM
warning: implicit declaration of function bhagavath812anish Programming 1 12-02-2010 03:22 AM
implicit declaration of function error HarryBoy Programming 3 09-11-2008 08:29 AM
implicit declaration of function 'getdelim' MicahCarrick Programming 2 05-02-2005 12:03 PM


All times are GMT -5. The time now is 02:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration