aboutsummaryrefslogtreecommitdiff
path: root/sys/x86
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-12-15 13:45:04 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-12-15 13:46:17 +0000
commite7236a7ddf37ffe330d323c7b6037230d10afee4 (patch)
treea618a8ead9f6e82d6f97721cf1392583a839a429 /sys/x86
parent517a7adb1160850746227e4cc30d4bcc3ff04d7d (diff)
Diffstat (limited to 'sys/x86')
-rw-r--r--sys/x86/xen/pv.c3
-rw-r--r--sys/x86/xen/xen_intr.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/sys/x86/xen/pv.c b/sys/x86/xen/pv.c
index a316d4ee8857..e0c88992390e 100644
--- a/sys/x86/xen/pv.c
+++ b/sys/x86/xen/pv.c
@@ -255,11 +255,8 @@ xen_pvh_parse_symtab(void)
{
Elf_Ehdr *ehdr;
Elf_Shdr *shdr;
- uint32_t size;
int i, j;
- size = end;
-
ehdr = (Elf_Ehdr *)(&end + 1);
if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) ||
ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS ||
diff --git a/sys/x86/xen/xen_intr.c b/sys/x86/xen/xen_intr.c
index a3d84965f0f2..08e3ac6b1f52 100644
--- a/sys/x86/xen/xen_intr.c
+++ b/sys/x86/xen/xen_intr.c
@@ -491,7 +491,7 @@ xen_intr_active_ports(struct xen_intr_pcpu_data *pcpu, shared_info_t *sh,
void
xen_intr_handle_upcall(struct trapframe *trap_frame)
{
- u_int l1i, l2i, port, cpu;
+ u_int l1i, l2i, port, cpu __diagused;
u_long masked_l1, masked_l2;
struct xenisrc *isrc;
shared_info_t *s;