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 94A96278143; Tue, 5 Aug 2025 14:03:58 +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=1754402638; cv=none; b=AVzedSzvW0eSJF+cCfAC5ZcSMmaaHobREsadIi/oNQ8Mm3OePo3cE6m1hCrxMvqnbOhiVyEVqXR+O60MACzxdBW9yq6lImrsBfVEf7nfhUW9WZqGJunOG13SBkBSrQjQ3VEcEW3Xbasa2vv8zBbX+oWCxJmMoBoxaINJGJxq44s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754402638; c=relaxed/simple; bh=a//RMkT7QxB02c4HlMWI/+kv14S5DssakZHwqBJWWZk=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=AHcwZV5h4DthSqC/UObUYX8BgoJsryHH4uxwAmUqubQplj+bsWEqZ/hClflQ3qBUT9Hs8OJbLuC4SUFhC/xrt6IHpYA646zIp3s2LMQJWOKqqadbukvZUplxmJzJAtY4hYo/8VnDnvnTxeA7JswR/Nnng/MwnP63VKFn+nalUFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d1NE9DSs; 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="d1NE9DSs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E09E6C4CEF0; Tue, 5 Aug 2025 14:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754402638; bh=a//RMkT7QxB02c4HlMWI/+kv14S5DssakZHwqBJWWZk=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=d1NE9DSshfhbYDTNXm+5NbN6aUpYBAQdm3bKJU0MD+xVAEWDbmfPaJJzGOhYIZvI0 wpa6r765xkC3RhDGnM0uLB+tu/uok6Z+TlAlEdF+swOx3nhITBA4oxUxXxoTGjet/G TypCJ7y+mnQTcCVLLE48pXOId3Nml8P/j/bBBqLLTjUiEpNqHYy3aw5At6yRdKhJDB s16joxFp5GulzVFOi6h0eCbUk0hID0a8SyXb6PMWdQAbnJNBOLGjDT0604BuzPQUHC 7fcyJsbe2PtQhQ1/GOZEc0N8EQrDUeDFWmPS1fFoz0rtkz2lfW7/ZT2JvuclP9EISG I/+LfEn80FqTQ== Precedence: bulk X-Mailing-List: linux-kernel@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, 05 Aug 2025 16:03:50 +0200 Message-Id: Subject: Re: [PATCH v11 7/8] rust: Add read_poll_timeout functions Cc: "FUJITA Tomonori" , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , To: "Andrew Lunn" From: "Danilo Krummrich" References: <20250802.104249.1482605492526656971.fujita.tomonori@gmail.com> <20250805.223721.524503114987740782.fujita.tomonori@gmail.com> In-Reply-To: On Tue Aug 5, 2025 at 3:53 PM CEST, Andrew Lunn wrote: >> I also prefer the example that can be compiled however I can't think >> of a compilable example that is similar to actual use cases (for >> example, waiting for some hardware condition). Do you have any ideas? > > Does it have to be successfully runnable? Just read from address > 0x42. If it actually gets run, it will trigger an Opps, but it should > be obvious why. No, we have all three options. (1) Don't do anything with the code. (2) Compile it, but don't run it. (3) Compile it and run it as kunit test. In this case we want to compile it, but not actually run it. - Danilo