From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Qingye Jiang (John)" Subject: Newbie Question -- error: implicit declaration of function 'iget' Date: Thu, 27 Nov 2008 12:03:32 +0800 Message-ID: <492E1C14.2000509@Sun.Com> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7BIT To: linux-fsdevel@vger.kernel.org Return-path: Received: from sineb-mail-2.sun.com ([192.18.19.7]:38997 "EHLO sineb-mail-2.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751007AbYK0EDh (ORCPT ); Wed, 26 Nov 2008 23:03:37 -0500 Received: from fe-apac-06.sun.com (fe-apac-06.sun.com [192.18.19.177] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mAR43YZ9009500 for ; Thu, 27 Nov 2008 04:03:34 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KAZ00K014I6UA00@mail-apac.sun.com> (original mail from John.Jiang@Sun.COM) for linux-fsdevel@vger.kernel.org; Thu, 27 Nov 2008 12:03:34 +0800 (SGT) Received: from [123.112.95.61] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KAZ00MOT4LXVZCE@mail-apac.sun.com> for linux-fsdevel@vger.kernel.org; Thu, 27 Nov 2008 12:03:34 +0800 (SGT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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