2.3.35 nit picking patches to remove warnings

Keith Owens (kaos@ocs.com.au)
Wed, 29 Dec 1999 23:59:10 +1100


Cross mailed to maintainers, where they exist.

================

drivers/scsi
scsi.c: In function `scsi_do_cmd':
scsi.c:1441: warning: unused variable `device'

Index: 35.6/drivers/scsi/scsi.c
--- 35.6/drivers/scsi/scsi.c Wed, 29 Dec 1999 22:21:49 +1100 keith (linux-2.3/M/8_scsi.c 1.11.1.7 644)
+++ 35.6(w)/drivers/scsi/scsi.c Wed, 29 Dec 1999 23:23:48 +1100 keith (linux-2.3/M/8_scsi.c 1.11.1.7 644)
@@ -1438,7 +1438,6 @@
int timeout, int retries)
{
struct Scsi_Host *host = SCpnt->host;
- Scsi_Device *device = SCpnt->device;

ASSERT_LOCK(&io_request_lock, 0);

================

fs/ext2
super.c:790: warning: static declaration for `init_ext2_fs' follows non-static
super.c: In function `exit_ext2_fs':
super.c:797: warning: control reaches end of non-void function

Index: 35.6/include/linux/ext2_fs.h
--- 35.6/include/linux/ext2_fs.h Tue, 14 Dec 1999 21:55:46 +1100 keith (linux-2.3/D/b/32_ext2_fs.h 1.5 644)
+++ 35.6(w)/include/linux/ext2_fs.h Wed, 29 Dec 1999 23:30:49 +1100 keith (linux-2.3/D/b/32_ext2_fs.h 1.5 644)
@@ -597,7 +597,6 @@
extern void ext2_write_super (struct super_block *);
extern int ext2_remount (struct super_block *, int *, char *);
extern struct super_block * ext2_read_super (struct super_block *,void *,int);
-extern int init_ext2_fs(void);
extern int ext2_statfs (struct super_block *, struct statfs *, int);

/* truncate.c */
Index: 35.6/fs/ext2/super.c
--- 35.6/fs/ext2/super.c Wed, 29 Dec 1999 22:21:49 +1100 keith (linux-2.3/L/b/7_super.c 1.5 644)
+++ 35.6(w)/fs/ext2/super.c Wed, 29 Dec 1999 23:33:54 +1100 keith (linux-2.3/L/b/7_super.c 1.5 644)
@@ -793,7 +793,7 @@

static int __exit exit_ext2_fs(void)
{
- unregister_filesystem(&ext2_fs_type);
+ return unregister_filesystem(&ext2_fs_type);
}

EXPORT_NO_SYMBOLS;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/