Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 6326/1: kgdb: fix GDB_MAX_REGS no longer used

According to commit 22eeef4bb2a7fd225089c0044060ed1fbf091958

kgdb,arm: Individual register get/set for arm

It's now replaced by DBG_MAX_REG_NUM.

Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

eric miao and committed by
Russell King
2f174847 92fa5bd9

+1 -1
+1 -1
arch/arm/kernel/kgdb.c
··· 79 79 return; 80 80 81 81 /* Initialize to zero */ 82 - for (regno = 0; regno < GDB_MAX_REGS; regno++) 82 + for (regno = 0; regno < DBG_MAX_REG_NUM; regno++) 83 83 gdb_regs[regno] = 0; 84 84 85 85 /* Otherwise, we have only some registers from switch_to() */