x86/setup: Make relocated_ramdisk a local variable of relocate_initrd()
mainline inclusion from mainline-v6.7-rc1 commit f7a25cf1d4707da39b80df96a3be8a8abd07c35b category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8XRMW CVE: NA -------------------------------- After 0b62f6cb0773 ("x86/microcode/32: Move early loading after paging enable"), the global variable relocated_ramdisk is no longer used anywhere except for the relocate_initrd() function. Make it a local variable of that function. Intel-SIG: commit f7a25cf1d470 Make relocated_ramdisk a local variable of relocate_initrd(). Microcode restructuring backport. Signed-off-by:Yuntao Wang <ytcoode@gmail.com> Signed-off-by:
Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by:
Baoquan He <bhe@redhat.com> Link: https://lore.kernel.org/r/20231113034026.130679-1-ytcoode@gmail.com [ Aubrey Li: amend commit log ] Signed-off-by:
Aubrey Li <aubrey.li@linux.intel.com>
Loading
Please sign in to comment