lkml.org 
[lkml]   [1998]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.1.77 and pre-2.1.78-3: trouble compiling Coda module
With CONFIG_CODA_FS=m, I get these compilation errors from pre-2.1.78-3:

symlink.c:54: conflicting types for `coda_readlink'
symlink.c:27: previous declaration of `coda_readlink'
symlink.c: In function `coda_readlink':
symlink.c:55: structure has no member named `d_inode'
make[2]: *** [symlink.o] Error 1
make[2]: Leaving directory `/usr/sys/linux/fs/coda'

I get this warning with 2.1.77:

cnode.c:17: warning: static declaration for `coda_cnode_alloc' follows
non-static

Making the following change made the warning go away, but I'm not sure
it's correct. I haven't actually tried to use Coda yet.

--- /usr/src/linux/fs/coda/cnode.c Sun Dec 21 14:45:14 1997
+++ cnode.c Sun Jan 4 15:33:43 1998
@@ -1,3 +1,4 @@
+/* cnode.c */
/* cnode related routines for the coda kernel code
Peter Braam, Sep 1996.
*/
@@ -13,11 +14,8 @@
extern int coda_debug;
extern int coda_print_entry;

-/* cnode.c */
-static struct cnode *coda_cnode_alloc(void);
-
/* return pointer to new empty cnode */
-static struct cnode *coda_cnode_alloc(void)
+struct cnode *coda_cnode_alloc(void)
{
struct cnode *result = NULL;
___
Trevor Johnson

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:1.508 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site