Warnings on build with v2.4.0test9pre8 (with Rik van Riel's extra fixes):

parport_pc.c:2283: warning: `parport_pc_superio_info' defined but not used
sg.c: In function `exit_sg':
sg.c:1321: warning: implicit declaration of function `sg_proc_cleanup'
page_alloc.c: In function `__alloc_pages':
page_alloc.c:473: warning: suggest parentheses around comparison in operand of &
page_alloc.c:536: warning: int format, long int arg (arg 2)
buffer.c: In function `balance_dirty_state':
buffer.c:864: warning: unused variable `shortage'
reg_add_sub.c: In function `FPU_sub':
reg_add_sub.c:143: warning: `tag' might be used uninitialized in this function
reg_compare.c: In function `FPU_compare_st_data':
reg_compare.c:177: warning: `f' might be used uninitialized in this function
reg_compare.c: In function `compare_st_st':
reg_compare.c:219: warning: `f' might be used uninitialized in this function
reg_compare.c: In function `compare_u_st_st':
reg_compare.c:271: warning: `f' might be used uninitialized in this function
reg_ld_str.c: In function `FPU_store_single':
reg_ld_str.c:635: warning: `templ' might be used uninitialized in this function
reg_divide.c: In function `FPU_div':
reg_divide.c:206: warning: control reaches end of non-void function
reg_mul.c: In function `FPU_mul':
reg_mul.c:131: warning: control reaches end of non-void function
bbootsect.s: Assembler messages:
bbootsect.s:842: Warning: indirect lcall without `*'
bsetup.s: Assembler messages:
bsetup.s:1126: Warning: indirect lcall without `*'


The parport thing is because I don't use PCI, I suppose, and fixes for
the sg.c and buffer.c warnings are attached. I won't go anywhere near the
fpu emulation code however, and the assembler warnings might be due to
having too old binutils; I'm not sure.


/David Weinehall
  _                                                                 _
 // David Weinehall <[EMAIL PROTECTED]> /> Northern lights wander      \\
//  Project MCA Linux hacker        //  Dance across the winter sky //
\>  http://www.acc.umu.se/~tao/    </   Full colour fire           </
--- linux-2.4.0test9pre8rielvmpatch/drivers/scsi/sg.c.old       Mon Oct  2 17:11:11 
2000
+++ linux-2.4.0test9pre8rielvmpatch/drivers/scsi/sg.c   Mon Oct  2 17:12:18 2000
@@ -1318,7 +1318,9 @@
 static void __exit exit_sg( void)
 {
 #ifdef CONFIG_PROC_FS
+#ifdef MODULE
     sg_proc_cleanup();
+#endif  /* MODULE */
 #endif  /* CONFIG_PROC_FS */
     scsi_unregister_module(MODULE_SCSI_DEV, &sg_template);
     devfs_unregister_chrdev(SCSI_GENERIC_MAJOR, "sg");
--- linux-2.4.0test9pre8rielvmpatch/fs/buffer.c.old     Mon Oct  2 17:06:09 2000
+++ linux-2.4.0test9pre8rielvmpatch/fs/buffer.c Mon Oct  2 17:06:16 2000
@@ -861,7 +861,6 @@
 int balance_dirty_state(kdev_t dev)
 {
        unsigned long dirty, tot, hard_dirty_limit, soft_dirty_limit;
-       int shortage;
 
        dirty = size_buffers_type[BUF_DIRTY] >> PAGE_SHIFT;
        tot = nr_free_buffer_pages();

Reply via email to