Skip to contentSkip to conversation

Remove compile warning from fs/ncpfs/inode.c

Trivial 2.5.58 Bob Miller 1 participant 1 message Jan 17, 2003

lore
Share & tools
lore

Bob Miller

author
#0 lore raw

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.

fs/ncpfs/inode.c +2 -0
diff -Nru a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c
@@ -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.
Signature · 2 lines
Bob Miller					Email: [email protected]
Open Source Development Lab			Phone: 503.626.2455 Ext. 17