mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-13 11:33:58 +00:00
hv: fixed compiling warning
removed some unnecessary variables and functions. v1-->v2: Replace div-by-zero with an inline ASM code Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
static uint32_t notification_irq = IRQ_INVALID;
|
||||
|
||||
static volatile uint64_t smp_call_mask = 0UL;
|
||||
static uint64_t smp_call_mask = 0UL;
|
||||
|
||||
/* run in interrupt context */
|
||||
static int kick_notification(__unused uint32_t irq, __unused void *data)
|
||||
@@ -98,11 +98,3 @@ void setup_notification(void)
|
||||
dev_dbg(ACRN_DBG_PTIRQ, "NOTIFY: irq[%d] setup vector %x",
|
||||
notification_irq, irq_to_vector(notification_irq));
|
||||
}
|
||||
|
||||
static void cleanup_notification(void)
|
||||
{
|
||||
if (notification_irq != IRQ_INVALID) {
|
||||
free_irq(notification_irq);
|
||||
}
|
||||
notification_irq = IRQ_INVALID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user