mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] m32r: subtract textlen instead of adding in function m32r_flat_get_addr_from_rp
@ 2014-07-04 16:46 Nicholas Krause
  0 siblings, 0 replies; only message in thread
From: Nicholas Krause @ 2014-07-04 16:46 UTC (permalink / raw)
  To: takata; +Cc: linux-m32r, linux-m32r-ja, linux-kernel

This patch fixes the message stating in this function to substract textlen for return
value of case FLAT_M32R_LO16_DATA in the switch statement for this function.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
 arch/m32r/include/asm/flat.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/m32r/include/asm/flat.h b/arch/m32r/include/asm/flat.h
index 5d711c4..12ac950 100644
--- a/arch/m32r/include/asm/flat.h
+++ b/arch/m32r/include/asm/flat.h
@@ -83,10 +83,8 @@ static inline unsigned long m32r_flat_get_addr_from_rp (unsigned long *rp,
 		case FLAT_M32R_LO16:
 			return htonl(*rp) & 0xFFFF;
 		case FLAT_M32R_LO16_DATA:
-                        /* FIXME: The return value will decrease by textlen
-			   at m32r_flat_put_addr_at_rp () */
 			textlen_for_m32r_lo16_data = textlen;
-			return (htonl(*rp) & 0xFFFF) + textlen;
+			return (htonl(*rp) & 0xFFFF) - textlen;
 		case FLAT_M32R_16:
 			return htons(*(unsigned short *)rp) & 0xFFFF;
 		case FLAT_M32R_24:
-- 
1.9.1


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

only message in thread, other threads:[~2014-07-04 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-04 16:46 [PATCH] m32r: subtract textlen instead of adding in function m32r_flat_get_addr_from_rp Nicholas Krause

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

Powered by JetHome