Re: drivers/atm/firestream.c doesn't compile in 2.5.33

From: Alessandro Suardi (alessandro.suardi@oracle.com)
Date: Sat Aug 31 2002 - 20:28:03 EST


Adrian Bunk wrote:
> <-- snip -->
>
> ...
> gcc -Wp,-MD,./.firestream.o.d -D__KERNEL__
> -I/home/bunk/linux/kernel-2.5/linux-2.5.33-full/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=k6 -nostdinc -iwithprefix include -g -DKBUILD_BASENAME=firestream
> -c -o firestream.o firestream.c
> firestream.c: In function `fs_open':
> firestream.c:870: called object is not a function
> firestream.c:870: parse error before string constant
> firestream.c:1097: called object is not a function
> firestream.c:1097: parse error before string constant
> firestream.c: In function `fs_close':
> firestream.c:1109: called object is not a function
> firestream.c:1109: parse error before string constant
> firestream.c:1159: called object is not a function
> firestream.c:1159: parse error before string constant

Same symptom as the cpia.c (and IrDA, too). Just change

#define func_enter() fs_dprintk (FS_DEBUG_FLOW, "fs: enter "
__FUNCTION__ "\n")
#define func_exit() fs_dprintk (FS_DEBUG_FLOW, "fs: exit "
__FUNCTION__ "\n")

to

#define func_enter() fs_dprintk (FS_DEBUG_FLOW, "fs: enter %s\n",
__FUNCTION__)
#define func_exit() fs_dprintk (FS_DEBUG_FLOW, "fs: exit %s\n",
__FUNCTION__)

(the 2.4.20-pre5 firestream.c has the fixed version already)

--alessandro

  "everything dies, baby that's a fact
    but maybe everything that dies someday comes back"
        (Bruce Springsteen, "Atlantic City")

-
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/



This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:34 EST