aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2018-07-19 22:36:06 -0400
committerYoshinori Sato <ysato@users.sourceforge.jp>2018-08-22 06:14:22 -0400
commitce156febeed1d2731fe6e325a842cb4640931d22 (patch)
tree8b6abffffa1d5231f2b34d6f6dca3f681e3d8ce7
parentcfa2d688e2cc286e97cf134e7f1c1ebb697c1c74 (diff)
arch/h8300: eliminate kgbd.c warning
Drop the "const" qualifier from arch_kgdb_ops to eliminate the gcc warning (gcc version is 8.1.0). arch/h8300/kernel/kgdb.c:132:24: error: conflicting type qualifiers for 'arch_kgdb_ops' const struct kgdb_arch arch_kgdb_ops = { In file included from ../arch/h8300/kernel/kgdb.c:12: ../include/linux/kgdb.h:284:26: note: previous declaration of 'arch_kgdb_ops' was here extern struct kgdb_arch arch_kgdb_ops; Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: uclinux-h8-devel@lists.sourceforge.jp Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
-rw-r--r--arch/h8300/kernel/kgdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/h8300/kernel/kgdb.c b/arch/h8300/kernel/kgdb.c
index 602e478afbd5..1a1d30cb0609 100644
--- a/arch/h8300/kernel/kgdb.c
+++ b/arch/h8300/kernel/kgdb.c
@@ -129,7 +129,7 @@ void kgdb_arch_exit(void)
129 /* Nothing to do */ 129 /* Nothing to do */
130} 130}
131 131
132const struct kgdb_arch arch_kgdb_ops = { 132struct kgdb_arch arch_kgdb_ops = {
133 /* Breakpoint instruction: trapa #2 */ 133 /* Breakpoint instruction: trapa #2 */
134 .gdb_bpt_instr = { 0x57, 0x20 }, 134 .gdb_bpt_instr = { 0x57, 0x20 },
135}; 135};