diff options
author | Vincent Chen <vincent.chen@sifive.com> | 2020-06-23 13:37:35 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2020-07-09 20:12:28 -0700 |
commit | 70ee5731a40b1f07f151e52c3c4ed27d70d4f9fe (patch) | |
tree | 459ae8550b02dbc4ec558ff479863ee5829fa5d1 /arch/riscv/include/asm/gdb_xml.h | |
parent | def0aa218e6d42231540329e6f5741fdec9e7da4 (diff) |
riscv: Avoid kgdb.h including gdb_xml.h to solve unused-const-variable warning
The constant arrays in gdb_xml.h are only used in arch/riscv/kernel/kgdb.c,
but other c files may include the gdb_xml.h indirectly via including the
kgdb.h. Hence, It will cause many unused-const-variable warnings. This
patch makes the kgdb.h not to include the gdb_xml.h to solve this problem.
Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include/asm/gdb_xml.h')
-rw-r--r-- | arch/riscv/include/asm/gdb_xml.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/riscv/include/asm/gdb_xml.h b/arch/riscv/include/asm/gdb_xml.h index 041b45f5b997..09342111f227 100644 --- a/arch/riscv/include/asm/gdb_xml.h +++ b/arch/riscv/include/asm/gdb_xml.h @@ -3,8 +3,7 @@ #ifndef __ASM_GDB_XML_H_ #define __ASM_GDB_XML_H_ -#define kgdb_arch_gdb_stub_feature riscv_gdb_stub_feature -static const char riscv_gdb_stub_feature[64] = +const char riscv_gdb_stub_feature[64] = "PacketSize=800;qXfer:features:read+;"; static const char gdb_xfer_read_target[31] = "qXfer:features:read:target.xml:"; |