mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
[PATCH] uml: non-void functions should return something
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>
This commit is contained in:
parent
970d6e3a34
commit
1b57e9c278
@ -1387,15 +1387,6 @@ int io_thread(void *arg)
|
|||||||
printk("io_thread - write failed, fd = %d, err = %d\n",
|
printk("io_thread - write failed, fd = %d, err = %d\n",
|
||||||
kernel_fd, -n);
|
kernel_fd, -n);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
return 0;
|
||||||
* 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:
|
|
||||||
*/
|
|
||||||
|
@ -216,6 +216,8 @@ static int write_sigio_thread(void *unused)
|
|||||||
"err = %d\n", -n);
|
"err = %d\n", -n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int need_poll(int n)
|
static int need_poll(int n)
|
||||||
|
@ -210,6 +210,8 @@ static int not_aio_thread(void *arg)
|
|||||||
printk("not_aio_thread - write failed, fd = %d, "
|
printk("not_aio_thread - write failed, fd = %d, "
|
||||||
"err = %d\n", aio_req_fd_r, -err);
|
"err = %d\n", aio_req_fd_r, -err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int aio_pid = -1;
|
static int aio_pid = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user