LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [Patch] arch/um/kernel/um_arch.c: some small improvements
@ 2008-02-15 14:07 WANG Cong
  2008-02-15 16:02 ` [uml-devel] " Jeff Dike
  0 siblings, 1 reply; 2+ messages in thread
From: WANG Cong @ 2008-02-15 14:07 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton, dike, user-mode-linux-devel


Make some small improvements for arch/um/kernel/um_arch.c.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Jeff Dike <jdike@addtoit.com>

---
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index a6c1dd1..56deed6 100644
--- a/arch/um/kernel/um_arch.c
+++ b/arch/um/kernel/um_arch.c
@@ -115,7 +115,7 @@ static int have_root __initdata = 0;
 /* Set in uml_mem_setup and modified in linux_main */
 long long physmem_size = 32 * 1024 * 1024;
 
-static char *usage_string =
+static const char *usage_string =
 "User Mode Linux v%s\n"
 "	available at http://user-mode-linux.sourceforge.net/\n\n";
 
@@ -202,7 +202,7 @@ static void __init uml_checksetup(char *line, int *add)
 
 	p = &__uml_setup_start;
 	while (p < &__uml_setup_end) {
-		int n;
+		size_t n;
 
 		n = strlen(p->str);
 		if (!strncmp(line, p->str, n) && p->setup_func(line + n, add))
@@ -258,7 +258,8 @@ int __init linux_main(int argc, char **argv)
 {
 	unsigned long avail, diff;
 	unsigned long virtmem_size, max_physmem;
-	unsigned int i, add;
+	unsigned int i;
+	int add;
 	char * mode;
 
 	for (i = 1; i < argc; i++) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [uml-devel] [Patch] arch/um/kernel/um_arch.c: some small improvements
  2008-02-15 14:07 [Patch] arch/um/kernel/um_arch.c: some small improvements WANG Cong
@ 2008-02-15 16:02 ` Jeff Dike
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2008-02-15 16:02 UTC (permalink / raw)
  To: WANG Cong
  Cc: Linux Kernel Mailing List, Andrew Morton, dike, user-mode-linux-devel

On Fri, Feb 15, 2008 at 10:07:42PM +0800, WANG Cong wrote:
> 
> Make some small improvements for arch/um/kernel/um_arch.c.
> 
> Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
> Cc: Jeff Dike <jdike@addtoit.com>

ACK

	Jeff

-- 
Work email - jdike at linux dot intel dot com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-15 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-15 14:07 [Patch] arch/um/kernel/um_arch.c: some small improvements WANG Cong
2008-02-15 16:02 ` [uml-devel] " Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).