From nobody Mon Dec 8 10:52:24 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECC712D9ECF; Mon, 6 Oct 2025 16:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759767704; cv=none; b=TYWS58RIrEp5OTuORy0LEbhUpX3O/C2hVgyHGTraTzFwsh8umSmC7QjiYOuGFfYJr45vq/Md9H3xd+QGZJV775X8BkP2mlMeVd/P5eJEBoq1n2lUSQB/2UYhJ+EmXWBqZ2rXNKHGL6nXQACN01QIVC3AK6PDtEWHhn127DhOePE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759767704; c=relaxed/simple; bh=vNDVZkxHA2mAyiZ+UlvQxAZSagxQ4O7RbrAShEgaA5E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VinQTmiWPLbLJCBCAo6e3v6Z5iNwf1KjDleQR8+PeztNaZrfHj/QeLEIokeRgm/8AhciyffBYNipskrNwSRO/L1C6h3wSwIgyL78VTB7ejPLykZNzulAilN785TgPaIoWQ74rUiPumj7Oj4t5g9QeGsQfw4B8n2mGTaxsuTvjfk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 62E991515; Mon, 6 Oct 2025 09:21:34 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CD8FE3F738; Mon, 6 Oct 2025 09:21:39 -0700 (PDT) From: Leo Yan Date: Mon, 06 Oct 2025 17:21:23 +0100 Subject: [PATCH v3 1/9] tools build: Align warning options with perf Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251006-perf_build_android_ndk-v3-1-4305590795b2@arm.com> References: <20251006-perf_build_android_ndk-v3-0-4305590795b2@arm.com> In-Reply-To: <20251006-perf_build_android_ndk-v3-0-4305590795b2@arm.com> To: Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , James Clark Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, llvm@lists.linux.dev, linux-riscv@lists.infradead.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1759767696; l=1150; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=vNDVZkxHA2mAyiZ+UlvQxAZSagxQ4O7RbrAShEgaA5E=; b=EG0tsFK21ZjPlI5l1dxxftTrHfPI06IJhl8UTXHnJqcTv7uneZdXX8HuPmYoCFAuTgNQH/Jbd ldN3DDWgKNQDW0iT+I7sD7I9OkqAaQ4YKTIPQ9jmjywC8hwpFzZ8ALt X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= The feature test programs are built without enabling '-Wall -Werror' options. As a result, a feature may appear to be available, but later building in perf can fail with stricter checks. Make the feature test program use the same warning options as perf. Fixes: 1925459b4d92 ("tools build: Fix feature Makefile issues with 'O=3D'") Signed-off-by: Leo Yan --- tools/build/feature/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index b41a42818d8ac232ade78ecb41363d26ce2a9471..bd615a708a0aa89ddbe87401f04= bd736e384a9c4 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -316,10 +316,10 @@ $(OUTPUT)test-libcapstone.bin: $(BUILD) # -lcapstone provided by $(FEATURE_CHECK_LDFLAGS-libcapstone) =20 $(OUTPUT)test-compile-32.bin: - $(CC) -m32 -o $@ test-compile.c + $(CC) -m32 -Wall -Werror -o $@ test-compile.c =20 $(OUTPUT)test-compile-x32.bin: - $(CC) -mx32 -o $@ test-compile.c + $(CC) -mx32 -Wall -Werror -o $@ test-compile.c =20 $(OUTPUT)test-zlib.bin: $(BUILD) -lz --=20 2.34.1