mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bob Miller <rem@osdl.org>
To: vandrove@vc.cvut.cz
Cc: trivial@rustcorp.com.au, linux-kernel@vger.kernel.org
Subject: [Trivial 2.5.58] Remove compile warning from fs/ncpfs/inode.c
Date: Fri, 17 Jan 2003 13:46:39 -0800	[thread overview]
Message-ID: <20030117214639.GA22540@doc.pdx.osdl.net> (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.

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

                 reply	other threads:[~2003-01-17 21:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030117214639.GA22540@doc.pdx.osdl.net \
    --to=rem@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@rustcorp.com.au \
    --cc=vandrove@vc.cvut.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®