x86/sev: Rename snp_init() in boot/compressed/sev.c
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 24 Apr 2024 15:57:58 +0000 (10:57 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 25 Apr 2024 14:14:25 +0000 (16:14 +0200)
commit88ed43d32beb1ef3c06164c52b1c6ced47b5988b
treeb5f2b2d3f198432ce7e079b9b3e27086181fd030
parent1e52550729dafb41b12652a985d3df6cfa99cb88
x86/sev: Rename snp_init() in boot/compressed/sev.c

The snp_init() function in boot/compressed/sev.c is local to that file, is
not called from outside of the file and is independent of the snp_init()
function in kernel/sev.c. Change the name to better differentiate when
each function is used.

Move the renamed snp_init() and related functions up in the file to avoid
having to add a forward declaration and make the function static.

No functional change.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/afda29585c2724b9698003f24cefa77eb35f4ffb.1713974291.git.thomas.lendacky@amd.com
arch/x86/boot/compressed/sev.c