From nobody Mon Nov 29 16:49:21 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AC33318B8A27; Mon, 29 Nov 2021 16:49:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2rst1HzMz3nPb; Mon, 29 Nov 2021 16:49:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DB19626097; Mon, 29 Nov 2021 16:49:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ATGnLFQ047324; Mon, 29 Nov 2021 16:49:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATGnLXn047323; Mon, 29 Nov 2021 16:49:21 GMT (envelope-from git) Date: Mon, 29 Nov 2021 16:49:21 GMT Message-Id: <202111291649.1ATGnLXn047323@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Edward Tomasz Napierala Subject: git: a089c17d3206 - main - linux(4): Fix "set but not used" warnings List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a089c17d320684e6eb36556fa131a8286e6a821d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638204562; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fu6zkCrmFjnIOceAx6U9bi9Kn5GULwm3GUnnGdalk40=; b=FjNrSttYx7TADosITqA/FtTzXDfb7c3R783lgxtkwd5rogqEizb0NkvLxU277qtCg2w/XZ hUH9Ntd2/AGAu4ngGM1WCCdRFTcGV44At4MPuBTUD47WszR8JvAFJzXtmig3Zc+ObRdJIs T4Xt8UmORhwn+72qX8da/UD9L0lK3HIgAqDRhoMB2XB21pCCWO5ajsiba4PnUUP+wFMJjc oS489WzOBGomg0eqppwsXQb33quygI91xyxGEcYtuZw6T2bE4qwtxi0LWBorsAKtILqDhw iM/IK4IdUj03MQHO0aU18pUFkMBpQ5rbTxJMxW+OXzda5mZ1EsugFdUjyMdCrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638204562; a=rsa-sha256; cv=none; b=c3UMDnVLWZye7GYiyu8cLQjmd4YZziDPi5bxX5i4R/nQjlVo1nf/0/VeL/oeqpv1bmpsL1 NvfJ4uvLnoDkrgVpVBhI/GzqApqFk3/vHp92rhfskGt7gnEAOSrzrhLav13xKhiaxh2jmE DPtlLjUqna5wmxkl9B726Rj3W4Ask+hKau0tabH+onBAcTjqzCmHCTZlvY3WZVjdL/lqyq tFpdIxV/IF/hMr/7SZm8GeydptnL+Z/lhYQghWNDnYuQmPVZgKjfnG40NGaVjMXFeFk9kR 5GpSaqWqkDQY4HaHu3L+cmjocYLA/4pJj1fvZw+hjFjIw8xG0VDVVt/UjuXW7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=a089c17d320684e6eb36556fa131a8286e6a821d commit a089c17d320684e6eb36556fa131a8286e6a821d Author: Edward Tomasz Napierala AuthorDate: 2021-11-29 16:44:40 +0000 Commit: Edward Tomasz Napierala 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"));