From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from moutng.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1KW8TO-0001fB-Lo for linux-mtd@lists.infradead.org; Thu, 21 Aug 2008 11:37:03 +0000 From: Arnd Bergmann To: jaredeh@gmail.com Subject: Re: [PATCH 04/10] AXFS: axfs_inode.c Date: Thu, 21 Aug 2008 13:35:35 +0200 References: <48AD00F0.5030403@gmail.com> In-Reply-To: <48AD00F0.5030403@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808211335.36020.arnd@arndb.de> Cc: cotte@de.ibm.com, linux-embedded@vger.kernel.org, nickpiggin@yahoo.com.au, =?iso-8859-1?q?J=F6rn_Engel?= , Linux-kernel@vger.kernel.org, linux-mtd , tim.bird@am.sony.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thursday 21 August 2008, Jared Hulbert wrote: > +/***************** functions in other axfs files ******************************/ > +int axfs_get_sb(struct file_system_type *, int, const char *, void *, > + struct vfsmount *); > +void axfs_kill_super(struct super_block *); > +void axfs_profiling_add(struct axfs_super *, unsigned long, unsigned int); > +int axfs_copy_mtd(struct super_block *, void *, u64, u64); > +int axfs_copy_block(struct super_block *, void *, u64, u64); *Never* put extern declarations into a .c file, that's what headers are for. If you ever change the definition, the compiler doesn't get a chance to warn you otherwise. > +/******************************************************************************/ > +static int axfs_readdir(struct file *, void *, filldir_t); > +static int axfs_mmap(struct file *, struct vm_area_struct *); > +static ssize_t axfs_file_read(struct file *, char __user *, size_t, loff_t *); > +static int axfs_readpage(struct file *, struct page *); > +static int axfs_fault(struct vm_area_struct *, struct vm_fault *); > +static struct dentry *axfs_lookup(struct inode *, struct dentry *, > + struct nameidata *); > +static int axfs_get_xip_mem(struct address_space *, pgoff_t, int, void **, > + unsigned long *); For style reasons, also please don't put static forward declarations anywhere, but define the functions in the right order so you don't need them. Arnd <><