From nobody Fri Dec 19 17:16:21 2025 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3545314F112 for ; Thu, 6 Nov 2025 12:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762430957; cv=none; b=h1vQjoshMKVVX06WqchNVowZovIwf8zGbM0rsQZcQWZ2S+RP+m+fHvXKaxO2LmUy6WklSNPLjX8UZamoa1R7LyT31bKL13UhMckQ5mWFBqi3F1ygw4FXf88c1TltPnMXiCJTR5sztfqVRJY5MQVbNcVpLbORgsKHMLBmp5u9onM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762430957; c=relaxed/simple; bh=Z0o/E9+LDcOuXxWJgzK2F5uZfv78/HzyRC5P+XWCMEU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=eaiMrGU6CIgMukNQOaIUU67sYEbw18ogmD/oUaDAlqb1IyXV/AHSdOlDNF5bvFFBDPb6ClwNigSwiA6BFp4cpYznmZ5vlLO5dKLQreFY8HgzF77bNbEXpRj15DCfG8u4VuRaDh3BF3xMslI6XQrbG4P33uGxRKBrSJ9WxgutJ4g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=M3Rp+qIs; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="M3Rp+qIs" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4770eded72cso15392165e9.0 for ; Thu, 06 Nov 2025 04:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1762430954; x=1763035754; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=UEIGWJdzKObiVmPMXxxUBYNvOzm2LzV3LBkcvQkVvV4=; b=M3Rp+qIsOC0ZBekbOmJEh98LgJsM9RNyt35C/V2yh9yIshhs4Xpxz/Ox4vmiD1gBzf 1SU0v+Ol5IKDklPiHmDXw/gDRhL5Mkf17cNx9oN5hPd3aip2vp/MLhRhGlfzn+3BhX2o sRybnbMw6O9jo6NoBF+LX3Gy/9Nn1ZbyxaCk6OoF2gVjFJOcY4sy8yBPb+jwvcXJBCja sXfqhmPcQAh706/Jj7yFFMjkP0TqbmGbmJzYvs0Odq6mdeVIMtMlitefBg4wBomPScP3 gavI1LWjFFegKwAaRsrt043Mi0dlc2D7AYYM7gNXZKNWnwsuVuA/dE4o+s59t9E9Pwzd ERfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762430954; x=1763035754; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UEIGWJdzKObiVmPMXxxUBYNvOzm2LzV3LBkcvQkVvV4=; b=ZARbZzaUGeq0w80EOfSXXoFm909zIfVIltJ5LDlEuutJ4GzPWE6zTeXJ4L1dJ0yM7q rxj0VfBVw294f9PrhTT0QQXn6QYmgzlL4h2fSE0XPKZx6JgSAbwdNYswSqPRFjHLmD0I 65gaQmq5TfjH8xhm8YUIqZw40/FWWKDkk6QPH0o4PN7y3fPzENZ7+lWkPn/9nc1ETAGF FOvAkamSZTNPLz4t1CH3LHJ25S3vgQmXW7qcJnSkHRiSV6tJ5dt0AgK3OysB1D/RKVrD ZoaIokuXpbgCmHoDbKrhcfu+oiyFTeL3isOTua4tUEoeW0cAn95IADjMSksFCj0B2/G6 Dx2g== X-Forwarded-Encrypted: i=1; AJvYcCU6mbScCOOCWx1UU10SLMyC78eu1uveGC1cSR8YX6ZY/LYAXYX1XCkMHDR9UHjFD7JNxTb/js+l0IBas40=@vger.kernel.org X-Gm-Message-State: AOJu0YyNcJc0Xh9TXKaie69RgWQuG5H4u6IS+oyl9IVa2yNTblaKvue8 lKQ2hIyeUWrZfXuX8/K647dl7ENnmXDlkNjNhTaaZRxHHn6MXB5qtAW44B2pqz9G7LHDhOvNJYz xNE7XBKtdyafiRNlzJw== X-Google-Smtp-Source: AGHT+IF/vvs5ufvq/lcxCF7mkh4haHXUhg89Nr/pEBXemvk4J0V8PG8Q476djBJy/nxJnOv60LVcoNFPcu2z5sE= X-Received: from wmlu17.prod.google.com ([2002:a05:600c:2111:b0:477:17a3:394a]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:3b8b:b0:471:665:e688 with SMTP id 5b1f17b1804b1-477620986a4mr29031425e9.17.1762430954690; Thu, 06 Nov 2025 04:09:14 -0800 (PST) Date: Thu, 06 Nov 2025 12:09:01 +0000 In-Reply-To: <20251106-resource-phys-typedefs-v1-0-0c0edc7301ce@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251106-resource-phys-typedefs-v1-0-0c0edc7301ce@google.com> X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=894; i=aliceryhl@google.com; h=from:subject:message-id; bh=Z0o/E9+LDcOuXxWJgzK2F5uZfv78/HzyRC5P+XWCMEU=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBpDI/m/ZEjTQJ05OQzP8gJQIqLSNxfOaV1KqkQU 2IMr1tcdieJAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCaQyP5gAKCRAEWL7uWMY5 Rr/bEACOBXwt+CkUtft0v9bWbVU4nun6sj1tsjRImXUCG4esWt+YpgiQX/4tH4+rwOgX2GU0IBh 0DWSEDoO8GAavDyPlvYmwLuEmcQ4VPNsk5blbCwmf3ZOBuehVrn+UsZ4tK6yDC6yW7grQNKFGsM Zsm/Sf9p6sgN7qFpt5/9qJtCJ/FHY5Y48UrwF2XMmE97p80KWW/Uc1TyMLKWeDelCUbEj+tPaPp t0bN+JA+DmHlL6xuWhv3VD+jIuy5siB0bJU2swlZiWNMmpoylZTmBEdcEM3lp3lUqL8nfGtx7E6 URJnrDAHdiGl/Ax6guf5/ioMOOWANC5kU3IZ8Tsr5KwWR859vsYxmLrLFFagNWWFBazCmJGrHGQ N7cK0gOZCev1q69TuVks26vIN3erCTei0V+ip30sRrf5iH9MuocmLVLwqbrACUVvlOOJmzbFxL9 pWC3ZXs6RTA1xv8LXKTGpWrXVOQd3QjrfahumJWDHb9ltKjD5eo50w0eFauCvFbjO1oEyBLOGeo h38FzYcEeUm0CDJHc4EVF0ZGVRLM7Xsp3A03e2H363wWIKCct5RQw9U1wFWGQO3KrmdkmAptVUS KSTsBgDsMthPRk5LFuKtR+50hjMYLWldz/N3AwMrXG6qTiSA2FXg+qO3cAwarDR+umt5JzSyPjH 9JWxANRVwogVl0g== X-Mailer: b4 0.14.2 Message-ID: <20251106-resource-phys-typedefs-v1-3-0c0edc7301ce@google.com> Subject: [PATCH 3/4] rust: scatterlist: import ResourceSize from kernel::io From: Alice Ryhl To: Danilo Krummrich , Daniel Almeida Cc: Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?q?Bj=C3=B6rn_Roy_Baron?=" , Benno Lossin , Andreas Hindborg , Trevor Gross , Abdiel Janulgue , Robin Murphy , Greg Kroah-Hartman , "Rafael J. Wysocki" , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Alice Ryhl Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Now that ResourceSize has been moved to kernel::io, import it from the io module instead of the io::resource sub-module. It makes sense in this case since the dma_len isn't really related to the Resource type even though both are sizes of allocations in physical ram. Signed-off-by: Alice Ryhl --- rust/kernel/scatterlist.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/scatterlist.rs b/rust/kernel/scatterlist.rs index 9709dff60b5a9a02ab466f3e4f1f52ab2e440d5c..196fdb9a75e788cc31093d83e41= 2ff4d6ca56b75 100644 --- a/rust/kernel/scatterlist.rs +++ b/rust/kernel/scatterlist.rs @@ -35,7 +35,7 @@ device::{Bound, Device}, devres::Devres, dma, error, - io::resource::ResourceSize, + io::ResourceSize, page, prelude::*, types::{ARef, Opaque}, --=20 2.51.2.1026.g39e6a42477-goog