[2.4 patch] fix a compile warning in InterMezzo file.c (fwd)
From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 01/30/04
- Previous message: Andrew Morton: "Re: 2.6.2-rc2-mm2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 20:51:53 +0100 To: Marcelo Tosatti <marcelo@conectiva.com.br>, braam@clusterfs.com, intermezzo-devel@lists.sourceforge.net
The patch forwarded below still applies and compiles against
2.4.25-pre8.
Please apply
Adrian
----- Forwarded message from Adrian Bunk <bunk@fs.tum.de> -----
Date: Fri, 5 Sep 2003 11:20:50 +0200
From: Adrian Bunk <bunk@fs.tum.de>
To: braam@clusterfs.com,
intermezzo-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org,
trivial@rustcorp.com.au
Subject: [2.4 patch] fix a compile warning in InterMezzo file.c
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;
-
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/
----- End forwarded message -----
-
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/
- Previous message: Andrew Morton: "Re: 2.6.2-rc2-mm2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [2.4 patch] fix a compile warning in tipar.c (fwd)
... [2.4 patch] fix a compile warning in tipar.c ... send the line "unsubscribe
linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - [PATCH 2/2] new valid_signal function - convert code that currently tests _NSIG directly to use the
... warning in fs/fcntl.c, during the discussion Matthew Wilcox noted that ... Below
is the second patch that puts the valid_signalfunction to actual ... int disallow_signal
... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [CHECKER] inconsistent NFS stat cache (NFS on ext3, 2.6.11)
... > the default for knfsd. ... No-one has complained loudly enough or long
enough or sent me a patch, ... probably time to remove that warning). ...
send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [2.6 patch] add -Werror-implicit-function-declaration to CFLAGS
... >> Currently, using an undeclared function gives a compile warning, but it ...
I don't see any such warning in the 2.6.13 sparc build at Jan's ... I'm not saying that
there aren't cases this patch will break (and my ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel) - Re: 2.6.8-rc2-mm1 link errors
... put them back in plain old BSS. ... Patch attached. ... I just
worry that the warning is indicative of something more insidious ... send the line "unsubscribe
linux-kernel" in ... (Linux-Kernel)