]> err.no Git - linux-2.6/commitdiff
[PATCH] uml: non-void functions should return something
authorJeff Dike <jdike@addtoit.com>
Fri, 6 Jan 2006 08:18:49 +0000 (00:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:45 +0000 (08:33 -0800)
There are a few functions which are declared to return something, but don't.
These are actually infinite loops which are forced to be declared as non-void.
 This makes them all return 0.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/drivers/ubd_kern.c
arch/um/kernel/sigio_user.c
arch/um/os-Linux/aio.c

index 1fe0dcd9f4643f0f5eafc544f1799167df8985a5..73f9652b2ee9000aab4243c50db4650d7974ea67 100644 (file)
@@ -1387,15 +1387,6 @@ int io_thread(void *arg)
                        printk("io_thread - write failed, fd = %d, err = %d\n",
                               kernel_fd, -n);
        }
-}
 
-/*
- * Overrides for Emacs so that we follow Linus's tabbing style.
- * Emacs will notice this stuff at the end of the file and automatically
- * adjust the settings for this buffer only.  This must remain at the end
- * of the file.
- * ---------------------------------------------------------------------------
- * Local variables:
- * c-file-style: "linux"
- * End:
- */
+       return 0;
+}
index 48b1f644b9a624a66ce16c782c832d84c4c2a074..62e5cfdf21881ca1d8bad038e497a7026afa2f6e 100644 (file)
@@ -216,6 +216,8 @@ static int write_sigio_thread(void *unused)
                                       "err = %d\n", -n);
                }
        }
+
+       return 0;
 }
 
 static int need_poll(int n)
index ffa759addd3c657e7292c07482d49d6dbc24bc38..0b78bb7a994a7b7a94d6f8fbf05754cafc9102ca 100644 (file)
@@ -210,6 +210,8 @@ static int not_aio_thread(void *arg)
                         printk("not_aio_thread - write failed, fd = %d, "
                                "err = %d\n", aio_req_fd_r, -err);
         }
+
+       return 0;
 }
 
 static int aio_pid = -1;