From: Linus Torvalds on
On Sat, Jul 31, 2010 at 11:44 PM, Ingo Molnar <mingo(a)elte.hu> wrote:
>
> FYI, these commits introduced a build failure on x86:
>
> �fs/nfs/file.c:508: error: implicit declaration of function �nfs_commit_inode�

Grr. Trond?

> @@ -492,11 +492,9 @@ extern int nfs_writeback_done(struct rpc_task *, struct nfs_write_data *);
> �extern int nfs_wb_all(struct inode *inode);
> �extern int nfs_wb_page(struct inode *inode, struct page* page);
> �extern int nfs_wb_page_cancel(struct inode *inode, struct page* page);
> -#if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4)
> �extern int �nfs_commit_inode(struct inode *, int);
> �extern struct nfs_write_data *nfs_commitdata_alloc(void);
> �extern void nfs_commit_free(struct nfs_write_data *wdata);
> -#endif

No, I think perhaps the '#if' line should just be moved down one line.
The other function still only exist for V3/V4, it's just
nfs_commit_inode() that is available (as a stub that just returns 0)
for V2.

But maybe that stub should be made an inline function or #define?

Trond?

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/