From: Peter Georg <peter.georg@xxxxxxxxxxxxxxxxxxxxxxxx> x86/sgx: Add ifdef RHEL_DIFFERENCES Bugzilla: http://bugzilla.redhat.com/2025959 Upstream Status: RHEL only Fixes: fa947f43e5b37 Signed-off-by: Peter Georg <peter.georg@xxxxxxxxxxxxxxxxxxxxxxxx> diff --git a/arch/x86/kernel/cpu/sgx/virt.c b/arch/x86/kernel/cpu/sgx/virt.c index blahblah..blahblah 100644 --- a/arch/x86/kernel/cpu/sgx/virt.c +++ b/arch/x86/kernel/cpu/sgx/virt.c @@ -258,7 +258,6 @@ static int sgx_vepc_release(struct inode *inode, struct file *file) static int sgx_vepc_open(struct inode *inode, struct file *file) { struct sgx_vepc *vepc; - static bool warned = false; vepc = kzalloc(sizeof(struct sgx_vepc), GFP_KERNEL); if (!vepc) @@ -266,10 +265,13 @@ static int sgx_vepc_open(struct inode *inode, struct file *file) mutex_init(&vepc->lock); xa_init(&vepc->page_array); +#ifdef CONFIG_RHEL_DIFFERENCES + static bool warned = false; if (!warned) { mark_tech_preview("Intel Software Guard Extensions (SGX)", NULL); warned = true; } +#endif file->private_data = vepc; -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1610 _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure