* [PATCH] module/kallsyms: Add missing const
@ 2026-11-25 17:55 Alejandro Colomar
2026-11-26 10:54 ` Petr Pavlu
0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Colomar @ 2026-11-25 17:55 UTC (permalink / raw)
To: Luis Chamberlain, Petr Pavlu, Daniel Gomez, Sami Tolvanen
Cc: Alejandro Colomar, Aaron Tomlin, linux-modules
[-- Attachment #1: Type: text/plain, Size: 838 bytes --]
This pointer is derived from other const pointers.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
Hi,
This was found when changing some <linux/string.h> APIs to preserve the
const qualifier in the return type.
Have a lovely night!
Alex
kernel/module/kallsyms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/module/kallsyms.c b/kernel/module/kallsyms.c
index 1ff8ce857d92..65537faeb2df 100644
--- a/kernel/module/kallsyms.c
+++ b/kernel/module/kallsyms.c
@@ -425,7 +425,7 @@ static unsigned long __find_kallsyms_symbol_value(struct module *mod, const char
static unsigned long __module_kallsyms_lookup_name(const char *name)
{
struct module *mod;
- char *colon;
+ const char *colon;
colon = strnchr(name, MODULE_NAME_LEN, ':');
if (colon) {
--
2.55.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] module/kallsyms: Add missing const
2026-11-25 17:55 [PATCH] module/kallsyms: Add missing const Alejandro Colomar
@ 2026-11-26 10:54 ` Petr Pavlu
0 siblings, 0 replies; 2+ messages in thread
From: Petr Pavlu @ 2026-11-26 10:54 UTC (permalink / raw)
To: Alejandro Colomar
Cc: Luis Chamberlain, Daniel Gomez, Sami Tolvanen, Aaron Tomlin,
linux-modules
On 11/25/26 6:55 PM, Alejandro Colomar wrote:
> This pointer is derived from other const pointers.
>
> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Looks ok. I've queued the patch on modules-next.
--
Thanks,
Petr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-26 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 17:55 [PATCH] module/kallsyms: Add missing const Alejandro Colomar
2026-11-26 10:54 ` Petr Pavlu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox