From e6d4b06f70b8f8436b6df28c0fc7d9817b15aab1 Mon Sep 17 00:00:00 2001 From: Ryan McClelland Date: Fri, 1 Nov 2024 15:52:39 -0700 Subject: [PATCH] debug: symtab: fix ignored type qualifiers on func return type const is ignored on the function return type. A warning is reported with -Wignored-qualifers. Remove the ignored const. Signed-off-by: Ryan McClelland --- include/zephyr/debug/symtab.h | 4 ++-- subsys/debug/symtab/symtab.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/zephyr/debug/symtab.h b/include/zephyr/debug/symtab.h index ba4e8c572c8a0..19afb5947b892 100644 --- a/include/zephyr/debug/symtab.h +++ b/include/zephyr/debug/symtab.h @@ -46,7 +46,7 @@ struct symtab_info { * * @return Pointer to the symbol table. */ -const struct symtab_info *const symtab_get(void); +const struct symtab_info *symtab_get(void); /** * @brief Find the symbol name with a binary search @@ -57,7 +57,7 @@ const struct symtab_info *const symtab_get(void); * * @return Name of the nearest symbol if found, otherwise "?" is returned. */ -const char *const symtab_find_symbol_name(uintptr_t addr, uint32_t *offset); +const char *symtab_find_symbol_name(uintptr_t addr, uint32_t *offset); /** * @} diff --git a/subsys/debug/symtab/symtab.c b/subsys/debug/symtab/symtab.c index d82df0cd3c2b5..5cbe600532190 100644 --- a/subsys/debug/symtab/symtab.c +++ b/subsys/debug/symtab/symtab.c @@ -10,14 +10,14 @@ #include #include -const struct symtab_info *const symtab_get(void) +const struct symtab_info *symtab_get(void) { extern const struct symtab_info z_symtab; return &z_symtab; } -const char *const symtab_find_symbol_name(uintptr_t addr, uint32_t *offset) +const char *symtab_find_symbol_name(uintptr_t addr, uint32_t *offset) { const struct symtab_info *const symtab = symtab_get(); const uint32_t symbol_offset = addr - symtab->first_addr;