From: "Qingye Jiang (John)" <John.Jiang@Sun.COM>
To: linux-fsdevel@vger.kernel.org
Subject: Newbie Question -- error: implicit declaration of function 'iget'
Date: Thu, 27 Nov 2008 12:03:32 +0800 [thread overview]
Message-ID: <492E1C14.2000509@Sun.Com> (raw)
Hi all,
I am a newbie on Linux file systems. I am currently learning Linux file
systems with Steve French's "Linux File Systems in 21 Days". The URL for
his tutorials is:
http://svn.samba.org/samba/ftp/cifs-cvs/samplefs.tar.gz
http://svn.samba.org/samba/ftp/cifs-cvs/ols2007-fs-tutorial-smf.odp
I have finished the day1 example, and get stuck at the day2 example.
When compiling the day2 example, I get the following error message:
qyjohn@qyjohn-laptop:/usr/src/linux-source-2.6.27$ sudo make
M=~/samplefs/day2
[sudo] password for qyjohn:
CC [M] /home/qyjohn/samplefs/day2/super.o
/home/qyjohn/samplefs/day2/super.c: In function 'samplefs_fill_super':
/home/qyjohn/samplefs/day2/super.c:112: error: implicit declaration of
function 'iget'
/home/qyjohn/samplefs/day2/super.c:112: warning: assignment makes
pointer from integer without a cast
make[1]: *** [/home/qyjohn/samplefs/day2/super.o] Error 1
make: *** [_module_/home/qyjohn/samplefs/day2] Error 2
I looked at linux/fs.h, and found that the declaration of the __iget()
function is different from what is being used in super.c.
I am using Ubuntu 8.10 with kernel version 2.6.27.2.
Can anyone shed some light on this newbie?
Thanks a lot.
John
next reply other threads:[~2008-11-27 4:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-27 4:03 Qingye Jiang (John) [this message]
2008-11-27 12:18 ` Newbie Question -- error: implicit declaration of function 'iget' Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=492E1C14.2000509@Sun.Com \
--to=john.jiang@sun.com \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.