From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.159 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793354711; b=hwWhuRRkxynLC4F1FNIxvLIOuEgDYbWp7wsTVmCT1fhyHSvZ+snqSvlVdfboJvDRkjFB u4Bu3G/cF/mUj83lptKxJOxqJE1XQhG/nZvLgssYTX7HMoL2tRgMWtpY8UyujhfxZ6Wzg yxq1gLsYMnnrPU0U4BsyFg8ajbtJp0B72cUW7/fk9lhrO1C1KVL5WoPYCdpnrWZEYapY1 56h5zd3BpQFPinLOjlx+eADqflgCN+livcEtra2RqNqUubzYOOfQLO3FsAEzxFgesvv1S IEjTNgLCXqdVAHkbpFGu9IHAJ2eIRuNH8HMZ0NCqNIOdYjE9sM9DO9Y18jQ8XNTgt+A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793354711; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:Date:Message-Id:To:Cc:Subject:From:In-Reply-To:References: Mime-Version:Content-Type:Content-Transfer-Encoding; bh=CYmf7zEV7N2JO5e7QjNKth9sPECuxuSbTlZTcxut18k=; b=496tcoht6DQNDUrF8sfHP6NbLLoWxCOVb7gTZMq/jOvw6NrKiqu7NlXCvGfsyeEQp5mo C9rQrXN3vFYLZN9dmU4kMmiJ291AboKD8lOw4c3rYm2gmR7fiRyLYqGTQ++jnywy/jP2W sLMpz24R/v6sVTV8fcHqWUHNqwbZQOdR0agRAK7YTtARb1gwbfq8T3RUVfebmV1tC0Uo2 6pYiooDjw1imAM70kUQEzv0CUUGPY5hElT9pjUzQtZR6wESC8zShbblCZ4c/6Ng59+RIY dpFP1qXYp0aX2POkTzeus55YSUjYp2mpeBxj/cP/mD+gCp7K5v3YnaeHcL5SsdSnwZw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=flapping.org; spf=pass smtp.mailfrom=flapping.org; dkim=pass header.d=flapping.org header.i=@flapping.org header.a=rsa-sha256 header.s=fm1 header.b=LTTrns7S; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=QxcaxBot; arc=none smtp.remote-ip=103.168.172.159 Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEAEE60A2606 for ; Fri, 30 Oct 2026 10:05:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CEAEE60A2606 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=flapping.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flapping.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=flapping.org header.i=@flapping.org header.a=rsa-sha256 header.s=fm1 header.b=LTTrns7S; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=QxcaxBot Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 0C7891400181 for ; Fri, 30 Oct 2026 06:05:10 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Fri, 30 Oct 2026 06:05:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flapping.org; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1793354709; x=1793441109; bh=CYmf7zEV7N2JO5e7QjNKth9sPECuxuSbTlZTcxut18k=; b= LTTrns7SPkdtU3OnExJh8ofe/pEAmAjNZGD90lWxuwO4JF6dwgwbW0Tz114EHBmx dwQUn1s9tIP/21OsyLnDIYHZ2/F6tFz4TFIOjqQs6g8UoqjyhHZLH/Id6GObTVI0 yrSJkuRusXuRkDUVXEQ9ysHDydgS8PpsQ13Lw7xlJALKNo432I2wJEMi3sld0QmQ 1ihDjlZM7bZLw6vFp0QvYknoTodJKnBqIdVjbpoXZqyttmiLRvf1TjVwnLAq9CzO IJZnYUpGHvxHB2Ubaymwh+AcuZF+jyiONEb9N+DH79hG+KqKyNS2gMOj6PrvCpwu QkrY+HquqfSW4tRdxGYeog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1793354709; x= 1793441109; bh=CYmf7zEV7N2JO5e7QjNKth9sPECuxuSbTlZTcxut18k=; b=Q xcaxBotJveEQIpMKup3A4QP9vpRlUifEg8zao0R0iUqSZH+FWrhXsCvl3g7ecH0s RKI6LCmxPPpjzxRRnCtURhsygiuxGsgL+3pCnUwbx1QHaPW7XJ7I2EqkRm5cMTzP cYin9/nzVHcGTRbocs0PF3G5UaL6tBpUjnpl9+XbuWeJe+v4f2TkEcwZUnnF2psw 1WhfsILBuH/jSZMXMpKsN6MNCiEytumAq2i2G2W+LxkdOEcNUogDgKDzxaB8nK7S PhVCx8ZX+jGa3kX+mxySM2PgKF51tDidv0FLlZ0zsPKG/AsLqlGcy5aZ0Emy0+dn yEjLJ1AYDktjkF/kDovCA== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08; repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox; action=sign d=flapping.org a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1793354709; d=flapping.org; mf=PHRvbW9AZmxhcHBpbmcub3JnPg==; rt=PGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc+; s=fm1:rsa-sha256:lXbGMBqSnWoCA3KjRi0v+RhFn1Qzhy47raPa0uCgxe78heh nvaSOoPp7x4wY0Fs1Z0dFFzW9I4bGENUSR/2ZTo6vynsr1WWO9q/DqdilPJfEO8Y BHQb6Vbua84EfV+dDkJ5wHaxRjNelZ7J6z7UfC6pgtXeFPhtzGGK9o1kj/hSBav8 zM9u81n3XDmmcXAA0Fj5vgwaA31ShydGUPOzIbGewoHfoX1zx5S7vlge+65YJeIL Bd1+3LqYX6IXCilnmSNG1Ynu9DwTU+CxFlCmfrxjXq2N4bFaHHE96cFvtgv468Hj 9kLJCs4El5vyIDXtWwgF13m9P8eK/vWBwPHm+pA==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08; repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-transfer-encoding,content-type,date,feedback-id, from,in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:O+zVubfLIZG+YDdFFy25xWSpDtgbXwlawSh8FXN1sXE=:cbcMN57HhtchPL+P79PrPbn9la13DG4pgSMEvOD0+F4=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTF3XHbGwWOzLbWHktg+P4vPkKHpnO7jkRsVw+n74zppSuF93Bwys9kdl7GCDyRcTW gtTlKmdCUd6M21ElAe05m2OjkCo4/i2B6SZeq1DcJYCDFG0o64qhESJhf1AJPt/MfJk4OX igGM+6D+CLS6LtruurHqOOdOsaeaZk0qIyZlp5WZBYvS95+DEabdSSk+gUd+TBsLkJ2zcb SbxIFoFm3C5JWamieI9BGJ/j9n9QamNiMCbGcFxS/0qLrwuT3paqYIJDhwy9UCUe8BZo2Q WAgMFTVYky66yHBQnzGOM/IzUi2mSPflAo6q4/vLjHp6G+NxaUJ4HXedhoSgGgmaiH6MBr pz0Frbabu0eXzJxlYrgotW0ugMy3XXL82q6VsMOxLwf2e2+nThVgP+dRik8V+FLcFmtgbq r+t/9Skl8V8Ox7SL65CAbUDhSDNNs198fDWQL3vHR+HNK+l0yzz15HCzdzyymi5jnx1j5L 9DqWIZ54fNY7LJ3YH2igsx0SSfSGvyrB4UQTVUpSFKnMu4Ae0Vpfy9fDvJ5X4IvmWebPgT ppVl7IT1s2l7gyet7Yc50+QU38mehBpUeQ3YFgdfHAqwK8hW7+0OAsrhoNJUhRotOs1wUh rOAM0ePvoplpVJDPDgs62aKrUFTYifE6M0NCNSfAOyR0mUFG8NEnRT7vGh5g X-ME-Proxy: Feedback-ID: i51fe4b43:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 30 Oct 2026 06:05:05 -0400 (EDT) Date: Fri, 30 Oct 2026 19:05:02 +0900 (JST) Message-Id: <20261030.190502.1711453613571853758.tomo@flapping.org> To: mike@fireburn.co.uk Cc: tomo@flapping.org, a.hindborg@kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, ojeda@kernel.org, boqun@kernel.org, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, aliceryhl@google.com, tmgross@umich.edu, dakr@kernel.org, daniel.almeida@collabora.com, frederic@kernel.org, tglx@kernel.org, anna-maria@linutronix.de, jstultz@google.com, sboyd@kernel.org Subject: Re: [PATCH 9/9] rust: time: add ktime_get_real_seconds From: FUJITA Tomonori In-Reply-To: <20261030075750.356854-1-mike@fireburn.co.uk> References: <87h5jzx5gj.fsf@t14s.mail-host-address-is-not-set> <20261030075750.356854-1-mike@fireburn.co.uk> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Fri, 30 Oct 2026 07:57:50 +0000 Mike Lothian wrote: > So it's the case you described, Tomonori: the format is fixed outside > the kernel, by the dock's firmware, and what the caller wants is an i64 > of seconds since the epoch. It never gets subtracted from anything, so a > seconds based Instant would only be there to be converted straight back Right, you only need an i64 of seconds since the epoch and do no arithmetic or comparison on it. A type is useful when it guards those operations, and there are none here. So the plain function is fine with me. If a caller that needs them shows up later, we can add a type then.