From nobody Fri Apr 3 04:09:03 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 1C70E368972 for ; Fri, 20 Mar 2026 22:42:52 +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=1774046575; cv=none; b=FVoFkQwByo3UMFmmrg7slSeHL/hNZWQmcQv0nFp9++MClHgS1EChc4S3zlg4ufAxqFBTIx1Hu/uOVDqmjlujStNIcZvQeq4EmfPqrrw8psk2iWwR7kI4ZvhWoSwnvpFerFzSkfz3XyLtvWjonXa9VwJgXcN1rgwHVBkWvcwKCXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774046575; c=relaxed/simple; bh=caFaveRlFlQD4hAfeu+vlhnCBOLYaA5vwm7Q1PdcyUs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=mvqVBEwBdaia8tw63nN6yzP6Reu4V//s5YfukffgaHsRiTBmRPXoNTo22vP25jxhtIsrCPr8z2oA5Xj0o1TU5OdCiFmvDUf2vzDYUevnuqKC9J2/W+xx5Ob6iz3mV1LeYKaGi82FjaWyBz1SXslZ0pNruJK76YZZBXuX2Bx0PaA= 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=whixLs/Z; 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="whixLs/Z" Received: by mail-dy1-f202.google.com with SMTP id 5a478bee46e88-2c0ba59a830so1071017eec.0 for ; Fri, 20 Mar 2026 15:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1774046572; x=1774651372; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=OH6vUQoCEUyRPcoyCAN2rhCO7Ouo2QVMCa+fQ0uLeM8=; b=whixLs/ZfV+AaCMH+vn3XI5O8XMlwreR1+ip+q9CErcLvca552IniFn1ysgbkyUgIT a3n63/74WAHk/flvK3RBbiORFtAoFl2AuZDm8UBXNNjFJL3WZ06K11e+CGe9HJNDFHZy C4S5/Ce/HyPwfWusdNjr5AX7hlNWwJpayO4FqDWa4pyexegovfqxpGhe5CoA287hyfml NN2c8e19tDfuhcVibG4pLcvfNyDVWxmtk92vx18igJQ1xht+xjYgnpKTOPtzZOL2fp5A T2MQg1h8DgvGhUtDLjLRy7BM9SSwYcgx9wxaRLTRt5dk+7MitZGhzm/6wkKSUm+zEd4H fKaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774046572; x=1774651372; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OH6vUQoCEUyRPcoyCAN2rhCO7Ouo2QVMCa+fQ0uLeM8=; b=feHNH1WfpORkhRJXAZtCG4XVNwNO96NM4SZ5ttzwqFL3DfPuoxw6k+UfK9hMXvv/Vy SbJXDteGkqhg9/X7cURDocIaDB8/mQPM6I4QUfuhh5M7vZ95QaKz0njPtEec3GFOUZXC vEa+vZL2KV/S1kDfbJt7xpB6iYAbXxhdGL7Slfj3u3/B8WcbyfHQJyng4ozzbQbjc6kP nEFb6hOTVO/H08d4gCwzzjWxHiGDxMlgWUNd421yF034XjfSxprMPF2Z8SPIHYmKQ9sB Ur6N8b0aOdvGiHG0HIJxXO0W2S20Tdx9uGgMDM7gt3xiIYQ6Qsf7PIkPVsdOTF22vUJS FY9w== X-Forwarded-Encrypted: i=1; AJvYcCXl709hZSQ9rFkD7CKNNwj4goFzARmv4zwqXbLNnsg+hR1wUgF8pf46HvzhsK2hn+BEsHm0c/kWawk3DXA=@vger.kernel.org X-Gm-Message-State: AOJu0YykAaGdh9iJDaEtez80gpzgmrynbGIy86mR3eYoRZ+JhTFZEZWZ 9uG6ukeoqg+kNNZk5U6wIR1uuevoEexX44iqjKFQftYOQYlylNSLVQJkPYfVwiVTXVJvt1Oh2vQ Y770vemundw== X-Received: from dled19-n2.prod.google.com ([2002:a05:701b:42d3:20b0:128:deec:2d48]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:260b:b0:128:bae0:e044 with SMTP id a92af1059eb24-12a726f5b62mr2011729c88.30.1774046571978; Fri, 20 Mar 2026 15:42:51 -0700 (PDT) Date: Fri, 20 Mar 2026 15:42:48 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.53.0.959.g497ff81fa9-goog Message-ID: <20260320224248.536449-1-irogers@google.com> Subject: [PATCH v2] perf build: Revert "enable -fno-strict-aliasing" From: Ian Rogers To: namhyung@kernel.org Cc: acme@kernel.org, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, ebiggers@google.com, irogers@google.com, jolsa@kernel.org, kan.liang@linux.intel.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mark.rutland@arm.com, mingo@redhat.com, peterz@infradead.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This reverts commit 55a18d2f3ff7 ("perf build: enable -fno-strict-aliasing"). With (get|put)_unaligned_* using memcpy -fno-strict-aliasing is no longer necessary as memcpys are assumed to possibly alias. Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index a8dc72cfe48e..1d3dcefd8c95 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -19,10 +19,6 @@ detected_var =3D $(shell echo "$(1)=3D$($(1))" >> $(OUTP= UT).config-detected) CFLAGS :=3D $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS= )) HOSTCFLAGS :=3D $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) =20 -# This is required because the kernel is built with this and some of the c= ode -# borrowed from kernel headers depends on it, e.g. put_unaligned_*(). -CFLAGS +=3D -fno-strict-aliasing - # Set target flag and options when using clang as compiler. ifeq ($(CC_NO_CLANG), 0) CLANG_TARGET_FLAGS_arm :=3D arm-linux-gnueabi --=20 2.53.0.959.g497ff81fa9-goog