mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arch: alpha: kernel: typo issue, using '1' instead of '11'
@ 2013-05-29 11:04 Chen Gang
  0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-05-29 11:04 UTC (permalink / raw)
  To: rth, ink, mattst88, Thomas Gleixner, Frederic Weisbecker, josh,
	srivatsa.bhat
  Cc: Greg KH, linux-alpha, linux-kernel, Linux-Arch


For sending message:

        *(unsigned int *)&cpu->ipc_buffer[0] = len;
        cp1 = (char *) &cpu->ipc_buffer[1];

But for receive message:

                cnt = cpu->ipc_buffer[0] >> 32;
                ...
                       cp1 = (char *) &cpu->ipc_buffer[11];

They are not pairs, it is typo issue of the redundency '1'.

So need use '1' instead of '11'.


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/alpha/kernel/smp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c
index 7b60834..8beb6b2 100644
--- a/arch/alpha/kernel/smp.c
+++ b/arch/alpha/kernel/smp.c
@@ -264,7 +264,7 @@ recv_secondary_console_msg(void)
 		if (cnt <= 0 || cnt >= 80)
 			strcpy(buf, "<<< BOGUS MSG >>>");
 		else {
-			cp1 = (char *) &cpu->ipc_buffer[11];
+			cp1 = (char *) &cpu->ipc_buffer[1];
 			cp2 = buf;
 			strcpy(cp2, cp1);
 			
-- 
1.7.7.6

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-29 11:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 11:04 [PATCH] arch: alpha: kernel: typo issue, using '1' instead of '11' Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®