aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2021-11-29 16:44:40 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2021-11-29 16:45:16 +0000
commita089c17d320684e6eb36556fa131a8286e6a821d (patch)
tree6bd4459d38dd10c0081d8364ca4f2d9e519e5c6b
parentfbf5246757630650c23ed711c527a67dd52eb745 (diff)
downloadsrc-a089c17d320684e6eb36556fa131a8286e6a821d.tar.gz
src-a089c17d320684e6eb36556fa131a8286e6a821d.zip
linux(4): Fix "set but not used" warnings
No functional changes. Sponsored By: EPSRC
-rw-r--r--sys/arm64/linux/linux_sysvec.c2
-rw-r--r--sys/compat/linux/linux_fork.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/arm64/linux/linux_sysvec.c b/sys/arm64/linux/linux_sysvec.c
index d576ef48aa44..c88442a19c53 100644
--- a/sys/arm64/linux/linux_sysvec.c
+++ b/sys/arm64/linux/linux_sysvec.c
@@ -439,7 +439,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
struct l_sigframe *fp, frame;
struct sigacts *psp;
int onstack, sig;
- uint32_t spsr;
td = curthread;
p = td->td_proc;
@@ -474,7 +473,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
/* Fill in the frame to copy out */
bzero(&frame, sizeof(frame));
get_mcontext(td, &frame.sf_uc.uc_mcontext, 0);
- spsr = frame.sf_uc.uc_mcontext.mc_gpregs.gp_spsr;
/* Translate the signal. */
sig = bsd_to_linux_signal(sig);
diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c
index f722e3c08482..bcd5ffe3c589 100644
--- a/sys/compat/linux/linux_fork.c
+++ b/sys/compat/linux/linux_fork.c
@@ -482,7 +482,7 @@ out:
int
linux_exit(struct thread *td, struct linux_exit_args *args)
{
- struct linux_emuldata *em;
+ struct linux_emuldata *em __diagused;
em = em_find(td);
KASSERT(em != NULL, ("exit: emuldata not found.\n"));