android_kernel_xiaomi_sm8450/kernel/debug/kdb
Douglas Anderson 1c089efe76 kdb: Use the passed prompt in kdb_position_cursor()
[ Upstream commit e2e821095949cde46256034975a90f88626a2a73 ]

The function kdb_position_cursor() takes in a "prompt" parameter but
never uses it. This doesn't _really_ matter since all current callers
of the function pass the same value and it's a global variable, but
it's a bit ugly. Let's clean it up.

Found by code inspection. This patch is expected to functionally be a
no-op.

Fixes: 09b35989421d ("kdb: Use format-strings rather than '\0' injection in kdb_read()")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240528071144.1.I0feb49839c6b6f4f2c4bf34764f5e95de3f55a66@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-19 05:41:03 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
kdb_bp.c kgdb: Honour the kprobe blocklist when setting breakpoints 2020-09-28 12:14:08 +01:00
kdb_bt.c kdb: Use newer api for tasklist scanning 2020-09-08 14:36:46 +01:00
kdb_cmds kdb: cleanup unused variables missed in the original kdb merge 2011-08-01 13:23:58 -05:00
kdb_debugger.c kernel: debug: Centralize dbg_[de]activate_sw_breakpoints 2020-10-01 14:23:45 +01:00
kdb_io.c kdb: Use the passed prompt in kdb_position_cursor() 2024-08-19 05:41:03 +02:00
kdb_keyboard.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
kdb_main.c kdb: Fix a potential buffer overflow in kdb_local() 2024-01-25 14:37:56 -08:00
kdb_private.h kdb: Make memory allocations more robust 2021-03-04 11:37:18 +01:00
kdb_support.c kdb: Fix the putarea helper function 2022-04-08 14:40:29 +02:00
Makefile kdb: Get rid of broken attempt to print CCVERSION in kdb summary 2019-05-12 09:50:43 +01:00