[dm-devel] [PATCH v6 2/6] x86/mce: relocate set{clear}_mce_nospec() functions

Christoph Hellwig hch at infradead.org
Tue Mar 22 08:42:50 UTC 2022


> +EXPORT_SYMBOL(set_mce_nospec);

No need for this export at all.

> +
> +/* Restore full speculative operation to the pfn. */
> +int clear_mce_nospec(unsigned long pfn)
> +{
> +	return set_memory_wb((unsigned long) pfn_to_kaddr(pfn), 1);
> +}
> +EXPORT_SYMBOL(clear_mce_nospec);

And this should be EXPORT_SYMBOL_GPL.



More information about the dm-devel mailing list