]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Avoid kgdb.h including gdb_xml.h to solve unused-const-variable warning
authorVincent Chen <vincent.chen@sifive.com>
Tue, 23 Jun 2020 05:37:35 +0000 (13:37 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 10 Jul 2020 03:12:28 +0000 (20:12 -0700)
commite5a932d5afa77caac370f929c186ff3d9a343904
tree459ae8550b02dbc4ec558ff479863ee5829fa5d1
parent2ddf0e526839b4f84c1c0902d00c1d03e57d55a7
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>
arch/riscv/include/asm/gdb_xml.h
arch/riscv/include/asm/kgdb.h