From nobody Sun May 15 18:12:22 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 A00F11AE9133; Sun, 15 May 2022 18:12: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 4L1VpZ44bbz3vJl; Sun, 15 May 2022 18:12:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652638342; 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=MkGhmrShElQzNBpIYTQClyDGv7zn3MQ4n5JVNhgjHjk=; b=rvyAcejJGBtnT8M2ClpIPjuSkeX5l3NbE3+Z3VUFVQDNCcyxVK8zhitjNS8R+Wad9YzUQs 8PC/oyNxaz6R/fCMJWjGoABr2qenpPxhY8L6RYBhXiGdV2j00EKQEPtZTk0gkLyDU3z+9x izZ/0JtEdSLhoV9Fjv56lBjvGEaSgz7EmHKLUsvF0IsoU37Z0nqI6kXjvGf6wwR9ViiP0g ofJciEGaSQ3CIK0a4nWp9c6ZQ9ul42qOC9ZLmS0FwEAfmjvVrJlUPCAJlenrvrzC1seE7R fhvqjcPX374HhsuYoxSpjhwONeuFwdKn5cCUSbCn8uxB9VSp3DaTRyT2ThTOQg== 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 6C9FC10A3D; Sun, 15 May 2022 18:12:22 +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 24FICMKX082487; Sun, 15 May 2022 18:12:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24FICMGv082486; Sun, 15 May 2022 18:12:22 GMT (envelope-from git) Date: Sun, 15 May 2022 18:12:22 GMT Message-Id: <202205151812.24FICMGv082486@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 0b5d5dc3767f - main - 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/main X-Git-Reftype: branch X-Git-Commit: 0b5d5dc3767fcf2f0198f0f9549cb23983e0ee3e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652638342; 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=MkGhmrShElQzNBpIYTQClyDGv7zn3MQ4n5JVNhgjHjk=; b=HrZKBxkLlJk1QKOU/p0s7CSDbxY7GrySZPAgyRBCTf0UCLX99iCB4K1YwRZr/sfliTA9iv XLc13QkE03El6A0o2SH5zVj0E/wvRQfk7Bsh0nHXNlo1ggkXTFE7BUQ+BUSRRAF4/ltFPC WDUYdH0OGclayMh9HgGw0ATwFPfLjQ5P6EJTst0OIichdZFnFVL7Ia0b3VwQ0t2UDK5JAl kfzJeqtbDwBTF3LSNp7p/ZzXYA8CjUe7Beebio+vspx0YQIqI4PQb/S4b/wcnKFGTQKhxl 55lEdZ0ALvabJL0wob4cOhsk7+v3AbmQfWxtaS1Fk+ny3lVDC1UruLcTCu5vbA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652638342; a=rsa-sha256; cv=none; b=QOiluhSrQ3sJ6C8vHKV1+AjDW30b80DfchOx77STX+/t17SdwLeEbTqE8nGcQ2050juzdf /DVp6aZsuAueqsvhglUzJ7zhiEyHCDk1Oty4fh6uz7YtSMnTSmVapTJW4DkDXCni8G/c6u +NHRpjpqSX6WIRvwkmAasmLB3OLatXLR4GjSsXdC6t13MirmRWTs9XN1XJP+vuNXLflKDP sB9HQoYiGfSmC5fkQOSLA0MiLrbceZ3puEKfBPoPd46aE0xCUY3z9kzesk/Ijw10OnCvg0 Ai/HXR1ALKZ2H6L6EjbZ+uy9O/80tfh+X0n84w0uMmF+eEGx6tGXIdJ7C9FL4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=0b5d5dc3767fcf2f0198f0f9549cb23983e0ee3e commit 0b5d5dc3767fcf2f0198f0f9549cb23983e0ee3e Author: Dmitry Chagin AuthorDate: 2022-05-15 17:58:47 +0000 Commit: Dmitry Chagin CommitDate: 2022-05-15 17:58:47 +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 --- 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 b57d6f93d94b..ed430c8e579a 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 53e55557e6f7..9f0647f73c0c 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)