From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E2D225F973; Tue, 15 Jul 2025 08:22:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752567776; cv=none; b=BTXI8uJKUrqHWUpMnVa1IsdqoB+51zHD9KGVidbESEi++9jUiCY1Tuzi7fwUn7ud7A6K2BIdukow3D5IGq5bqTEzDvgRhKJCNHTqzKOkBwGulyh9O7KTnpfTuEhmcuaSAS2cDtZskG5SP5UlWy20zDrZAr2jwQIAM5Z3G5k+VDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752567776; c=relaxed/simple; bh=e+GveHWQsznhWVSVvbglpHmf7i2wCktpNbLp6nwd69E=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=RQRdpBXI/MgQIYTgn5/gS0fbaaKTmQopUVa4SboyhpCySKaSIiwHq+XxiNx41CwB2oLx1rgPGhKUbpHdQweIs0aYDMn0t1aY05vtVxZ8QfSvSgVckvmW9pJHz/DrMizLc3EODiO2uPE8t0YNtD1rP4qaLP8DV1koFDjJSGyU9/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uCSTFOay; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uCSTFOay" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B272C4CEF6; Tue, 15 Jul 2025 08:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752567776; bh=e+GveHWQsznhWVSVvbglpHmf7i2wCktpNbLp6nwd69E=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=uCSTFOayI1PlYUOW/L/A7im4447V053jBVrUql8+jedyJUZ9yIWB31OCH6UR7MDyl mJcl+M+lD1aVOyxY2jTm+gqM3R0ie1h7Pz5MnEWVVTh4g0qehh4HxmDNIgKdzawyJ2 gsMDtZ3Stl0zrm4utvXVJFoUt0nvXVkVmSni+Xs3f2XjXUCZsRHp2HN8t3unkfsFwy MQPaJUXyS/R4jg9aE6bz64uCaCthdNS8ObiDAwIU7JN0Y9gRTRtHSoIO6zDLJ6ltAc zfHn0uSDFkicPd+F08QcIMZe64uOWq8sy3wqTEOF+Yg+xgXHl0XkbQLwSkiIk/14Hs 7NWylmfhk14hQ== Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 15 Jul 2025 10:22:51 +0200 Message-Id: Subject: Re: [PATCH] rust: devres: initialize Devres::inner::data last Cc: , , , , , , , , , , , , , To: "Alice Ryhl" From: "Danilo Krummrich" References: <20250714113712.22158-1-dakr@kernel.org> In-Reply-To: On Tue Jul 15, 2025 at 9:24 AM CEST, Alice Ryhl wrote: > On Mon, Jul 14, 2025 at 01:32:35PM +0200, Danilo Krummrich wrote: >> Users may want to access the Devres object from callbacks registered >> through the initialization of Devres::inner::data. >>=20 >> For those accesses to be valid, Devres::inner::data must be initialized >> last [1]. >>=20 >> Credit to Boqun for spotting this [2]. >>=20 >> Link: https://lore.kernel.org/lkml/DBBPHO26CPBS.2OVI1OERCB2J5@kernel.org= / [1] >> Link: https://lore.kernel.org/lkml/aHSmxWeIy3L-AKIV@Mac.home/ [2] >> Signed-off-by: Danilo Krummrich >> --- >> base-commit: 3964d07dd821efe9680e90c51c86661a98e60a0f > > I couldn't find this commit. Where does this apply? The commit is in driver-core-next.