mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 21:14:07 +08:00
x86/mem_encrypt: Remove stale mem_encrypt_init() declaration
The memory encryption initialization logic was moved from init/main.c into arch_cpu_finalize_init() in commit439e17576e
("init, x86: Move mem_encrypt_init() into arch_cpu_finalize_init()"), but a stale declaration for the init function was left in <linux/init.h>. And didn't cause any problems if you had X86_MEM_ENCRYPT enabled, which apparently everybody involved did have. See also commit0a9567ac5e
("x86/mem_encrypt: Unbreak the AMD_MEM_ENCRYPT=n build") in this whole sad saga of conflicting declarations for different situations. Reported-by: Matthew Wilcox <willy@infradead.org> Fixes:439e17576e
init, x86: Move mem_encrypt_init() into arch_cpu_finalize_init() Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
6581ccf03e
commit
1b2c92a1cb
@ -155,7 +155,6 @@ void __init init_rootfs(void);
|
||||
|
||||
void init_IRQ(void);
|
||||
void time_init(void);
|
||||
void mem_encrypt_init(void);
|
||||
void poking_init(void);
|
||||
void pgtable_cache_init(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user