Re: [PATCH V2 03/14] x86/set_memory: Add x86_set_memory_enc static call support

From
Peter Zijlstra <peterz@infradead.org>
Date
2021-08-05 14:11:25
Also in
linux-arch, linux-iommu, linux-scsi, lkml, netdev, xen-devel
Reply to
Tianyu Lan, 2021-08-05
On Thu, Aug 05, 2021 at 10:05:17PM +0800, Tianyu Lan wrote:
+static int default_set_memory_enc(unsigned long addr, int numpages, bool
enc)
+{
+	return 0;
+}
+
+DEFINE_STATIC_CALL(x86_set_memory_enc, default_set_memory_enc);
That's spelled:

DEFINE_STATIC_CALL_RET0(x86_set_memory_enc, __set_memory_enc_dec);

And then you can remove the default_set_memory_enc() thing.
Thread (23 messages) 23 messages, 3 authors, last reply 2021-08-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help