Neither microcode_free_patch() nor early_microcode_update_cpu() have external
callers. Make them static.
early_microcode_update_cpu()'s sole caller is following a use of
microcode_ops, making the error path dead. Drop it as well.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
return NULL;
}
-void microcode_free_patch(struct microcode_patch *microcode_patch)
+static void microcode_free_patch(struct microcode_patch *microcode_patch)
{
microcode_ops->free_patch(microcode_patch->mc);
xfree(microcode_patch);
}
/* BSP calls this function to parse ucode blob and then apply an update. */
-int __init early_microcode_update_cpu(void)
+static int __init early_microcode_update_cpu(void)
{
int rc = 0;
const void *data = NULL;
size_t len;
struct microcode_patch *patch;
- if ( !microcode_ops )
- return -ENOSYS;
-
if ( ucode_blob.size )
{
len = ucode_blob.size;
DECLARE_PER_CPU(struct cpu_signature, cpu_sig);
extern const struct microcode_ops *microcode_ops;
-void microcode_free_patch(struct microcode_patch *patch);
-
#endif /* ASM_X86__MICROCODE_H */
void microcode_set_module(unsigned int);
int microcode_update(XEN_GUEST_HANDLE_PARAM(const_void), unsigned long len);
-int early_microcode_update_cpu(void);
int early_microcode_init(void);
int microcode_update_one(bool start_update);
int microcode_init_intel(void);