[PATCH] x86/xen: only unlock when USE_SPLIT_PTE_PTLOCKS is true

2020-09-28 Thread Jason Yan
When USE_SPLIT_PTE_PTLOCKS is false, xen_pte_lock() actually do nothing but returns NULL. So xen_pte_unlock() should not actually unlock. Otherwise a NULL pointer dereference will be triggered. Fixes: 74260714c56d ("xen: lock pte pages while pinning/unpinning") Signed-off-by: Jason Yan

[PATCH] xen/pci: make xen_msi_init() static

2020-04-17 Thread Jason Yan
Fix the following sparse warning: arch/x86/pci/xen.c:426:13: warning: symbol 'xen_msi_init' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- arch/x86/pci/xen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/p

[PATCH] arm/xen: make _xen_start_info static

2020-04-15 Thread Jason Yan
Fix the following sparse warning: arch/arm64/xen/../../arm/xen/enlighten.c:39:19: warning: symbol '_xen_start_info' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- arch/arm/xen/enlighten.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH] x86/xen: make xen_pvmmu_arch_setup() static

2020-04-07 Thread Jason Yan
Fix the following sparse warning: arch/x86/xen/setup.c:998:12: warning: symbol 'xen_pvmmu_arch_setup' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- arch/x86/xen/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git