projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e279c25
)
KVM: arm64: Make kvm_pgtable_stage2_init() a static inline function
author
Quentin Perret
<qperret@google.com>
Wed, 18 Dec 2024 19:40:48 +0000
(19:40 +0000)
committer
Marc Zyngier
<maz@kernel.org>
Fri, 20 Dec 2024 09:44:00 +0000
(09:44 +0000)
Turn kvm_pgtable_stage2_init() into a static inline function instead of
a macro. This will allow the usage of typeof() on it later on.
Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Link:
https://lore.kernel.org/r/20241218194059.3670226-8-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pgtable.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm64/include/asm/kvm_pgtable.h
b/arch/arm64/include/asm/kvm_pgtable.h
index c2f4149283ef46b08c6631cae7081380f7b9dfc1..04418b5e3004e63d8bff99636e60c8c1a60085c6 100644
(file)
--- a/
arch/arm64/include/asm/kvm_pgtable.h
+++ b/
arch/arm64/include/asm/kvm_pgtable.h
@@
-526,8
+526,11
@@
int __kvm_pgtable_stage2_init(struct kvm_pgtable *pgt, struct kvm_s2_mmu *mmu,
enum kvm_pgtable_stage2_flags flags,
kvm_pgtable_force_pte_cb_t force_pte_cb);
-#define kvm_pgtable_stage2_init(pgt, mmu, mm_ops) \
- __kvm_pgtable_stage2_init(pgt, mmu, mm_ops, 0, NULL)
+static inline int kvm_pgtable_stage2_init(struct kvm_pgtable *pgt, struct kvm_s2_mmu *mmu,
+ struct kvm_pgtable_mm_ops *mm_ops)
+{
+ return __kvm_pgtable_stage2_init(pgt, mmu, mm_ops, 0, NULL);
+}
/**
* kvm_pgtable_stage2_destroy() - Destroy an unused guest stage-2 page-table.