RE: [PATCH 5/23] Fix the arguments to machine_restart on cris

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well, not really luck but anyway (the caller puts the first argument in
register r10 and the called function never uses it so no harm).

Acked-by: Mikael Starvik <[email protected]>

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Eric W. Biederman
Sent: Tuesday, July 26, 2005 7:33 PM
To: Andrew Morton
Cc: Linus Torvalds; [email protected]
Subject: [PATCH 5/23] Fix the arguments to machine_restart on cris



It appears machine_restart has been working cris just
by luck.

Signed-off-by: Eric W. Biederman <[email protected]>
---

 arch/cris/kernel/process.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

bb30d3f0b58c6ecde77e7446b8bab12610fb5f97
diff --git a/arch/cris/kernel/process.c b/arch/cris/kernel/process.c
--- a/arch/cris/kernel/process.c
+++ b/arch/cris/kernel/process.c
@@ -113,6 +113,7 @@
 #include <linux/user.h>
 #include <linux/elfcore.h>
 #include <linux/mqueue.h>
+#include <linux/reboot.h>
 
 //#define DEBUG
 
@@ -208,7 +209,7 @@ void cpu_idle (void)
 
 void hard_reset_now (void);
 
-void machine_restart(void)
+void machine_restart(char *cmd)
 {
 	hard_reset_now();
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux