From: Sean Christopherson Date: Wed, 12 Nov 2025 17:39:42 +0000 (-0800) Subject: x86/mtrr: Drop unnecessary export of "mtrr_state" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c26c91e103b58ba4f75f77d3d7338620b132ac4;p=thirdparty%2Flinux.git x86/mtrr: Drop unnecessary export of "mtrr_state" Don't export "mtrr_state" as usage is limited to arch/x86/kernel/cpu/mtrr (and nothing outside of that directory even includes the local mtrr.h). No functional change intended. Signed-off-by: Sean Christopherson Signed-off-by: Dave Hansen Link: https://patch.msgid.link/20251112173944.1380633-3-seanjc%40google.com --- diff --git a/arch/x86/kernel/cpu/mtrr/generic.c b/arch/x86/kernel/cpu/mtrr/generic.c index 8c18327eb10bb..0863733858dc6 100644 --- a/arch/x86/kernel/cpu/mtrr/generic.c +++ b/arch/x86/kernel/cpu/mtrr/generic.c @@ -89,7 +89,6 @@ static int mtrr_state_set; u64 mtrr_tom2; struct mtrr_state_type mtrr_state; -EXPORT_SYMBOL_GPL(mtrr_state); /* Reserved bits in the high portion of the MTRRphysBaseN MSR. */ u32 phys_hi_rsvd;