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 3C2AF37266D; Mon, 18 May 2026 16:11:08 +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=1779120668; cv=none; b=bIXyjvgwB9ruEK+2uBI5bgbqewB2xMcl9FkC8X7ZlYPL66l3A5U3fM/WKdc72ALWORtpUD9pxuPXmg+sPrvcmcJhrdP1M6oYgceNtq9r3wVt6Ked+bbxVKN5EQJYbtptV+6MKA1y9BD7p5SUeG7O5HJNm4n2fBzsbJMZ272eVRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779120668; c=relaxed/simple; bh=T//OFr0mDkF3tjl7LVEO5CAeVXbcx9hS1UZdVnD6HbY=; h=Mime-Version:Content-Type:Date:Message-Id:To:From:Subject:Cc: References:In-Reply-To; b=HfiVZrow7Loo7i+aPTrvLp/jduAP0TWNpylAoqf6RF/Yj9lv9rO/GFZP+NpHMZmIvw90iQqFSodtygrQSjCWIGLOMdDYZGuOxizfsKI5RY379NGMC4PWHUxcdnt5B0tcPIs5hupPddosr43FHr7EyRRI/Hwu+tBtAVxlCcFUqEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=n6oBjBu2; 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="n6oBjBu2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 958D6C2BCB7; Mon, 18 May 2026 16:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779120666; bh=T//OFr0mDkF3tjl7LVEO5CAeVXbcx9hS1UZdVnD6HbY=; h=Date:To:From:Subject:Cc:References:In-Reply-To:From; b=n6oBjBu2u5eB7+AzCKDXdsSysgW9ESFJCjw3WVuUNdCBHbWUXCdjX1Arojah/0BdF nKNBuUS5VOqDCgFOEZMV1yU9JkRhCsl8h9NawTLNDeE7w1I3bteaVKpduxkna8iFlB aeJ9dlodQK+ADM0SgQ99v0qvaFxHitbemJgWAIxq9ad3rnXru+dxFQR6lnciSr5D3e 0mEs08OWS64wVltIxzrYvWEVU3TT6g++3+x27u+ef9Ru5OtEZ472Mdd9Xm50v8GzoC MNef426y7LLrakd0VPAH+efoP9eiJ0Enyl66yUIolFpGjhiUaOHbI1QiVkt99VNOS9 RcrPOg2IoQLtg== Precedence: bulk X-Mailing-List: linux-pm@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: Mon, 18 May 2026 18:10:58 +0200 Message-Id: To: "Gary Guo" From: "Danilo Krummrich" Subject: Re: [PATCH v3 10/27] rust: pci: make Driver trait lifetime-parameterized Cc: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20260517000149.3226762-1-dakr@kernel.org> <20260517000149.3226762-11-dakr@kernel.org> In-Reply-To: On Mon May 18, 2026 at 5:36 PM CEST, Gary Guo wrote: >> + fn probe<'bound>( >> + pdev: &'bound pci::Device, > > This is technically incorrect, as the `Device` only lives as long a= s the > callback. Having `'bound` would be incorrect. I think that's more on the theoretical side, as Core is not Sync, but I agr= ee it makes sense to address. > or perhaps by adding a lifetime to `Core<'_>` > > pdev: &'bound pci::Device>, This seems reasonable.