From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f201.google.com (mail-dy1-f201.google.com [74.125.82.201]) (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 86D5E3B5F50 for ; Wed, 27 May 2026 21:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779918316; cv=none; b=F+d3DpdZ22nR5/PgqDNumHE1UJE1E+dTnlVdzsqd3oIMjfozosfjXqgCms2svuUHJm8zQ4YSUthg9DDT5Uno2tUhdCz4mQLdpdLcpXTXuVycGCkq3kVAQQBaCZbUb4c2UJlbOAtYGCwFkmPyIa9k+daDoV7J5L67vtvRuQyEgP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779918316; c=relaxed/simple; bh=CJqS0grVLWr/o1ZgwnE0tWz1Nx5GQ1vTF6tC/SXcK1s=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=KpDD8Mm4Efo0LD8zZz1JNcwiQ5+oa81HzHDieEDI/uzf3Eg9wYWyGLdzC4ChcHhNQwGa4UuHzl3/wpPF7K0wpbCC8IhtYT+ly3NAD+ZyuiLb0e0q0Z2bgkbbJozrWl49paIcWzqlX8LpIgGv0I9fgwvu1i71Dp43gGdDAb3M0eE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--xur.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=f4d/2y43; arc=none smtp.client-ip=74.125.82.201 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--xur.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="f4d/2y43" Received: by mail-dy1-f201.google.com with SMTP id 5a478bee46e88-2f5943ca81aso4285117eec.0 for ; Wed, 27 May 2026 14:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779918314; x=1780523114; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=6mrvQD6GgPgoo9WdJOzGFB8vI+DJYjKJmIgf8+ynX7Y=; b=f4d/2y43nYdxRdoQhzV1RcCokuDnG0VaWQuEFuF6ZSUrAgZULacnS6hVygpqglJmLs rASIXEBOMOCOwo8QEzvupsR3/JoJjkV9Wv63ySpff/QTRNnSpD65t8Fxd5hTkrN7xFoQ XlD9p+Fb5Ezu0qvHO1SoUi65onkLJ2IldEXzrBn+SG7MkNOtCicNLRNjV+m8B8eDcDsD nZp4ZiNLNqInDtOiQSjPp5U+5mi/vkYc7SvVWaef4Lurm6NHi8BFwgcvL9qC1DdXltkD 9azKsKuCN1Vyefx18ZqGnC58zK7EbRkGfLwKcb67ywOqI/v54/DmoakwhpH6A1nBw/oj hI4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779918314; x=1780523114; h=content-transfer-encoding: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=6mrvQD6GgPgoo9WdJOzGFB8vI+DJYjKJmIgf8+ynX7Y=; b=TwOIhPVN8ykCGYGGNoLYmajmPMNQ7xzldp/QG8gY6vE3BjmABxEoz92UdgKS+vQ8hP yZZ+eS5UcvdBjTgeSERncc1+JpdhEs1tpMMeXRXENKxgMfWajj+C6KoWeFSVzcbVCJ9t axEJ4G2h/iASxi6AbMUi/gZCYl8l728WlgOPHnTDo1e4XbtA5DvJFCWFh8FO6H+swDtv 1J+1ShIa3bZbBpbCFC/cC8Six/zv+eyf9Y8jKBcorG9038mLE0d1PjM7FX2/3kQC8O7/ Gzkp/306zHDrjZnB6ntGJDFXrsldlg1OSe88mn9C04jjeQeZJP9TxsUgI18HEHQ7HGPh 5MfA== X-Forwarded-Encrypted: i=1; AFNElJ/85ieV5DxzwjD5OgDFXDfXReT+JnKrgCGIVe3yP/+MZKm2PQgGwDO/Jm3UIP4TFulnC3a+dnOpqUKRH/M=@vger.kernel.org X-Gm-Message-State: AOJu0Yya9lNv9aw9+VaydWjMZ4fLeWbhE5X3vA7zZRY29TPbfXVYsCg3 +MpS49HsngYQcZAnFgvxHtIZZWrhvHC/XJu/HMTAU5YRMf3e5PtUNnug2inqlMsBqFMXqw== X-Received: from dyvs21.prod.google.com ([2002:a05:693c:42d5:b0:2f7:767f:edc0]) (user=xur job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:6417:b0:2ed:7e1:975 with SMTP id 5a478bee46e88-3044903799bmr12307194eec.1.1779918313261; Wed, 27 May 2026 14:45:13 -0700 (PDT) Date: Wed, 27 May 2026 14:45:07 -0700 In-Reply-To: <20260527214510.3907973-1-xur@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260527214510.3907973-1-xur@google.com> X-Mailer: git-send-email 2.54.0.794.g4f17f83d09-goog Message-ID: <20260527214510.3907973-2-xur@google.com> Subject: [PATCH v3 1/2] kconfig: Remove the architecture specific config for AutoFDO From: xur@google.com To: Yabin Cui , Will Deacon , Han Shen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Kees Cook , Nathan Chancellor , Nicolas Schier , Linus Walleij , Arnd Bergmann , Mathieu Desnoyers , Rong Xu , Miguel Ojeda , Peter Zijlstra , Jinjie Ruan , Lukas Bulwahn , linux-kernel@vger.kernel.org, Juergen Gross , Helge Deller , Ryan Roberts , Marc Zyngier , Ard Biesheuvel , Vincent Donnefort , Alice Ryhl Cc: x86@kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: Rong Xu The CONFIG_AUTOFDO_CLANG option currently depends on ARCH_SUPPORTS_AUTOFDO_CLANG, but this dependency seems unnecessary. Remove ARCH_SUPPORTS_AUTOFDO_CLANG and allow users to control AutoFDO builds solely through CONFIG_AUTOFDO_CLANG. This simplifies the kconfig and avoids potential confusion. Signed-off-by: Rong Xu Suggested-by: Will Deacon Tested-by: Yabin Cui Reviewed-by: Kees Cook --- arch/Kconfig | 4 ---- arch/x86/Kconfig | 1 - 2 files changed, 5 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index e86880045158..e510c585ea84 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -863,12 +863,8 @@ config LTO_CLANG_THIN If unsure, say Y. endchoice =20 -config ARCH_SUPPORTS_AUTOFDO_CLANG - bool - config AUTOFDO_CLANG bool "Enable Clang's AutoFDO build (EXPERIMENTAL)" - depends on ARCH_SUPPORTS_AUTOFDO_CLANG depends on CC_IS_CLANG && CLANG_VERSION >=3D 170000 help This option enables Clang=E2=80=99s AutoFDO build. When diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index f3f7cb01d69d..10bf3984102e 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -130,7 +130,6 @@ config X86 select ARCH_SUPPORTS_LTO_CLANG select ARCH_SUPPORTS_LTO_CLANG_THIN select ARCH_SUPPORTS_RT - select ARCH_SUPPORTS_AUTOFDO_CLANG select ARCH_SUPPORTS_PROPELLER_CLANG if X86_64 select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_CMPXCHG_LOCKREF if X86_CX8 --=20 2.54.0.794.g4f17f83d09-goog