From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 6798E21CA03 for ; Fri, 15 May 2026 00:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778804834; cv=none; b=Y6vU1cTs9CDqlYA/BtaljsdZ8z5xTv+Bn/yX7KvNSw/cKqpIWRlUB3fUsN26+GHafsHFiOs5FaSdC4IZ9JRurKglO1dBplr45YTUdmwwi7MQxXssKEJNYjq4JdCYYzYgXtZYesGZFHY8IjubdMOGfqoaCrolRwoLinTW8e00ch8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778804834; c=relaxed/simple; bh=YozxeemWOv9D3BVE1MgfOU6LA4NMcI6BF8t2x1qU5gE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hP1UlMSj/bDVKM5SBEllV77oJmM4QZf9xZdLA1BHl648X6e6Qh8tnBVxlJSVECn3JidSOAgKTKCzOmif7H5EYU/e5/caUFn+IzG1zHtTOdHtugW7/r7uCJTJEIWYETfHW/yNMoZXuG1t73kntS0zeuoHEhCQWkuRbby7OIiXwgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=J5U7oji8; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="J5U7oji8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778804831; x=1810340831; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YozxeemWOv9D3BVE1MgfOU6LA4NMcI6BF8t2x1qU5gE=; b=J5U7oji8HmXpNYSstScVRP5unX2fTYqEzTRulnvuCb6wj8gGPM0OTatz uVWgKBKDYBnSf/H6hJfe/d/GJXp38g4dfmP+Q7l7I3gHX/Tdrl2eDIY7N iEQkl/OWxCXCB4h0WzFjxz+YqsaBMwdY/6LmOklSkXLlgpRQrUpky4NwB iiXLT5U/ItWR420+wPpirV0/tRF/deFBeSYx+bRML1n3N4VQFBGzOcJld gE4HsZm1eHSiL/WzpexY7a/XwX8e8xTlE2ewSw7HMLQt5ZijEF/xSfMyA aXwB1U3z2vtf0HfHrTymoCdFOGpEkeKeJ7eQBNlNhP1UZpzb/7vRXugvH w==; X-CSE-ConnectionGUID: JOEZKVqmTESoM+cCufgFMQ== X-CSE-MsgGUID: 2I9eXJbJRMq4rBvA0oI96A== X-IronPort-AV: E=McAfee;i="6800,10657,11786"; a="83613087" X-IronPort-AV: E=Sophos;i="6.23,235,1770624000"; d="scan'208";a="83613087" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2026 17:27:03 -0700 X-CSE-ConnectionGUID: AAHGdILjQyGoCcwNuUc3Gw== X-CSE-MsgGUID: N1WMuSHHTnil/E8Y1ZmlAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,235,1770624000"; d="scan'208";a="238418090" Received: from sohilmeh.sc.intel.com ([172.25.103.65]) by orviesa008.jf.intel.com with ESMTP; 14 May 2026 17:27:02 -0700 From: Sohil Mehta To: Dave Hansen , Borislav Petkov , x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Josh Poimboeuf , Richard Weinberger , Andrew Cooper , Tony Luck , Sohil Mehta , "Ahmed S . Darwish" , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] x86/cpufeature: Remove clear_cpu_bug() Date: Thu, 14 May 2026 17:25:00 -0700 Message-ID: <20260515002500.2463393-4-sohil.mehta@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260515002500.2463393-1-sohil.mehta@intel.com> References: <20260515002500.2463393-1-sohil.mehta@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Richard Weinberger X86_BUG_F00F was the last remaining user of clear_cpu_bug(). With no users left, remove this helper. Signed-off-by: Richard Weinberger Signed-off-by: Sohil Mehta --- v2: - Improve commit message --- arch/x86/include/asm/cpufeature.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h index 3ddc1d33399b..90680f978d43 100644 --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h @@ -125,7 +125,6 @@ static __always_inline bool _static_cpu_has(u16 bit) #define cpu_has_bug(c, bit) cpu_has(c, (bit)) #define set_cpu_bug(c, bit) set_cpu_cap(c, (bit)) -#define clear_cpu_bug(c, bit) clear_cpu_cap(c, (bit)) #define static_cpu_has_bug(bit) static_cpu_has((bit)) #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit)) -- 2.43.0