From 57bce46c65a010c362e44cea7837f18cc8e26218 Mon Sep 17 00:00:00 2001 From: Serg Podtynnyi Date: Fri, 8 May 2026 14:34:08 +0700 Subject: [PATCH] tools:mksyscall fix compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mksyscall.c:145:19: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 145 | char *pactual = strchr(arg, '|'); | ^~~~~~ Change to use const char* on pointers Signed-off-by: Serg Podtynnyi --- tools/mksyscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mksyscall.c b/tools/mksyscall.c index 953c132f2e114..91feb4a389441 100644 --- a/tools/mksyscall.c +++ b/tools/mksyscall.c @@ -142,8 +142,8 @@ static void get_actualparmtype(const char *arg, char *actual) static void get_fieldname(const char *arg, char *fieldname) { - char *pactual = strchr(arg, '|'); - char *pstart; + const char *pactual = strchr(arg, '|'); + const char *pstart; if (pactual) {