From nobody Fri Jun 17 19:40:32 2022 X-Original-To: dev-commits-src-all@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 8F88B85D096; Fri, 17 Jun 2022 19:40:33 +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 4LPqC452VCz3hWh; Fri, 17 Jun 2022 19:40:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494832; 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=9rMltHbf9EssHLPOJLDyJJFroRP8L35q3pLs7VWQs7A=; b=vVeBn01YGMaM94hOCHXEh70I7vNi5+/CHwNosywA3Pul2PPwBkkbLQ3xWXRYRmYK1+ucms PdJAG/J3Uc+A7MR2P3K7y9rh30zN04MPrIJwemIh/TblQO3ISDTrAf6nQcKP/1JKlv5IDo wKFomnomq9mznf2nEFZ1LBfg913CZHNdgfnaH9+oEfXmTm+8ixuiyzyXu515ue5sT58R9Q lTXlF/6EqUiaGAXKr1BC4kk7WYGPmuON1RtymPUZeBSpL+iITTcFLXOgZjVIc5SlGs3rwD YS53r6DJ4j1sU4f2pupf5Da0gz4sUzidUzHnQS2qJAjnZT8PV1RwXjl4RUObgg== 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 75D09257E9; Fri, 17 Jun 2022 19:40:32 +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 25HJeWaA025939; Fri, 17 Jun 2022 19:40:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJeWqU025938; Fri, 17 Jun 2022 19:40:32 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:40:32 GMT Message-Id: <202206171940.25HJeWqU025938@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 4be4063cef67 - stable/13 - linux(4): Retire unneeded initialization List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4be4063cef676b014733ec881bc7db6d3a5ac1b5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494832; 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=9rMltHbf9EssHLPOJLDyJJFroRP8L35q3pLs7VWQs7A=; b=RpA7j9rObov91hHuvyqWRORl0rDGLJ6ra3bMR/EAkN8r6Nlwq4FAwbUm386ul6i7w5tnLa tnh0KBDxr83Y/hXn37EWaE7fOnWH2Yxcxjo/x1EO1Yafu0pTyXnff6Yw/lkKacBFmHe6Lo gf2HgS0F3BW88yGQ57SBRYadRJazcyYWhClrXbpXiY8nZDLZV4rXZ+2G2uK9okmvc3eIT9 rhAqVQFmNPAPUWVFNFVTHoje38Zke2QZBbIGhRPAGVQdLUWpyA1FugnWGf5pE9QDjqkfk7 lid2r7DHbweix1D22e2JS01L9B6sIjyf6ILE7zPN84kMkwseyaYOht/7tOEenQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494832; a=rsa-sha256; cv=none; b=IUxRY6Mj6P8EjvFm7oMvDgTAsF3XjNUftcHD4+k8AuY2pc2xxK0V7xYV1OKcVKVOxyODpy Wn5nJNbfLqtcU8tDvAmd7zsRwaiK83PvOOBpP0itbAnUHdOXpOzDV9FADDvH5BMracudow CaNEYt4IjQ2HdPPa/M4BP1Jd0c+5E6ZrnM7/9IeSvftNZWTF1DiIesy+GuNAltVm3uTQBc EI6zkewqG6nNmTdzsWsc1AcMBljH79Ap0SlHkPiMw7PUgv/ZFxgkzH9Jr2P8iYmyASVwwp wfXUernRHrNJI+TP+mJ6N4gWBHlYKGiUhXba95K7kF84LZ53Pqcv16CE1yyJhA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=4be4063cef676b014733ec881bc7db6d3a5ac1b5 commit 4be4063cef676b014733ec881bc7db6d3a5ac1b5 Author: Dmitry Chagin AuthorDate: 2022-05-15 17:58:47 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:35:19 +0000 linux(4): Retire unneeded initialization Both uc_flags and uc_link are zeroed above. On amd64 and i386 the uc_link field is not used at all. The UC_FP_XSTATE bit should be set in the uc_flags if OS xsave knob is turned on (and xsave is implemented). MFC after: 2 weeks (cherry picked from commit 0b5d5dc3767fcf2f0198f0f9549cb23983e0ee3e) --- sys/amd64/linux32/linux32_sysvec.c | 3 --- sys/i386/linux/linux_sysvec.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index 04f34a6561df..998691223d44 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -325,9 +325,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) /* * Build the signal context to be used by sigreturn and libgcc unwind. */ - frame.sf_sc.uc_flags = 0; /* XXX ??? */ - frame.sf_sc.uc_link = 0; /* XXX ??? */ - frame.sf_sc.uc_stack.ss_sp = PTROUT(td->td_sigstk.ss_sp); frame.sf_sc.uc_stack.ss_size = td->td_sigstk.ss_size; frame.sf_sc.uc_stack.ss_flags = (td->td_pflags & TDP_ALTSTACK) diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index 029ec652e0c0..fa45057939ff 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -431,9 +431,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) siginfo_to_lsiginfo(&ksi->ksi_info, &frame.sf_si, sig); /* Build the signal context to be used by sigreturn. */ - frame.sf_sc.uc_flags = 0; /* XXX ??? */ - frame.sf_sc.uc_link = NULL; /* XXX ??? */ - frame.sf_sc.uc_stack.ss_sp = PTROUT(td->td_sigstk.ss_sp); frame.sf_sc.uc_stack.ss_size = td->td_sigstk.ss_size; frame.sf_sc.uc_stack.ss_flags = (td->td_pflags & TDP_ALTSTACK)