diff options
| author | Josh Poimboeuf <jpoimboe@kernel.org> | 2025-09-17 19:03:32 +0300 |
|---|---|---|
| committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2025-10-15 00:45:24 +0300 |
| commit | 34244f784c6d062af184944a25f40ab50dfdb67a (patch) | |
| tree | 6f0cc0929b06140376832b563bf91ab0c8e0e224 /tools/objtool/arch | |
| parent | 3e4b5f66cf1a7879a081f5044ff1796aa33cb999 (diff) | |
| download | linux-34244f784c6d062af184944a25f40ab50dfdb67a.tar.xz | |
objtool: Const string cleanup
Use 'const char *' where applicable.
Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/arch')
| -rw-r--r-- | tools/objtool/arch/loongarch/decode.c | 2 | ||||
| -rw-r--r-- | tools/objtool/arch/powerpc/decode.c | 2 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/decode.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/objtool/arch/loongarch/decode.c b/tools/objtool/arch/loongarch/decode.c index 77942b927a7a..0115b97c526b 100644 --- a/tools/objtool/arch/loongarch/decode.c +++ b/tools/objtool/arch/loongarch/decode.c @@ -7,7 +7,7 @@ #include <linux/objtool_types.h> #include <arch/elf.h> -int arch_ftrace_match(char *name) +int arch_ftrace_match(const char *name) { return !strcmp(name, "_mcount"); } diff --git a/tools/objtool/arch/powerpc/decode.c b/tools/objtool/arch/powerpc/decode.c index 9b17885e6cba..d4cb02120a6b 100644 --- a/tools/objtool/arch/powerpc/decode.c +++ b/tools/objtool/arch/powerpc/decode.c @@ -9,7 +9,7 @@ #include <objtool/builtin.h> #include <objtool/endianness.h> -int arch_ftrace_match(char *name) +int arch_ftrace_match(const char *name) { return !strcmp(name, "_mcount"); } diff --git a/tools/objtool/arch/x86/decode.c b/tools/objtool/arch/x86/decode.c index b10200cc50c9..6bb46d998153 100644 --- a/tools/objtool/arch/x86/decode.c +++ b/tools/objtool/arch/x86/decode.c @@ -23,7 +23,7 @@ #include <objtool/builtin.h> #include <arch/elf.h> -int arch_ftrace_match(char *name) +int arch_ftrace_match(const char *name) { return !strcmp(name, "__fentry__"); } |
