From nobody Tue Dec 2 02:06:37 2025 Received: from canpmsgout11.his.huawei.com (canpmsgout11.his.huawei.com [113.46.200.226]) (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 4BE202FF15E for ; Thu, 20 Nov 2025 11:49:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.226 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763639391; cv=none; b=YQzdVxB+6IovONL/aVCAGDTH5ba1T/2/Wod2S6zdiEkJxzcvfXg1TW3PHdc+RxhUVf1BRj/vcLYBr4g1KdSZ1gAmy17Cex+eBqNA8uYBQy122eyPb17DP+jGjGE4p4EEKd2xaoXiKgEQ9xpX9BPZ/rOlQ1fZecDiZpKpfayvEqc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763639391; c=relaxed/simple; bh=ukjt/auKxBnS/D0Mi2B/OoLWALf/EXXOTBg+heAnfs8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ZXtxns1321w9GUBTg11ov6h3Gg5E7MvCyoD2z9oXhixX++hYKIZzi67vToTMAWsGU4R7+iwGUOy/D++lgSVhRVs0VT0Wglx2K6RVLQHP/w5aONsSCyeYk2CYzJvj1wIMc+SyWf3HFXRNe8zaoJYCXI9+v44qMr1sJngysMvgKHw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=kT6cGyU/; arc=none smtp.client-ip=113.46.200.226 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="kT6cGyU/" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=ipt+oo+PsJFgf8JPr6FwoKx7IHtoVmyLSP7S4/gDS6U=; b=kT6cGyU/wr+tbp7ipoJ9A2W2HRX1YyR8XZfo5QKsT9AzL5rKU1lU5gsD2HhMespfCzQ4wgMNJ PA/3OtV5EXuGQMmQnkKxydTgG+4DtNJWuj7Qqe7rwttwpm+2+8Lb1XWQTlMx4lS59/OyZTaSaxZ kkkAglhrR+222saiM7HId3Q= Received: from mail.maildlp.com (unknown [172.19.88.234]) by canpmsgout11.his.huawei.com (SkyGuard) with ESMTPS id 4dBxS06YNyzKm5R; Thu, 20 Nov 2025 19:48:00 +0800 (CST) Received: from dggpemf500002.china.huawei.com (unknown [7.185.36.57]) by mail.maildlp.com (Postfix) with ESMTPS id EDAD61400D2; Thu, 20 Nov 2025 19:49:45 +0800 (CST) Received: from huawei.com (10.50.85.128) by dggpemf500002.china.huawei.com (7.185.36.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 20 Nov 2025 19:49:45 +0800 From: Yue Haibing To: , , , , , , CC: Subject: [PATCH -next] x86, mtrr: Remove unused mttr declarations Date: Thu, 20 Nov 2025 20:11:18 +0800 Message-ID: <20251120121118.1499274-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To dggpemf500002.china.huawei.com (7.185.36.57) Content-Type: text/plain; charset="utf-8" Commit 34d2819f2078 ("x86, mtrr: Remove unused mtrr/state.c") removed the functions but leave these declarations. Signed-off-by: Yue Haibing --- arch/x86/kernel/cpu/mtrr/mtrr.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/x86/kernel/cpu/mtrr/mtrr.h b/arch/x86/kernel/cpu/mtrr/mtr= r.h index 5655f253d929..2de3bd2f95d1 100644 --- a/arch/x86/kernel/cpu/mtrr/mtrr.h +++ b/arch/x86/kernel/cpu/mtrr/mtrr.h @@ -46,10 +46,6 @@ struct set_mtrr_context { u32 ccr3; }; =20 -void set_mtrr_done(struct set_mtrr_context *ctxt); -void set_mtrr_cache_disable(struct set_mtrr_context *ctxt); -void set_mtrr_prepare_save(struct set_mtrr_context *ctxt); - void fill_mtrr_var_range(unsigned int index, u32 base_lo, u32 base_hi, u32 mask_lo, u32 mask_hi); bool get_mtrr_state(void); --=20 2.34.1