diff options
author | Borislav Petkov <bp@suse.de> | 2022-08-25 09:51:57 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-08-26 11:56:08 +0200 |
commit | 8c61eafd22d7207039bff85c6e1d386f15abd17e (patch) | |
tree | ec7c95525b9e0ac477af3be7bb4fac9b68005116 /arch/x86/kernel/cpu/microcode/intel.c | |
parent | 3ecf671f1d354f40228e407ab350abd41034410b (diff) | |
download | lwn-8c61eafd22d7207039bff85c6e1d386f15abd17e.tar.gz lwn-8c61eafd22d7207039bff85c6e1d386f15abd17e.zip |
x86/microcode: Remove ->request_microcode_user()
181b6f40e9ea ("x86/microcode: Rip out the OLD_INTERFACE")
removed the old microcode loading interface but forgot to remove the
related ->request_microcode_user() functionality which it uses.
Rip it out now too.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220825075445.28171-1-bp@alien8.de
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/intel.c')
-rw-r--r-- | arch/x86/kernel/cpu/microcode/intel.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c index 025c8f0cd948..1fcbd671f1df 100644 --- a/arch/x86/kernel/cpu/microcode/intel.c +++ b/arch/x86/kernel/cpu/microcode/intel.c @@ -916,24 +916,7 @@ static enum ucode_state request_microcode_fw(int cpu, struct device *device, return ret; } -static enum ucode_state -request_microcode_user(int cpu, const void __user *buf, size_t size) -{ - struct iov_iter iter; - struct iovec iov; - - if (is_blacklisted(cpu)) - return UCODE_NFOUND; - - iov.iov_base = (void __user *)buf; - iov.iov_len = size; - iov_iter_init(&iter, WRITE, &iov, 1, size); - - return generic_load_microcode(cpu, &iter); -} - static struct microcode_ops microcode_intel_ops = { - .request_microcode_user = request_microcode_user, .request_microcode_fw = request_microcode_fw, .collect_cpu_info = collect_cpu_info, .apply_microcode = apply_microcode_intel, |