x86/coco: Export cc_vendor
authorBorislav Petkov (AMD) <bp@alien8.de>
Sat, 18 Mar 2023 11:56:33 +0000 (12:56 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 30 Mar 2023 12:06:28 +0000 (14:06 +0200)
commit3d91c537296794d5d0773f61abbe7b63f2f132d8
treed3e2184d0165db93c9a5b04dfd2911b222fcc5e5
parente8d018dd0257f744ca50a729e3d042cf2ec9da65
x86/coco: Export cc_vendor

It will be used in different checks in future changes. Export it directly
and provide accessor functions and stubs so this can be used in general
code when CONFIG_ARCH_HAS_CC_PLATFORM is not set.

No functional changes.

[ tglx: Add accessor functions ]

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230318115634.9392-2-bp@alien8.de
arch/x86/coco/core.c
arch/x86/include/asm/coco.h