The branch main has been updated by trasz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a089c17d320684e6eb36556fa131a8286e6a821d

commit a089c17d320684e6eb36556fa131a8286e6a821d
Author:     Edward Tomasz Napierala <[email protected]>
AuthorDate: 2021-11-29 16:44:40 +0000
Commit:     Edward Tomasz Napierala <[email protected]>
CommitDate: 2021-11-29 16:45:16 +0000

    linux(4): Fix "set but not used" warnings
    
    No functional changes.
    
    Sponsored By:   EPSRC
---
 sys/arm64/linux/linux_sysvec.c | 2 --
 sys/compat/linux/linux_fork.c  | 2 +-
 2 files changed, 1 insertion(+), 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"));

Reply via email to