Re: [PATCH] 2.5.5: compile error in fs/filesystems.c

Neil Brown (neilb@cse.unsw.edu.au)
Fri, 1 Mar 2002 10:57:35 +1100 (EST)


On Friday March 1, olaf.dietsche--list.linux-kernel@exmail.de wrote:
> Hi Neil,
>
> here is a patch to fix fs/filesystems.c, if you configure neither NFSD
> nor NFSD_MODULE, but CONFIG_MODULES.

Thanks.
2.5.6-pre2 already has a patch for this.

NeilBrown

>
> Regards, Olaf.
>
> --- v2.5.5/fs/filesystems.c Thu Feb 28 22:41:18 2002
> +++ linux/fs/filesystems.c Fri Mar 1 00:16:29 2002
> @@ -15,14 +15,17 @@
> #include <linux/linkage.h>
>
> #if ! defined(CONFIG_NFSD)
> +#if defined(CONFIG_NFSD_MODULES)
> struct nfsd_linkage *nfsd_linkage;
> +EXPORT_SYMBOL(nfsd_linkage);
> +#endif
>
> long
> asmlinkage sys_nfsservctl(int cmd, void *argp, void *resp)
> {
> int ret = -ENOSYS;
>
> -#if defined(CONFIG_MODULES)
> +#if defined(CONFIG_NFSD_MODULES)
> lock_kernel();
>
> if (nfsd_linkage ||
> @@ -36,6 +39,5 @@
> #endif
> return ret;
> }
> -EXPORT_SYMBOL(nfsd_linkage);
>
> #endif /* CONFIG_NFSD */
-
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/