From nobody Fri Aug 26 17:35:49 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 4MDn6t2CsBz4ZYYL; Fri, 26 Aug 2022 17:35:50 +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 4MDn6t1dHjz3WLP; Fri, 26 Aug 2022 17:35:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661535350; 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=Ta1bhuDkI6SdwU+SRP9unELkRR0DgiCQFhdRUrVhruY=; b=hBeKNM+CoBAyqs2V6n7PPHyrckfWOlsMRl9Gb/wSwk3G6WFNJa6CiA58321SCLOPF/Z+rh uq97dKio1DcAbzgxwol3C3H+5dUNYI3fF+Ln79lJ2XFyT3USonj7LyKDQLQ0rV2glOCRse SDTKA88fIfG25dqyLvr9gOOdJZXIQjQQn50Ug5mA1IEswT5kb0/Y8Xpi5xQX2skySYqWwx 9Pz5lWd57a+s9VdphEYl5BpjSiLsgOdhwD7fP5NpkjkcV4m09+8RS6VxmJi5RF1OMbW2Iv /YWvS06tpWoEPT1YfZL5JYmwKAtVaSKaXEoKm7JlDe8Ng4rnkGGo5g7GLU+G4g== 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 4MDn6t0dn2zSyJ; Fri, 26 Aug 2022 17:35:50 +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 27QHZnu5081511; Fri, 26 Aug 2022 17:35:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27QHZn6U081510; Fri, 26 Aug 2022 17:35:49 GMT (envelope-from git) Date: Fri, 26 Aug 2022 17:35:49 GMT Message-Id: <202208261735.27QHZn6U081510@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 837b7203f0c7 - main - domains: use struct domain as argument 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: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 837b7203f0c7356a35d59ed903053b9df4530164 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661535350; 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=Ta1bhuDkI6SdwU+SRP9unELkRR0DgiCQFhdRUrVhruY=; b=TJXEXfyoBuTKN40cQk2jr7Yuj3lrIbd4wzJc47MZsOJoShkHm5Zy8wnmCNL0v28kPaMY6Q lmKF8ch/hdq6JhTo/Kye2gN3ISlURoAGw38COvfzS65vJql/S4zzujuL6u8guVaRSr3oR/ Vxf4Uj0N+6++8NKsbLJc1YDeYQTJ1g5ofzR942Su6341WD7aKZe+9fqrUub0PO4umQHT48 vTJ0/P75s++3oHvma6KhIbErJwCU2L3HYjbKryPoiVEwUyU3htXAf3gVCfAi2A8qOI1CoW 80WZPZNXgNzH0R9DMj43GnwA6SPN0Br6NNse+prGXCd+15sR7uhb/CLkoW/OYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661535350; a=rsa-sha256; cv=none; b=QX6t28UcXC7/G2yQjn7LV4XmVFG8BaH7I68KTUOeoTAuG/mmhXhw0XtUADiN2H4CGAbKki qIIpk5+8IKR5Xkt5t9YLbwi8tqOmHrktuASyH34dxB5LV4maYQlBdPajCRQ6bcCGDLl+BW 9FuSm8EM19A8XgEsQDIsS6X7lbihrbVWFt97YVZBIoLB3UD89fisi7x0ldfd/0vjqnk4sC o7ohz7JLygJzYhRnCVkcmgXsBvGcRmPSl6hGd3fvArd2gD6Tmo608iB0CpuQKY0l6feZFi QuEoDHZqTQCZCLXL218C/yg2ZAXDHdUg+em7TZnRowxLxYuF2R5/i3XzBF4Dug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=837b7203f0c7356a35d59ed903053b9df4530164 commit 837b7203f0c7356a35d59ed903053b9df4530164 Author: Gleb Smirnoff AuthorDate: 2022-08-26 17:35:35 +0000 Commit: Gleb Smirnoff CommitDate: 2022-08-26 17:35:35 +0000 domains: use struct domain as argument --- sys/kern/uipc_domain.c | 10 +++------- sys/sys/domain.h | 6 +++--- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index a3401091bda4..8c6bd93ae703 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -248,9 +248,8 @@ pr_init(struct protosw *pr) * XXX can't fail at this time. */ void -domain_init(void *arg) +domain_init(struct domain *dp) { - struct domain *dp = arg; struct protosw *pr; int flags; @@ -283,11 +282,9 @@ domain_init(void *arg) * XXX can't fail at this time. */ void -domain_add(void *data) +domain_add(struct domain *dp) { - struct domain *dp; - dp = (struct domain *)data; if (dp->dom_probe != NULL && (*dp->dom_probe)() != 0) return; atomic_set_rel_int(&dp->dom_flags, DOMF_SUPPORTED); @@ -307,9 +304,8 @@ domain_add(void *data) } void -domain_remove(void *data) +domain_remove(struct domain *dp) { - struct domain *dp = (struct domain *)data; if ((dp->dom_flags & DOMF_UNLOADABLE) == 0) return; diff --git a/sys/sys/domain.h b/sys/sys/domain.h index af4dbf0be9ee..2f3a698a369d 100644 --- a/sys/sys/domain.h +++ b/sys/sys/domain.h @@ -77,9 +77,9 @@ struct domain { #ifdef _KERNEL extern int domain_init_status; extern struct domain *domains; -void domain_add(void *); -void domain_remove(void *); -void domain_init(void *); +void domain_add(struct domain *); +void domain_remove(struct domain *); +void domain_init(struct domain *); #ifdef VIMAGE void vnet_domain_init(void *); void vnet_domain_uninit(void *);