From: "Yang, Chen" <chyang@clusterfs.com>
To: "Adrian Bunk" <bunk@fs.tum.de>,
"Marcelo Tosatti" <marcelo@conectiva.com.br>,
<braam@clusterfs.com>, <intermezzo-devel@lists.sourceforge.net>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [2.4 patch] fix a compile warning in InterMezzo file.c (fwd)
Date: Wed, 4 Feb 2004 00:22:51 +0800 [thread overview]
Message-ID: <00d601c3ea74$f964bae0$4cda96d3@ccr.corp.intel.com> (raw)
In-Reply-To: <20040130195153.GP3004@fs.tum.de>
Hi,
Below patch applies to 2.4.25-pre8. Thanks.
diff -urN linux-2.4.24/fs/intermezzo.orig/dir.c
linux-2.4.24/fs/intermezzo/dir.c
--- linux-2.4.24/fs/intermezzo.orig/dir.c 2002-11-29 07:53:15.000000000
+0800
+++ linux-2.4.24/fs/intermezzo/dir.c 2004-02-03 23:58:18.000000000 +0800
@@ -1378,13 +1378,9 @@
return rc;
}
- case TCGETS:
- EXIT;
- return -EINVAL;
-
default:
EXIT;
- return -EINVAL;
+ return -ENOTTY;
}
EXIT;
diff -urN linux-2.4.24/fs/intermezzo.orig/file.c
linux-2.4.24/fs/intermezzo/file.c
--- linux-2.4.24/fs/intermezzo.orig/file.c 2002-11-29 07:53:15.000000000
+0800
+++ linux-2.4.24/fs/intermezzo/file.c 2004-02-04 00:12:50.000000000 +0800
@@ -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;
--
Yang, Chen
----- Original Message -----
From: "Adrian Bunk" <bunk@fs.tum.de>
To: "Marcelo Tosatti" <marcelo@conectiva.com.br>; <braam@clusterfs.com>;
<intermezzo-devel@lists.sourceforge.net>
Cc: <linux-kernel@vger.kernel.org>
Sent: Saturday, January 31, 2004 3:51 AM
Subject: [2.4 patch] fix a compile warning in InterMezzo file.c (fwd)
> 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 -iwit
hprefix
> 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 -----
>
prev parent reply other threads:[~2004-02-03 16:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-30 19:51 Adrian Bunk
2004-02-03 16:22 ` Yang, Chen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00d601c3ea74$f964bae0$4cda96d3@ccr.corp.intel.com' \
--to=chyang@clusterfs.com \
--cc=braam@clusterfs.com \
--cc=bunk@fs.tum.de \
--cc=intermezzo-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome