lkml.org 
[lkml]   [2003]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[Trivial 2.5.58] Remove compile warning from fs/ncpfs/inode.c
The global declaration for ncp_symlink_inode_operations is only for certain
configurations. This patch limit its declaration to the configurations
where it is needed.

diff -Nru a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c
--- a/fs/ncpfs/inode.c Thu Jan 16 14:06:04 2003
+++ b/fs/ncpfs/inode.c Thu Jan 16 14:06:04 2003
@@ -227,11 +227,13 @@
ncp_update_inode(inode, nwinfo);
}

+#if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
static struct inode_operations ncp_symlink_inode_operations = {
.readlink = page_readlink,
.follow_link = page_follow_link,
.setattr = ncp_notify_change,
};
+#endif

/*
* Get a new inode.
--
Bob Miller Email: rem@osdl.org
Open Source Development Lab Phone: 503.626.2455 Ext. 17
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.042 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site