Signed-off-by: Andrea Bastoni <[email protected]>
---
hypervisor/arch/arm/control.c | 2 +-
hypervisor/arch/arm/iommu.c | 5 +++++
hypervisor/arch/arm/mmio.c | 1 +
hypervisor/arch/arm/traps.c | 2 ++
4 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/hypervisor/arch/arm/control.c b/hypervisor/arch/arm/control.c
index cd68dd9a..c1a0a308 100644
--- a/hypervisor/arch/arm/control.c
+++ b/hypervisor/arch/arm/control.c
@@ -20,7 +20,7 @@
#include <asm/psci.h>
#include <asm/sysregs.h>
-void arm_cpu_reset(unsigned long pc, bool aarch32)
+void arm_cpu_reset(unsigned long pc, bool aarch32 __attribute__((unused)))
{
u32 sctlr;
diff --git a/hypervisor/arch/arm/iommu.c b/hypervisor/arch/arm/iommu.c
index 2c02c812..307daa97 100644
--- a/hypervisor/arch/arm/iommu.c
+++ b/hypervisor/arch/arm/iommu.c
@@ -20,15 +20,20 @@ unsigned int iommu_count_units(void)
int iommu_map_memory_region(struct cell *cell,
const struct jailhouse_memory *mem)
{
+ (void)cell;
+ (void)mem;
return 0;
}
int iommu_unmap_memory_region(struct cell *cell,
const struct jailhouse_memory *mem)
{
+ (void)cell;
+ (void)mem;
return 0;
}
void iommu_config_commit(struct cell *cell)
{
+ (void)cell;
}
diff --git a/hypervisor/arch/arm/mmio.c b/hypervisor/arch/arm/mmio.c
index 1c492b43..120312c7 100644
--- a/hypervisor/arch/arm/mmio.c
+++ b/hypervisor/arch/arm/mmio.c
@@ -29,6 +29,7 @@ static inline unsigned long sign_extend(unsigned long val,
unsigned int size)
/* Taken from the ARM ARM pseudocode for taking a data abort */
static void arch_inject_dabt(struct trap_context *ctx, unsigned long addr)
{
+ (void)ctx;
unsigned int lr_offset;
unsigned long vbar;
bool is_thumb;
diff --git a/hypervisor/arch/arm/traps.c b/hypervisor/arch/arm/traps.c
index 10b3fdbf..103dbbb8 100644
--- a/hypervisor/arch/arm/traps.c
+++ b/hypervisor/arch/arm/traps.c
@@ -96,6 +96,7 @@ static bool arch_failed_condition(struct trap_context *ctx)
*/
static void arch_advance_itstate(struct trap_context *ctx)
{
+ (void)ctx;
unsigned long itbits, cond;
u32 cpsr;
@@ -404,6 +405,7 @@ static enum trap_return arch_handle_cp15_64(struct
trap_context *ctx)
static enum trap_return handle_iabt(struct trap_context *ctx)
{
+ (void)ctx;
unsigned long hpfar, hdfar;
arm_read_sysreg(HPFAR, hpfar);
--
2.28.0
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/20201021145404.100463-21-andrea.bastoni%40tum.de.