Commit 275d1783 authored by Petr Vandrovec's avatar Petr Vandrovec

Decide whether to build fs/ncpfs/symlinks.c or not in Makefile and not through

ifdefing whole file out. It should make Al happier.
parent 0f51d45f
......@@ -5,7 +5,13 @@
obj-$(CONFIG_NCP_FS) += ncpfs.o
ncpfs-objs := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
symlink.o ncpsign_kernel.o
ncpsign_kernel.o
ifeq ($(CONFIG_NCPFS_EXTRAS),y)
ncpfs-objs += symlink.o
endif
ifeq ($(CONFIG_NCPFS_NFS_NS),y)
ncpfs-objs += symlink.o
endif
# If you want debugging output, please uncomment the following line
# EXTRA_CFLAGS += -DDEBUG_NCP=1
......
......@@ -22,8 +22,6 @@
#include <linux/config.h>
#if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
#include <asm/uaccess.h>
#include <linux/errno.h>
......@@ -117,11 +115,9 @@ int ncp_symlink(struct inode *dir, struct dentry *dentry, const char *symname) {
DPRINTK("ncp_symlink(dir=%p,dentry=%p,symname=%s)\n",dir,dentry,symname);
#ifdef CONFIG_NCPFS_NFS_NS
if (ncp_is_nfs_extras(NCP_SERVER(dir), NCP_FINFO(dir)->volNumber))
kludge = 0;
else
#endif
#ifdef CONFIG_NCPFS_EXTRAS
if (NCP_SERVER(dir)->m.flags & NCP_MOUNT_SYMLINKS)
kludge = 1;
......@@ -182,6 +178,5 @@ failfree:;
kfree(rawlink);
return err;
}
#endif
/* ----- EOF ----- */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment