]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf build: Add -funsigned-char to default CFLAGS
authorIan Rogers <irogers@google.com>
Fri, 6 Mar 2026 19:19:08 +0000 (11:19 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 1 Apr 2026 03:22:02 +0000 (20:22 -0700)
Commit 3bc753c06dd0 ("kbuild: treat char as always unsigned") made
chars unsigned by default in the Linux kernel. To avoid similar kinds
of bugs and warnings, make unsigned chars the default for the perf tool.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/Makefile.config

index 15fbba9f4ca8926e4512f0b021d9c9b2ec83847e..333ddd0e4bd814e9b935e9f706e640baccf49b7e 100644 (file)
@@ -349,6 +349,7 @@ CORE_CFLAGS += -fno-omit-frame-pointer
 CORE_CFLAGS += -Wall
 CORE_CFLAGS += -Wextra
 CORE_CFLAGS += -std=gnu11
+CORE_CFLAGS += -funsigned-char
 
 CXXFLAGS += -std=gnu++17 -fno-exceptions -fno-rtti
 CXXFLAGS += -Wall