From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com [35.83.148.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6F0632B99E; Thu, 25 Jun 2026 13:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.83.148.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782394380; cv=none; b=CCD+7ux6M/+daVBMw/B3fRUJYwsOeatCt3M/XsyqYXuj2UeVEb5dq3bhIdEQ/It86/fzPPPAfT4jC8YzFUqiHTkzLewP8V/KGD7wLzU7yZ4xctgOhtT+xgYxaXQn1z3BtU93JqcsMGt0zhM7/7GLUVJMlWG/KTfvyGrotMefshQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782394380; c=relaxed/simple; bh=uinX7VfrDcyCLlZv5BCWfLiMKRCkJYGjqcTraIDeyo0=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mruyY5Oqm2y7m3MTbfwPOD+zlaLOokhVZFQeDEXuYKCIUdR6TPoaTemq+aNizHCZWenfXkL4KszbqCpgr2ygg2kWQc3RpgPy7L4Hh9ByphLjq/pksrtDPMz+Cn0vcB/QiudVg4rsqddeILrhX6+zPss8CFTlRCvxq8DN2PcH0vA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.de; spf=pass smtp.mailfrom=amazon.de; dkim=pass (2048-bit key) header.d=amazon.de header.i=@amazon.de header.b=UQXe19AS; arc=none smtp.client-ip=35.83.148.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amazon.de header.i=@amazon.de header.b="UQXe19AS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazoncorp2; t=1782394379; x=1813930379; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=Jhzw3hDe1qETvRMOXpQ3ufg25Aa3Q0kmNblxIpF9o3Q=; b=UQXe19ASWa5y/BwYwpbWinyfCvHMrvn4jTCA/RZij96wKI6NCTgIlSVz NmHPHK3yR+fUeyrD7T0eCSd/J5ukhHn9EbJdg+3Qt8kpLcfTWT9RlYPdX fh4x5ksJn1GT0QO1d44LSHRBQv8OTcvc89Tly1fY7qPV1kcLpZqncenU/ 0i+kPqAPha2HC8+klz/b8AeUGmaUlxFrNPtKbWIAvzkNqtTSZGcxxn6bT cQJ5IN3LZ7WySB1qUka45H4zQCJ27C7SeeHGV91qsf8994aHJKio92iA1 NFR8gXPoHWXL4SdcBVYlzEt/7JTT03G+yCgp0nsFU3XMOtnaQ0UsJBWjl w==; X-CSE-ConnectionGUID: 3i4i2+ppRnS1kTJFipTfdg== X-CSE-MsgGUID: qLUHoCpdRjCzC4F5/UTbCQ== X-IronPort-AV: E=Sophos;i="6.24,224,1774310400"; d="scan'208";a="22277557" Received: from ip-10-5-12-219.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.12.219]) by internal-pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2026 13:32:56 +0000 Received: from EX19MTAUWC001.ant.amazon.com [205.251.233.53:20069] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.52.142:2525] with esmtp (Farcaster) id 4af665ad-abdf-4f6c-942e-bae9622621b0; Thu, 25 Jun 2026 13:32:55 +0000 (UTC) X-Farcaster-Flow-ID: 4af665ad-abdf-4f6c-942e-bae9622621b0 Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWC001.ant.amazon.com (10.250.64.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.43; Thu, 25 Jun 2026 13:32:55 +0000 Received: from dev-dsk-simonlie-1b-ad174abf.eu-west-1.amazon.com (172.19.78.185) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.43; Thu, 25 Jun 2026 13:32:53 +0000 From: Simon Liebold To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Namhyung Kim" , Simon Liebold , Ian Rogers , , , Subject: [PATCH 6.1.y 0/2] Backport dependency commits for 616b14b47a86 ("perf build: Conditionally define NDEBUG") Date: Thu, 25 Jun 2026 13:32:20 +0000 Message-ID: <20260625133222.3412820-1-simonlie@amazon.de> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: EX19D037UWB002.ant.amazon.com (10.13.138.121) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, please backport the following two patches to 6.1.y: - d1babea9c382 ("perf bench: Avoid NDEBUG warning") - 984a785f25e5 ("perf block-range: Move debug code behind ifndef NDEBUG") They are stable dependencies for commit 616b14b47a86 ("perf build: Conditionally define NDEBUG") which was backported to v6.1.176 as 7bf35a0237d04. That commit adds -DNDEBUG=1 to perf CFLAGS, which compiles out assert() calls, leaving variables consumed only by asserts as unused-but-set. Combined with -Werror this breaks the build: bench/find-bit-bench.c:64:22: error: variable 'old' set but not used util/block-range.c:20:13: error: variable 'old' set but not used We need these two dependency patches, because both guard assert-only variables with #ifndef NDEBUG so they are compiled out alongside the asserts they validate. Tested using our regression test suite including kselftest and LTP on various EC2 instances. Thanks. - Simon Ian Rogers (2): perf bench: Avoid NDEBUG warning perf block-range: Move debug code behind ifndef NDEBUG tools/perf/bench/find-bit-bench.c | 8 ++++++-- tools/perf/util/block-range.c | 6 +----- 2 files changed, 7 insertions(+), 7 deletions(-) base-commit: fdb6fcb41cc741ad5eaa7995f278dfcb94fdf795 -- 2.50.1 Amazon Web Services Development Center Germany GmbH Tamara-Danz-Str. 13 10243 Berlin Geschaeftsfuehrung: Christof Hellmis, Andreas Stieger Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B Sitz: Berlin Ust-ID: DE 365 538 597