diff options
| author | WangYuli <[email protected]> | 2025-04-11 07:32:21 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2025-04-16 14:29:33 +0000 |
| commit | 3af4bec9c1db3f003be4d5ae09b6a737e4be1612 (patch) | |
| tree | fe3bb318df4fd462fd90b3afab4ab326664d879d /net/core/dev_api.c | |
| parent | Linux 6.15-rc1 (diff) | |
| download | kernel-3af4bec9c1db3f003be4d5ae09b6a737e4be1612.tar.gz kernel-3af4bec9c1db3f003be4d5ae09b6a737e4be1612.zip | |
riscv: KGDB: Do not inline arch_kgdb_breakpoint()
The arch_kgdb_breakpoint() function defines the kgdb_compiled_break
symbol using inline assembly.
There's a potential issue where the compiler might inline
arch_kgdb_breakpoint(), which would then define the kgdb_compiled_break
symbol multiple times, leading to fail to link vmlinux.o.
This isn't merely a potential compilation problem. The intent here
is to determine the global symbol address of kgdb_compiled_break,
and if this function is inlined multiple times, it would logically
be a grave error.
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lore.kernel.org/all/[email protected]/
Fixes: fe89bd2be866 ("riscv: Add KGDB support")
Co-developed-by: Huacai Chen <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Signed-off-by: WangYuli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions
