From nobody Thu Apr 9 16:32:36 2026 Received: from mail-dy1-f202.google.com (mail-dy1-f202.google.com [74.125.82.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EB21226CFE for ; Fri, 6 Mar 2026 19:19:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772824753; cv=none; b=t9TNzJs4xdqnmEaAMMqciJMtqyXVOdSWLB/k9dykHJxm3AyyYTNdk0hSSJfG0NpPZunALKe/NNo5+2zZASAUQSD+iRs1S1o1c/Pl51wHvzgl27pXFXbkZ6JPRdBf/qPpXkBGHN4Amq9S52nUZY/fpXDUix4nbHGEM5+YSMJeLck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772824753; c=relaxed/simple; bh=xAFg8zgkKdwLH4pyr1GKk3ex/m6Sg1pSmTB5DU4tkvk=; h=Date:Mime-Version:Message-ID:Subject:From:To:Content-Type; b=H81rU2jhBFUvOtGnd08NFvrHhGRdEdP9U0w80AGzlXu3jdRuJQvWluAdnVIHDfVgcBegd9xKYEsYIgkaJDr1fG+I2gof/o2QXILEghNaEALIS7ejGyZE92KZc9wjzyIwuwrcmaEgYNUNxZRL0H7U4kVUKExEAUGH5ou7ylATjHw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=yMVvU7bG; arc=none smtp.client-ip=74.125.82.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="yMVvU7bG" Received: by mail-dy1-f202.google.com with SMTP id 5a478bee46e88-2be27d4e3e5so24534819eec.1 for ; Fri, 06 Mar 2026 11:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1772824752; x=1773429552; darn=vger.kernel.org; h=to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=28NLJG5tyekf2B3gw/YpvMmeB6EaLfZh/gYVw4RvfY0=; b=yMVvU7bGdsgcjsV8KR9Y74fVihi7V5pqNudcErLoTszDbzEaanpsWqhdGoJFKCOD9O edOPuyAZQCR1L9Rs6aUVaXdiotkA5jehFIQDY6MqEPkRYJR/MzR1yrHuA7R87D/+FzNu pfmR/OCe7wTx5fMRlLh9lvw/6Yqg4b7DAyAHy5DE32MprJS8soexwz/Z+0PaMXkz+HEQ 60hUi7wZzLB3F70TMqxw0RULHSphI4DYMhMR1MqpCX+FBHxUm1CsE/yeFl5IgMC9yyYy byRzBzQIM9vEaAtluT1weCCQSzwqAxQ8DYCn+h1JgJE6OpHNzG714gBIA/eLcL4a8QmX egHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772824752; x=1773429552; h=to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=28NLJG5tyekf2B3gw/YpvMmeB6EaLfZh/gYVw4RvfY0=; b=ozoATpk/Ms6GbTboNvz3Nf5K/xa4K3XlFHlNa0yXPTkpVt373Z2fiK51lVfymyZASy agp7cUgaQ0uewGNXjPlomFWgYgkwV1+eEW0NJFBccczfCqWOS4VgQhqH4wtOWB64YQ9L ZxI1lGzSoLs46S5Zrj3gqggIbEFLOQtHw6t8ceW46+6x9zcpnKg+j0FRfsem1klMLT7W Ohsv7hIxzSkfJjZ372pRHMqDvmdpGJJgfTXVeUREvRKHcEmA3rvDcaOexIkH0r8OlLKS RQVP+hoFpKaQI2FJ16Syxt3zIf80GPpjq57Dx0+F1NCjH3RmhQN7CKJhSXCTc0sOM5DS 4JRw== X-Forwarded-Encrypted: i=1; AJvYcCUuTolv+G9k1GnsvuDNeZJNclGqp5T0EqF1wGEt/U9Jg29pip5dNxiI36QfxUyb28hET7w2rIiVq5z8ynM=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5mOSQ3HoOz3tyT2JHCye9Z2ypk2H53E12MUwf17ujRrUqVXau 9l+rXcujkQK1WBrgE8C4klWDiP7+g58f+Gf55AUfCXqJOvpGJbg8aHRe7Kvqvxy8jCmZQZfCQbS HUkBr2FQYcg== X-Received: from dyax21-n1.prod.google.com ([2002:a05:693c:4195:10b0:2be:3b4b:b1e2]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:d17:b0:2b8:c1b4:9cb7 with SMTP id 5a478bee46e88-2be4e02b8a6mr1339040eec.22.1772824751332; Fri, 06 Mar 2026 11:19:11 -0800 (PST) Date: Fri, 6 Mar 2026 11:19:08 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.473.g4a7958ca14-goog Message-ID: <20260306191908.2065682-1-irogers@google.com> Subject: [PATCH v1] perf build: Add -funsigned-char to default CFLAGS From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- tools/perf/Makefile.config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index a8dc72cfe48e..3820bdf73f43 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -349,6 +349,7 @@ CORE_CFLAGS +=3D -fno-omit-frame-pointer CORE_CFLAGS +=3D -Wall CORE_CFLAGS +=3D -Wextra CORE_CFLAGS +=3D -std=3Dgnu11 +CORE_CFLAGS +=3D -funsigned-char =20 CXXFLAGS +=3D -std=3Dgnu++17 -fno-exceptions -fno-rtti CXXFLAGS +=3D -Wall --=20 2.53.0.473.g4a7958ca14-goog