* [2.4 patch] fix a compile warning in InterMezzo file.c
@ 2003-09-05 9:20 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2003-09-05 9:20 UTC (permalink / raw)
To: braam, intermezzo-devel; +Cc: linux-kernel, trivial
I got the following warning in 2.4.23-pre3:
<-- snip -->
...
gcc-2.95 -D__KERNEL__
-I/home/bunk/linux/kernel-2.4/linux-2.4.23-pre3-full/inclu
de -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -nostdinc -iwithprefix
include -DKBUILD_BASENAME=file -c -o file.o file.c
file.c: In function `presto_open_upcall':
file.c:64: warning: `rc' might be used uninitialized in this function
...
<-- snip -->
The patch below (already included in 2.6) fixes this warning.
Please apply
Adrian
--- linux-2.4.23-pre3-full/fs/intermezzo/file.c.old 2003-09-05 09:42:49.000000000 +0200
+++ linux-2.4.23-pre3-full/fs/intermezzo/file.c 2003-09-05 11:16:37.000000000 +0200
@@ -61,7 +61,7 @@
static int presto_open_upcall(int minor, struct dentry *de)
{
- int rc;
+ int rc = 0;
char *path, *buffer;
struct presto_file_set *fset;
int pathlen;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-05 9:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-05 9:20 [2.4 patch] fix a compile warning in InterMezzo file.c Adrian Bunk
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®