Skip to contentSkip to conversation

x86/microcode: Remove unused symbol exports

PATCH New Borislav Petkov 2 participants 2 messages Jul 4, 2016 – Jul 8, 2016

Subsystems (2)
lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86/microcode: Remove unused symbol exports

From: Borislav Petkov <[email protected]>

It is not a module anymore and those can be retracted.

No functionality change.

---

Here's one more for tip/x86:microcode.

 arch/x86/kernel/cpu/microcode/core.c      | 1 -
 arch/x86/kernel/cpu/microcode/intel_lib.c | 2 --
 2 files changed, 3 deletions(-)
arch/x86/kernel/cpu/microcode/core.c +0 -1
index 9ae7fcac70ab..df04b2d033f6 100644
@@ -60,7 +60,6 @@ static bool dis_ucode_ldr;
 static DEFINE_MUTEX(microcode_mutex);
 
 struct ucode_cpu_info		ucode_cpu_info[NR_CPUS];
-EXPORT_SYMBOL_GPL(ucode_cpu_info);
 
 /*
  * Operations that are run on a target cpu:
arch/x86/kernel/cpu/microcode/intel_lib.c +0 -2
index 2ce1a7dc45b7..406cb6c0d9dd 100644
@@ -141,7 +141,6 @@ int microcode_sanity_check(void *mc, int print_err)
 	}
 	return 0;
 }
-EXPORT_SYMBOL_GPL(microcode_sanity_check);
 
 /*
  * Returns 1 if update has been found, 0 otherwise.
@@ -183,4 +182,3 @@ int has_newer_microcode(void *mc, unsigned int csig, int cpf, int new_rev)
 
 	return find_matching_signature(mc, csig, cpf);
 }
-EXPORT_SYMBOL_GPL(has_newer_microcode);
Signature · 8 lines
2.7.3


-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
#1 lore raw
x86/microcode: Remove unused symbol exports
Commit-ID:  eb06158ee1457a27fcc981a37f23b50f19015a8a
Gitweb:     http://git.kernel.org/tip/eb06158ee1457a27fcc981a37f23b50f19015a8a
Author:     Borislav Petkov <[email protected]>
AuthorDate: Mon, 4 Jul 2016 19:05:51 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 8 Jul 2016 11:30:58 +0200

x86/microcode: Remove unused symbol exports

It is not a module anymore and those can be retracted.

No functionality change.

Cc Andy Lutomirski <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Brian Gerst <[email protected]>
Cc Denys Vlasenko <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Josh Poimboeuf <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
---
 arch/x86/kernel/cpu/microcode/core.c      | 1 -
 arch/x86/kernel/cpu/microcode/intel_lib.c | 2 --
 2 files changed, 3 deletions(-)
arch/x86/kernel/cpu/microcode/core.c +0 -1
index 9ae7fca..df04b2d 100644
@@ -60,7 +60,6 @@ static bool dis_ucode_ldr;
 static DEFINE_MUTEX(microcode_mutex);
 
 struct ucode_cpu_info		ucode_cpu_info[NR_CPUS];
-EXPORT_SYMBOL_GPL(ucode_cpu_info);
 
 /*
  * Operations that are run on a target cpu:
arch/x86/kernel/cpu/microcode/intel_lib.c +0 -2
index 2ce1a7d..406cb6c 100644
@@ -141,7 +141,6 @@ int microcode_sanity_check(void *mc, int print_err)
 	}
 	return 0;
 }
-EXPORT_SYMBOL_GPL(microcode_sanity_check);
 
 /*
  * Returns 1 if update has been found, 0 otherwise.
@@ -183,4 +182,3 @@ int has_newer_microcode(void *mc, unsigned int csig, int cpf, int new_rev)
 
 	return find_matching_signature(mc, csig, cpf);
 }
-EXPORT_SYMBOL_GPL(has_newer_microcode);