From nobody Tue Jun 06 20:01:58 2023 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 4QbLwQ3JM2z4bMwB; Tue, 6 Jun 2023 20:01:58 +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 4QbLwQ2sx6z3GV2; Tue, 6 Jun 2023 20:01:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686081718; 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=Z6CBqxBU1ftgiYoMAvsC7HHzGKETghsOdJ3b/1rRSFA=; b=cAd3aM0snSENonVZ6P154TON2jfOts1LlXn/Vq5imeN86M71aJGoNAVJplmB5FVv1O2n5Z a1GeiV8iJgwEkQxsxW0gZvSGT2M1qoPZhByUHNlflPtCKeBYI8NkvjEHyTE5itKTkbdpPN ovi9Fc7LEmzsXkbZVSjv7mMFRjIO7jYQd/DleSKDi/BLEAzQLc4rOY76rjbjqtDc9j4rEA y8N1H3z7Ymm0CNSf+pIkbVX/ZmdQRwa4W1fUFNrN53HUJRn3wlKk37x19S4TY4wwq3BH3e THujCK1nFDlRMTcaExcob7DBk7OWnloxednbI3SJNNpWYdTdfeOcRseEdDWlYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686081718; 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=Z6CBqxBU1ftgiYoMAvsC7HHzGKETghsOdJ3b/1rRSFA=; b=XSaTxgHSyuLC9hQuItWrer3fabmCu1qRTOzj3JBueyQ9WcqfRDGjZ/QAvTuyESEsO69UNY OcDNCv5eaDerjbidFOT4T3pB6trqRRqq5vKKTrrRqjHkfhNd77siO68Nl5V8NCyaX7Mcpc yxopKAZJwo7slq48ORsb2c3N1VTb9VT4P88nQzsUUOoT2B890BpowfLRotmMfaWv+fOqjS JphA/FarhvNxtnAWt4w3i1rdFnSMZJvwiCBLUHFdjO0PHHGkuo1iSqxQ0+DviqOB/nHz74 bviHoOyo5Pn566mLs1AKCUAMEgZYo3kS7qY5kYv9q6KiazhpaeLArFJarzzuwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686081718; a=rsa-sha256; cv=none; b=Jt15sKReETnALr/UteGXdt1zdAko73yXp81E4+gB2uL+zjWvGKQHs5a02HUnmDYLmr0K3c yb7/cVUlw9U+3+t4TiCUQTzydX3Lffdu1tJHGeAIWT6dpmNsW+QeClucc6AzBLvxJLshI+ NhF/JJhTiLYHuTO4VyA3y16rDdAtA6de9Moj+lU7G3b4ilfOMLgIiAnWu0Rn6yrMME0+4r wOjwLx61T1Rf3ghNSoDEcUoQxtdT5fpUjexVUqzyKHv2lc+TpKA7VP5tzmC0ODpXvAseU3 x+U3jso1wGBAmu0D7EBa2tpuY3naritzAgw0yMvzCjXOko2Lv4AWk4PslIuY+Q== 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 4QbLwQ1xPTzjQD; Tue, 6 Jun 2023 20:01:58 +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 356K1wtJ057466; Tue, 6 Jun 2023 20:01:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 356K1wO0057465; Tue, 6 Jun 2023 20:01:58 GMT (envelope-from git) Date: Tue, 6 Jun 2023 20:01:58 GMT Message-Id: <202306062001.356K1wO0057465@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: 84617f6fccd4 - main - linux(4) rt_sendsig: Remove the use of caddr_t 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: 84617f6fccd45505f3eeebad1c8cdce1140b7f8e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=84617f6fccd45505f3eeebad1c8cdce1140b7f8e commit 84617f6fccd45505f3eeebad1c8cdce1140b7f8e Author: Dmitry Chagin AuthorDate: 2023-06-06 20:01:39 +0000 Commit: Dmitry Chagin CommitDate: 2023-06-06 20:01:39 +0000 linux(4) rt_sendsig: Remove the use of caddr_t Replace caddr_t by more appropriate char *. MFC after: 2 weeks --- sys/amd64/linux/linux_sysvec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c index 943df00328fc..547777127d2a 100644 --- a/sys/amd64/linux/linux_sysvec.c +++ b/sys/amd64/linux/linux_sysvec.c @@ -410,7 +410,7 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) struct proc *p; struct thread *td; struct sigacts *psp; - caddr_t sp; + char *sp; struct trapframe *regs; struct savefpu *svfp; mcontext_t mc; @@ -440,9 +440,9 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) /* Allocate space for the signal handler context. */ if ((td->td_pflags & TDP_ALTSTACK) != 0 && !oonstack && SIGISMEMBER(psp->ps_sigonstack, sig)) { - sp = (caddr_t)td->td_sigstk.ss_sp + td->td_sigstk.ss_size; + sp = (char *)td->td_sigstk.ss_sp + td->td_sigstk.ss_size; } else - sp = (caddr_t)regs->tf_rsp - 128; + sp = (char *)regs->tf_rsp - 128; mtx_unlock(&psp->ps_mtx); PROC_UNLOCK(p); @@ -497,7 +497,7 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) for (i = 0; i < nitems(svfp->sv_xmm); ++i) bcopy(svfp->sv_xmm[i].xmm_bytes, &sf.sf_fs.xmm[i], sizeof(svfp->sv_xmm[i].xmm_bytes)); - sf.sf_uc.uc_mcontext.sc_fpstate = (struct l_fpstate *)((caddr_t)sfp + + sf.sf_uc.uc_mcontext.sc_fpstate = (struct l_fpstate *)((char *)sfp + offsetof(struct l_rt_sigframe, sf_fs)); /* Translate the signal. */