Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1699501 > unrolled thread

[PATCH -tip v8 1/4] h8300: mark _stext and _etext as char-arrays, not single char

Started byMasami Hiramatsu <mhiramat@kernel.org>
First post2017-07-30 12:20 +0200
Last post2017-07-30 12:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH -tip v8 1/4] h8300: mark _stext and _etext as char-arrays, not single char Masami Hiramatsu <mhiramat@kernel.org> - 2017-07-30 12:20 +0200

#1699501 — [PATCH -tip v8 1/4] h8300: mark _stext and _etext as char-arrays, not single char

FromMasami Hiramatsu <mhiramat@kernel.org>
Date2017-07-30 12:20 +0200
Subject[PATCH -tip v8 1/4] h8300: mark _stext and _etext as char-arrays, not single char
Message-ID<u8Tuh-7rh-15@gated-at.bofh.it>
Mark _stext and _etext as character arrays instead of
single character, as same as include/asm-generic/sections.h
does.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
---
 arch/h8300/include/asm/traps.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/h8300/include/asm/traps.h b/arch/h8300/include/asm/traps.h
index 15e701130b27..1c5a30ec2df8 100644
--- a/arch/h8300/include/asm/traps.h
+++ b/arch/h8300/include/asm/traps.h
@@ -33,9 +33,9 @@ extern unsigned long *_interrupt_redirect_table;
 #define TRAP2_VEC 10
 #define TRAP3_VEC 11
 
-extern char _start, _etext;
+extern char _start[], _etext[];
 #define check_kernel_text(addr) \
-	((addr >= (unsigned long)(&_start)) && \
-	 (addr <  (unsigned long)(&_etext)) && !(addr & 1))
+	((addr >= (unsigned long)(_start)) && \
+	 (addr <  (unsigned long)(_etext)) && !(addr & 1))
 
 #endif /* _H8300_TRAPS_H */

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web