diff options
| author | Jim Cromie <[email protected]> | 2020-08-31 18:22:09 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-04 15:21:56 +0000 |
| commit | a2d375eda771a6a4866f3717a8ed81b63acb1dbd (patch) | |
| tree | 6d582aa584c9e8f474fda0a9ef6664a2e39ba4c9 /fs/proc/array.c | |
| parent | dyndbg: give %3u width in pr-format, cosmetic only (diff) | |
| download | kernel-a2d375eda771a6a4866f3717a8ed81b63acb1dbd.tar.gz kernel-a2d375eda771a6a4866f3717a8ed81b63acb1dbd.zip | |
dyndbg: refine export, rename to dynamic_debug_exec_queries()
commit 4c0d77828d4f ("dyndbg: export ddebug_exec_queries") had a few
problems:
- broken non DYNAMIC_DEBUG_CORE configs, sparse warning
- the exported function modifies query string, breaks on RO strings.
- func name follows internal convention, shouldn't be exposed as is.
1st is fixed in header with ifdefd function prototype or stub defn.
Also remove an obsolete HAVE-symbol ifdef-comment, and add others.
Fix others by wrapping existing internal function with a new one,
named in accordance with module-prefix naming convention, before
export hits v5.9.0. In new function, copy query string to a local
buffer, so users can pass hard-coded/RO queries, and internal function
can be used unchanged.
Fixes: 4c0d77828d4f ("dyndbg: export ddebug_exec_queries")
Signed-off-by: Jim Cromie <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
