From nobody Fri Dec 06 22:29:20 2024 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 4Y4mC45WF3z5g18W; Fri, 06 Dec 2024 22:29:20 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y4mC43rgRz47wS; Fri, 6 Dec 2024 22:29:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733524160; 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=CES//DRIYBEE3X6b0eYDfjc3bsFLTxRPW9xhDTU5hak=; b=YjN133Zaj0YYzJr7u5LlBPspgKaLLUG3QDr7Iuyy3mAXSbXeQfXQmRw83WNXr/5aj03n/M 7sUlRe4YX9BeZWE9Ger/sgh98eFe+MvUI0vTYZ02lRYfHFKczM5cnBjHjoSV5ZEfgLXxnr HVfC3bgnYOipZVwgI2Zx8Y/JIX944bU/YOboH+7ayNeuxIj8f+Kdjs+H/PNtnnLYO+VFHD luYxopy4MQM3iMG2p6lhr5MIQvBtFnwInk25EmQiqA/dyY83IHCYYaVDUcMXtG38/UDXOh /73I2x+4HpaD6SZi9nKfrFrMTp+g3eat+9HI2uBMkLuUmy9PGbe5cwbkVYK50g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733524160; 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=CES//DRIYBEE3X6b0eYDfjc3bsFLTxRPW9xhDTU5hak=; b=f37uIFqNnb0jPLKuIDwMc5JIgshEmJVd4JbFaCRc92Rz09t/EDGqILzg+PH9JcS8ISna1T j1q2rShPWv6JfagNR87GKUVAj1d0Zlz3ePFA24l7h6n8sqxKN3A8fI8gHv1hB3Y/N3TlLg zhPfey92RCL2juv9xVr8QcbOb1cuBH47Wnx2ER/68V1rddFghYrvrKe9VbUCK+TqItM+m8 VGchPGGqCEl+nnC4rz9EIHyq5mHUXV+4uY4VUjLIGTQM7yv+g3q9ESxci8e7Z5k9Zib3XT O9uWxkMSihyZNqMZKWknn2cLdnMzDCPQ+ynonONGKdVcskR6iR6cYV+x97DttQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733524160; a=rsa-sha256; cv=none; b=DzpaSJglqcpCYiy8P0iY2FKXIp8RHz4dfIJ9gd+xnZN8PO3axieFfyRjNqpmJ7p0DkrXCx h6LOEX7C7d3YwPS5DdxA0KaZurdalYLqFcvrEIWQJgPgRjK+vZ5dNw1Z9VKpx11UVWT2xz u5r9SOR1sTFFMloclXFSNtx2/9rSXFi9rovrWxrASBUvAU6trUk8xVOJcZPMAZr6j0rV3s xz4esmT5ptTRBdeQFLchEvZVDwjrU8O8T3xL2GrOoR7SM1fw+6U8IEq7T8gbbzMhx8M497 3j89Ta5bg4eY/rPX9dV/fTS+RJFud9EMIqmAzSRz5MkHAMUgFgJthMbXdLHFiw== 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 4Y4mC43QgMzvty; Fri, 6 Dec 2024 22:29:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B6MTKag072384; Fri, 6 Dec 2024 22:29:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B6MTKdv072381; Fri, 6 Dec 2024 22:29:20 GMT (envelope-from git) Date: Fri, 6 Dec 2024 22:29:20 GMT Message-Id: <202412062229.4B6MTKdv072381@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: a553e07c4ddc - main - new-bus: Deprecate bus_generic_(attach|probe) 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a553e07c4ddc383bcbe702f064017ba21da5b46d Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a553e07c4ddc383bcbe702f064017ba21da5b46d commit a553e07c4ddc383bcbe702f064017ba21da5b46d Author: John Baldwin AuthorDate: 2024-12-06 22:27:01 +0000 Commit: John Baldwin CommitDate: 2024-12-06 22:27:01 +0000 new-bus: Deprecate bus_generic_(attach|probe) Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47676 --- sys/sys/bus.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/sys/bus.h b/sys/sys/bus.h index c712e37fd34d..38834bcf5a8e 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -442,7 +442,8 @@ struct resource * rman_res_t count, u_int flags); int bus_generic_translate_resource(device_t dev, int type, rman_res_t start, rman_res_t *newstart); -int bus_generic_attach(device_t dev); +int bus_generic_attach(device_t dev) + __deprecated1("Use bus_attach_children instead"); int bus_generic_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu); int bus_generic_child_location(device_t dev, device_t child, struct sbuf *sb); @@ -478,7 +479,8 @@ int bus_print_child_header(device_t dev, device_t child); int bus_print_child_domain(device_t dev, device_t child); int bus_print_child_footer(device_t dev, device_t child); int bus_generic_print_child(device_t dev, device_t child); -int bus_generic_probe(device_t dev); +int bus_generic_probe(device_t dev) + __deprecated1("Use bus_identify_children instead"); int bus_generic_read_ivar(device_t dev, device_t child, int which, uintptr_t *result); int bus_generic_release_resource(device_t bus, device_t child,