linux-kernel-test/arch/cris
Chen Gang c33fe44443 cris: arch-v10: kgdb: Add '__used' for static variable is_dyn_brkp
Within one C file, current gcc can optimize the global static variables
according to the C code, but it will skip assembly code -- it will pass
them to gas directly.

if the static variable is used between C code and assembly code in one C
file (e.g. is_dyn_brkp in kgdb.c), it needs '__used' to let gcc know it
should be still used, or gcc may remove it for optimization.

The related error in this case:

    LD      init/built-in.o
  arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint':
  (.text+0x2aca): undefined reference to `is_dyn_brkp'
  arch/cris/arch-v10/kernel/built-in.o: In function `is_static':
  kgdb.c:(.text+0x2ada): undefined reference to `is_dyn_brkp'

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
2015-11-02 20:03:04 +01:00
..
arch-v10 cris: arch-v10: kgdb: Add '__used' for static variable is_dyn_brkp 2015-11-02 20:03:04 +01:00
arch-v32 cris: kgdb: use native hex2bin 2015-11-02 20:03:04 +01:00
boot CRIS: add Axis 88 board device tree 2015-03-25 09:50:46 +01:00
configs CRISv32: Add GPIO driver to the default configs 2015-09-05 00:33:25 +02:00
include Merge branch 'strscpy' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2015-10-04 16:31:13 +01:00
kernel CRIS: add STACKTRACE_SUPPORT 2015-09-05 00:56:50 +02:00
mm mm/fault, arch: Use pagefault_disable() to check for disabled pagefaults in the handler 2015-05-19 08:39:15 +02:00
Kconfig CRISv32: enable LOCKDEP_SUPPORT 2015-09-05 00:56:50 +02:00
Kconfig.debug Kconfig: remove a few puzzling comments 2011-10-31 10:58:48 +01:00
Makefile CRISv32: add device tree support 2015-03-25 09:49:48 +01:00