* [Trivial 2.5.58] Remove compile warning from fs/ncpfs/inode.c
@ 2003-01-17 21:46 Bob Miller
0 siblings, 0 replies; only message in thread
From: Bob Miller @ 2003-01-17 21:46 UTC (permalink / raw)
To: vandrove; +Cc: trivial, linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-17 21:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-17 21:46 [Trivial 2.5.58] Remove compile warning from fs/ncpfs/inode.c Bob Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®