From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 C00F2176ADE for ; Sun, 23 Nov 2025 09:25:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763889948; cv=none; b=kQ5iDM1VeFkiszDePq04J5OQrrvgHHIrAMLM7BnYHqu3aAq64RLWOHp66eij+KDAnTLqQmYE16XshPB244h6dmZqgDYijw13vwLQkdnzCyqNvYvIVX1qv10RdPrpLzEMnQOCgZDv7ZlzGhhX2dfyX5vdi7Jc1aFD9OU55PMOlN0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763889948; c=relaxed/simple; bh=wTWM3QKYInKA4bBe2L2dZ9eCGX4hj8ZHtci5RLiYGQU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=m+WbyCde+PUauc6u0gwiVT81RWtKfhU+nBhe+wgAPrxaV38IoDnNPBrOAuw8lAU25GMuRp58iDVRqlKudK1Fcky3U6S+iP2q7BJAua9aKg7Qr3KKQISLEzYHgcJpP/oAiXGvybp0CJoyQAc5sA/ylOUlvplhZR6mWt2YsW0a0u0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aQDo6+PD; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aQDo6+PD" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-29812589890so40255755ad.3 for ; Sun, 23 Nov 2025 01:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763889946; x=1764494746; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BHBuqhkFJfYaNnj9M7q8FhjsYY3lIhigbe8268nPJsA=; b=aQDo6+PDcehdU8I5RKMouIxayplKOMMKfEcBz2lZB87b0cCOPIwVTTdGf6uoyRETbu HUDeAw9lYgtVwww6rNOlYQhozpKSax6WoLl/uwtTLmS5Mu0M350ACJxhzcoQOYtnDeZ9 Bb+jFItkhpqLWFQcBSFqXljdjvcfoYdYlMgnSEKItzZ/vttipCbqWIN+AOzxp+++GzDi 17KGvz5FiE45TbgELI5exD0AZ+/Lom0He3rzCBV5IWuaRecEO5qcnpwCcqzATvi9rp/2 rE27TrdO6thYIFsBds7i4Tso2u/DcHcog2g6wHXwxbRfg3qMo0MwWocQ93Q41/D4Q41N potA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763889946; x=1764494746; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BHBuqhkFJfYaNnj9M7q8FhjsYY3lIhigbe8268nPJsA=; b=b8cg62io5SkYyhl0RyUO2DR7R2LPu2p5DEJwfeYW4z+cB7Ac/T1L+oe1M9Wyv3avke tAewrTIByUOY2zy3KEUJDMHtndmapauisVnKXCYUSySuQ1aluGWakZwQhk1h2yFEqfjq 1+tW/su2iXnV1yWQUmncAxZIldB+06qWJ1Ukl6Dq41d5TZWOKWrIoMblgNgfvfFtg28Q GqsCqTvgfHhyHFWv6TZFD5aoM22/uWn3LFESOGS/aUfWyEjinXuT4q6rgJgk5D1hkyOd uH61DPJsourTLBsbSd/5wPHo7sqsNd1GAWOc+1FEH39Nd64s3ZPqt8Uvu5CojwAYKRA4 bgNw== X-Forwarded-Encrypted: i=1; AJvYcCUSzhZEPHhA+A/Y5k7tgfoontBymRc/vog5ZNT04m7jt/R6b+7wrm/9HrnFs6/vU1n1P2CRLGIhZh7jrk8=@vger.kernel.org X-Gm-Message-State: AOJu0Yw+KWoorltxyB2KtRetFKXKmcpHvQk7zSXUFHpgkoOwnx6ACizD OoUY3FhYqa+98l6K+t1qQP2IbWD/zZ6Bnvq152XTSEed+xyYvSbgsor1 X-Gm-Gg: ASbGncvh4LNLEd6hlAs2SGddDA0rZ/1VmA4UJb2W+fhMOO8kCf8+V8ds6G4DQTvAxnQ d6k54onGDRhAv9grORiv3Fj83HTGdAxVCRSyPERQFMQJMsw+vCAk8y0uqqVWb6dKJAxX5csKUwk MArkczCgwznU+XApBHv+XNTNkijhr4N2tDZn3kkw1S1ig45xbRKItFyzfoctf1UvSqpypUyYoLV jFCZZTfrMBiFtWycr4HekADO+TLqILpYs9X4nNKrFS8U9/kRa3MFr7JkBv0pF02a2FQk8KQUSyA XCn1+rxLtshFgBbIT8oKDwAJgKRuwYBSCgJ+Q4f9yrPZgPnJXj+06abxrqK1Av1oAHj01R/RgpB FrVlX6k162SvqkeW24+1164ZmBcIGOA2vnuO6V37TmS3yqDCDGuywjZVuPh3YH3vNN4flIxei9a beej1gjx+NXVH8j6yJy3VHCu2TZg== X-Google-Smtp-Source: AGHT+IHeRFkTHVTA6Srefmm0HL5WijnlyHgpdTjb/dQ8CxktDbPnk0dZz+0OIDZ55NxQOWacfTdN2A== X-Received: by 2002:a17:903:947:b0:28e:a70f:e879 with SMTP id d9443c01a7336-29b6be8cb2dmr88701485ad.1.1763889946269; Sun, 23 Nov 2025 01:25:46 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.25.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:25:45 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 01/10] drivers: android: binder: Update ARef imports from sync::aref Date: Sun, 23 Nov 2025 14:54:29 +0530 Message-Id: <20251123092438.182251-2-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites in binder files to import `ARef` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand Acked-by: Alice Ryhl --- drivers/android/binder/process.rs | 2 +- drivers/android/binder/thread.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/android/binder/process.rs b/drivers/android/binder/pro= cess.rs index e5237e9ec552..1409129ff82a 100644 --- a/drivers/android/binder/process.rs +++ b/drivers/android/binder/process.rs @@ -27,11 +27,11 @@ seq_print, sync::poll::PollTable, sync::{ + aref::ARef, lock::{spinlock::SpinLockBackend, Guard}, Arc, ArcBorrow, CondVar, CondVarTimeoutResult, Mutex, SpinLock, Un= iqueArc, }, task::Task, - types::ARef, uaccess::{UserSlice, UserSliceReader}, uapi, workqueue::{self, Work}, diff --git a/drivers/android/binder/thread.rs b/drivers/android/binder/thre= ad.rs index 7e34ccd394f8..033af3ce352e 100644 --- a/drivers/android/binder/thread.rs +++ b/drivers/android/binder/thread.rs @@ -16,9 +16,8 @@ seq_file::SeqFile, seq_print, sync::poll::{PollCondVar, PollTable}, - sync::{Arc, SpinLock}, + sync::{aref::ARef, Arc, SpinLock}, task::Task, - types::ARef, uaccess::UserSlice, uapi, }; --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 56E6425BEE7 for ; Sun, 23 Nov 2025 09:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763889964; cv=none; b=WY4wpM75ejuScmRp8lwatNpLd2XCjRo52mgRFsEkqyjmNlS3SJIbJ+K64IaNvFKW8Px01+ZkRmHjiUsqSQXi8dbJYFBE6wSOg0ZlGiTdmor79Q9FbcoH9xzgSEYoV2Q+eIgMMe0gcOp81TWNZ5Ogb3vYavnjd1Xj7UTtB86VXi8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763889964; c=relaxed/simple; bh=IPEwVncrH6ErF+52BbShzNtxbAYEnVjh2jDi81dnwhs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AsGshEKcEirzDZ8Aw6yfpHiVl0GUhB6kiuO8pCAuRfEsD/gJQtJ1+NVOrFl05mTN5WdTLhmEACPOcvNT5VI9MHFoEKD+7UUNbul8jkCUx8rLbSKU1AJ3UPBHKi5y3UZCqDM1p41h90Q8y82rhFugvMtf2ME3/HRbbmBJ/yTUGBg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Nmj9gQSn; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Nmj9gQSn" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-29844c68068so36704285ad.2 for ; Sun, 23 Nov 2025 01:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763889961; x=1764494761; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dTc0MgLeOubcwcfQp1wa7TpaWq1ZdIbTR1ydG9HUjeU=; b=Nmj9gQSnA7QNCb1Dh+6/n0OnFhYZYyF9gh3vEx6tyGp8L+C3NNnyDfODYiUUmDEXXN ZzQUnpjaSGWFVnaUwww+HiswrApMKwErt252O2s4b6EttTal3WZoWy+optyYR0wHTKmM gCfjTUqd5ZF8paL+WldB4/oYL53CuawhPPIBMMO2yTQlGF4zGnafAErMmhpPtdP5pbDB u3bl/aSLDzgxONQ6mFuKJzEmJxb5j/CPY91ZAMuFYDiqEADqvayQ46T3D+qI2VpnFJK7 CuMfrr9dQZ6+HdJ6Rjb91EP1yjvWFcIVC+HM3ob1pZdSfcclE3cQk4/XvwB/nbmpmKw6 Nsew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763889962; x=1764494762; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=dTc0MgLeOubcwcfQp1wa7TpaWq1ZdIbTR1ydG9HUjeU=; b=io0eW/H0GmbiEcynNscufapaHUsvfviAcNMfCAnZv8cnTxRlLTsw9touiWL/j45Vnv 5WsFsOWIKNCjqnzPPby0F+3k+ndjp6fg1SgiWag7VHd2LRWqoolXrLDzdpDoz7Cshsem VQgwGX2q72Osez3R/JAxIboEfxE5UQLDX+mrATOKLh8Dytx8Apu/GwhGpMaQkhF2OENh OvdeAMGpG9REp36mB/DTW2ZHpcC76SEG4mhJV5E4l/GIIqVBdlcm//FV4Y+QKoH+wnQP 8L+SKTtPFd9CEbh5r8QBz3Z0L/dgaty0VLwXltFtpRc0mNBNthBfEZ9FI+bMZ6AsxCpN 3auQ== X-Forwarded-Encrypted: i=1; AJvYcCWTylvrLjQEyPGya6qSReD9cWMGolyxOzHIrdGbdzr5nWy0xQNqSJFe/cVXFcRQI6ruajnBP04E1js8Y7A=@vger.kernel.org X-Gm-Message-State: AOJu0Yyt0PogJ2LHlcX/HsaxDCpsisLb2W57zZl+RrhbRHPlPorrFEE4 3JuAUCs99CwcuKpjir8MTRI3WutPt+mdUQfSG1/xhq9nY3LhntYg5Mn/ X-Gm-Gg: ASbGncsNZydbtpwNniMFyDQqIoYFYMAK4THeCy1IMA4PJdJ3vgJNbqc4D51bv1DKBvL R+RXvyWQV1+ZLRIF9gJ2AD3MZ/d8deo8chYF9QQbuOf6LjCq5gFyUndebnvnGRzHl5ljoD2H0xU vRhkMEGjrNuifPP7uZ6FeajJgjepTIcSc6ZQucr77sI6mDD+MZ5ypKAA0Fo4EIoSK+6B+Da8GgC yUYxgTOps5Fd2svYvsf2kPlylq0WDfevAQSgxCAgOu794hVgHA7aKBgbqTbZFvGSmO3NaSY/O4G L7Ny4mDIc1IbvfZ4QKv2knwRQg0h4WNj1EAMms1qZ+2LLFc157VBY09E3Gk87tfxk1Vk2xIvx+J KiUg4FdY4i1C4M/CHDrlgB7qody6KfB/rPLfD1y88Di3oIvWEGQ/QAPdMpeKYy39R/sEkhoitR8 7Rmm+Xt2USTk14HxJgimSEycdjbw== X-Google-Smtp-Source: AGHT+IFojSe5onG6l0184Qd+32Us2flx99qw215kwkBj86ninqiLXlY2kvADM9/iJBS4TWCcsIsZyA== X-Received: by 2002:a17:902:f548:b0:295:4d97:84fc with SMTP id d9443c01a7336-29b6bf3bcc0mr89250955ad.32.1763889961522; Sun, 23 Nov 2025 01:26:01 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.25.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:26:01 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 02/10] drivers: gpu: Update ARef imports from sync::aref Date: Sun, 23 Nov 2025 14:54:30 +0530 Message-Id: <20251123092438.182251-3-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites to import `ARef` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand Acked-by: Alexandre Courbot Reviewed-by: Joel Fernandes --- drivers/gpu/drm/tyr/driver.rs | 2 +- drivers/gpu/nova-core/gsp/sequencer.rs | 2 +- drivers/gpu/nova-core/vbios.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs index 0389c558c036..264c2362237a 100644 --- a/drivers/gpu/drm/tyr/driver.rs +++ b/drivers/gpu/drm/tyr/driver.rs @@ -16,10 +16,10 @@ use kernel::regulator; use kernel::regulator::Regulator; use kernel::sizes::SZ_2M; +use kernel::sync::aref::ARef; use kernel::sync::Arc; use kernel::sync::Mutex; use kernel::time; -use kernel::types::ARef; =20 use crate::file::File; use crate::gem::TyrObject; diff --git a/drivers/gpu/nova-core/gsp/sequencer.rs b/drivers/gpu/nova-core= /gsp/sequencer.rs index 2d0369c49092..9c689f0b21ab 100644 --- a/drivers/gpu/nova-core/gsp/sequencer.rs +++ b/drivers/gpu/nova-core/gsp/sequencer.rs @@ -14,12 +14,12 @@ device, io::poll::read_poll_timeout, prelude::*, + sync::aref::ARef, // time::{ delay::fsleep, Delta, // }, transmute::FromBytes, - types::ARef, // }; =20 use crate::{ diff --git a/drivers/gpu/nova-core/vbios.rs b/drivers/gpu/nova-core/vbios.rs index abf423560ff4..7c26e4a2d61c 100644 --- a/drivers/gpu/nova-core/vbios.rs +++ b/drivers/gpu/nova-core/vbios.rs @@ -11,8 +11,8 @@ Alignable, Alignment, // }, + sync::aref::ARef, transmute::FromBytes, - types::ARef, }; =20 use crate::{ --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 3995528D8D0 for ; Sun, 23 Nov 2025 09:26:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763889977; cv=none; b=gttWXBY99PYqm3PKk2vEppvA2U3VjLNgolRje8tq2fsr1vkZrNyGqNuM0nbGnXSRx1D5qDbjhTkz1rwDqQSLP3zhlq5QFlT436OL5oC8LMzj/u1W+nqVUTycWltSYz8Sfu9+LG33AYI8mDegroFxySYFKS3l3Um6B7od7Oq0/7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763889977; c=relaxed/simple; bh=hhfQrE5YZ3yIRunnDvDHhBDE/s9hEASQ0QrKj2P8WKM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=J7px/red8plZZu0A7F84RS9c21ismfTKbUlJMZfdfIYH6cY3hKqxT7UR2rItU3thIMXpQErAGISxjo1bIdsGSxnBEgEOK2tAwAK8z1w2tS7ZNG6zklYBodh39zIjHnm+ojoFHGoEQrRj8rF81vcJb5QYjiY+cwTkdjxg1XA8ZTg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kiAV9r6F; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kiAV9r6F" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2958db8ae4fso33214115ad.2 for ; Sun, 23 Nov 2025 01:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763889973; x=1764494773; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c+x/h+SXCaTPKwxrPZvI12zlFOq5qesnIaQFOZDdW/8=; b=kiAV9r6FmOiWCtQ6Ze4vNr0M53qDbdtc3997baVpmjkm3EjjJVhEOmQzAttiz4wMMl tgKKFYLpvHaOYEvfgplEMbF+CvFCdvcWHGHDCQAL8x5z2VFYXkrzF4IqZIuoBivGtJbr CckWkDH8RLjnhKTWJFT1rtOUddaoKCymFuqE+rkmFfPr5BQOOIFNQZihmuyOP29GFQ7x Yu8y740jqi+Qdh0CVdvt6i8VBs4JpB89zhMckAEzb6WvZ2hVGnCDUnBhwPkwEEEPY2Jf vqKwe29WtM2Yqn5TeLV5rt/AoNHLEifWSXzPnBrBzHKj8HJWO0QYNwifucYtF7Heg7aI Ablw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763889973; x=1764494773; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=c+x/h+SXCaTPKwxrPZvI12zlFOq5qesnIaQFOZDdW/8=; b=nIoZu57ZGX4Rj+GnwnfPShYkGf9bM1STtyntVTE9eyLAFOuD7PKcrAsawcVy4sGGvZ hy/o/HvMymWgsYg04hbOqZ6wl3y6bo49TSlrJw7l/OqqpUeFdTQ8b4rTGRTBy0u7cVF5 FpLfP+Pbc8bUiZGpXtu4lA7zeggkD+M6WShbLBPEb/td6dCVfcwFBw1Jz20T78jKfX06 xeTtES+mr4+2eiY7pursVKaSAmJkSewZFRgEzdDQCTdCI0/Scj+ttF9P7T8ec7eGVAat AoVom01f+/Xu2mC6YAylmtzrODU149KLicqiTUjpWgfDUhhQZPz5cAHyRGdtXTc7blpj cuLA== X-Forwarded-Encrypted: i=1; AJvYcCXgrVn0v15wes3tyVu9zwlabDw48L4ZuVUghDxxLqJyOVQD4grZEhJpmpg3vozHOzY0KtdpZFPFU8z4LEQ=@vger.kernel.org X-Gm-Message-State: AOJu0YxdE3d9qMp1bZLen/OoEEShUcO9tECwUPiXgFtu+oR0hVskessa pzGSy7d1ejNazjKlSjkRf6qvsw1y5mAhUrYZ+eLuYkwe1SaIsmVxgBMr X-Gm-Gg: ASbGncthAOZ2RaHjeqPPR9hjreLlUUjViF5AqOa4UJjbPRkKRGEziMHzWs0LWGX5adO aRwr3Zym4WQy5e5NS+4xcrvsabo2DefYyX9VmiaK71P69QL9v7FZY9dPnZDAbJL9xrVXK4Swalc 2tPyjZyMiVJlaLAx6HuZuu8JiwEjBd7DX6vai52KO2GaH5CQfSeUJD1e8kTwGUv03RratolpmS4 0dSo5IkkZQXxbfVsTVXRRpS1NCX9N2h6UDg1psLpJCPlSEfUUZ9P8Ajuot37T85BL26xsahtERB 99JgwRIi8yhqwEwJOElYNRQ6VcHb7p4zOTkFHSFDzJvfcBb0rd7wmjslRNCx0iQvgYsTkdLNVY+ I0JPykCE9ExoSkOkmnzbz7OVzqv+vxeLeui51VGf7EDc0DTub3AMNEy+630n1FLXmCaLzF/Umf3 kyb2QgzMBw4yNKLq1VhAreLrY2HQ== X-Google-Smtp-Source: AGHT+IFvuN898s0PRn7IHqlJzrCusouHL8HLAX1/JMZBn/PsKfoSrrGmFHNZ/OFvx15QZ7pZgA79MQ== X-Received: by 2002:a17:903:3c30:b0:298:8a9:766a with SMTP id d9443c01a7336-29b6c6b2e57mr86965995ad.53.1763889973533; Sun, 23 Nov 2025 01:26:13 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.26.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:26:13 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 03/10] rust: device: Update ARef and AlwaysRefCounted imports from sync::aref Date: Sun, 23 Nov 2025 14:54:31 +0530 Message-Id: <20251123092438.182251-4-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites to import `ARef` and `AlwaysRefCounted` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand --- rust/kernel/device.rs | 4 ++-- rust/kernel/device/property.rs | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rust/kernel/device.rs b/rust/kernel/device.rs index c79be2e2bfe3..21bde8d95185 100644 --- a/rust/kernel/device.rs +++ b/rust/kernel/device.rs @@ -158,7 +158,7 @@ /// `bindings::device::release` is valid to be called from any thread, hen= ce `ARef` can be /// dropped from any thread. /// -/// [`AlwaysRefCounted`]: kernel::types::AlwaysRefCounted +/// [`AlwaysRefCounted`]: kernel::sync::aref::AlwaysRefCounted /// [`impl_device_context_deref`]: kernel::impl_device_context_deref /// [`pci::Device`]: kernel::pci::Device /// [`platform::Device`]: kernel::platform::Device @@ -540,7 +540,7 @@ pub trait DeviceContext: private::Sealed {} /// [`Device`]. It is the only [`DeviceContext`] for which it is v= alid to implement /// [`AlwaysRefCounted`] for. /// -/// [`AlwaysRefCounted`]: kernel::types::AlwaysRefCounted +/// [`AlwaysRefCounted`]: kernel::sync::aref::AlwaysRefCounted pub struct Normal; =20 /// The [`Core`] context is the context of a bus specific device when it a= ppears as argument of diff --git a/rust/kernel/device/property.rs b/rust/kernel/device/property.rs index 3a332a8c53a9..413221817ef1 100644 --- a/rust/kernel/device/property.rs +++ b/rust/kernel/device/property.rs @@ -14,7 +14,8 @@ fmt, prelude::*, str::{CStr, CString}, - types::{ARef, Opaque}, + sync::aref::ARef, + types::Opaque, }; =20 /// A reference-counted fwnode_handle. @@ -359,7 +360,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Resul= t { } =20 // SAFETY: Instances of `FwNode` are always reference-counted. -unsafe impl crate::types::AlwaysRefCounted for FwNode { +unsafe impl crate::sync::aref::AlwaysRefCounted for FwNode { fn inc_ref(&self) { // SAFETY: The existence of a shared reference guarantees that the // refcount is non-zero. --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 93442176ADE for ; Sun, 23 Nov 2025 09:26:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763889990; cv=none; b=pbhYmEIeAQKfdp3blETkwDe8U454/eynk0lQkvovt5xpWgcq2pu27B6qqnGLDzZGy7VOHM/4f79kWRVX2M24wXjoJ7j4Vq1g4/3UrMHkN/opLZbnunPjs+n8axg8wmEB3q3Ex33TGL/aApAYurhe7Q1bbtmOxxK0f/Ip7EBKV+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763889990; c=relaxed/simple; bh=jKBvFpuQLngjk0nEFK1PjUNzyF0X15TDwoo+drtNhv0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FVlrBnzUxgY2XjDel3VikKA5oKwOfMVPWowbJOwko8Co68Ti6JXQpNuFPqfnjPwUXvAu0M7yU+NagXdHyJvc7zxB81mJA1dpDdHor3+HIKDXWeZMYJzGD8YNfTtQmEq+LaOQtrp0H5xZOdymVp3t3NYry7WIEdiVboln+bUgy4Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=g08ung1u; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="g08ung1u" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-29516a36affso47740155ad.3 for ; Sun, 23 Nov 2025 01:26:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763889988; x=1764494788; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xs0t3Szo5vFHo7IPg5XaI/zhW3TrAdFJK24NyqJJsf8=; b=g08ung1uBsv/G0ED/cmalHaD4lENygaTCaXM5fwTBcoMyLZpY5PvGozrxH1KZknDYd pTmRSALl66e6tSKeLseZMUnMfjJSUOQtIEtAIuzcqo9btW4pWkXPqwg+CY+LELsRzqNt UnGjvcNDEjKlRI3Wk+N/vK2z3R8tfrub7pQbyr0CygxrLzbauMpuv3pPgJPE4Jpb5WQT E0sJpPCT/2H/x9JWKbO9XNgRcG+aLksur5M+9vpu4XSqTR7uxqGX6kJ4xBxnBh85PkdF RRsj65bjrENsAVa7pKKOaGt/fwVtIIxnq13MmkNZ75MdSOmC/k7mWKqJ8wouhfcc4Qbr X88g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763889988; x=1764494788; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xs0t3Szo5vFHo7IPg5XaI/zhW3TrAdFJK24NyqJJsf8=; b=H7sObHT604hRnHfo3U5osYHTNaiLNiR+ADj2H0h3uXWsFMNf0A5UVUBswqLzNRGzPF vxsrZ0NIrzXlP4taOutDxfdE69EVT6NEaZuGjTb2ZjtL48GA8y2wtiJNVKNCa0BXmePQ oGsdPuOOFqwIySWW8lRurriCohNwH7po9p7RE++JeYOgyL2oyEZDR76ILaCBPqunBh1B 8mcezz/DByu4OfXxLMf20MkQx7V18jaqW2JpEecqpQa5deHxUiijJPHRRWJw4RLeVgDj EfOoCKSfLeIpONPzPBbth/EVpH1JQ5IzoKnR4PF0NQHt/UQ6ApGZRin7p5g4XIj4Cq+2 91Ng== X-Forwarded-Encrypted: i=1; AJvYcCVT5syiT44kgCPy+30lf1Zg1joBuoOraSMNRpfBOIr5JP8Z7Xy0eVN2HJq/xX9ioJBfbEiDU8nQCWPuZZM=@vger.kernel.org X-Gm-Message-State: AOJu0Yw2EEd3uZOWSTUAFMX1/GCCsvFb9FQYPLzTnpy0ndaANTpjav7Q 3S+YcCfgMTvoC9mkv54kAoVx8cgYNi6NMZz6UqFBfMydVq3Wf8idX0e+ X-Gm-Gg: ASbGncsCuVrFpoacykZaMXuZjPBZxbHyhTEN5h950zqmS13G42UHBtTxexR2UHrJsxs 3hsIxpvPMTGfxpCOUfCac6geTDkFxu48XXj15HHf/SSqaF90J2XEfaq4cZ+jw9TdyJn9nzGFY/V K2Eve/z0TXIHLd3jeVWcYYn6/QhJHp1Okt3DR0/zY75Y5KE75KYz4ZBnSAUR4yP9QbA7GNvKLYT zHrI0wHU3b/FfzXthR1CadVlW8B3+N9ycxouxfv32GtpYx5yN9srPZksFEacLKuPOSH6p/kejh+ SMdW4rCb1LVLCcMIWPWK1mjQ/La3xhDyZ+vNg3bHRoR40l0UBJ2GAsYpfO1BxBmoT0/3U1h/dqF JxXK6qLyWBs2bkG2wmKGUrcjlEVqppW6fXXCmHB7LiKscatYZmV1t7UpNqWu6v/cD8ycJTngn84 +CUWSCUiqh3qSDog+BwJiwBi+wNw== X-Google-Smtp-Source: AGHT+IHrOOJNJDa2GgrTIgoioCLDvBuXEfSk2IH1c+DBdbSr+pLO2PBSd1zxccfzPHswbjyfTYl0aA== X-Received: by 2002:a17:902:ccca:b0:297:f2e7:96f3 with SMTP id d9443c01a7336-29b6c6b693cmr97059755ad.50.1763889987877; Sun, 23 Nov 2025 01:26:27 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:26:26 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 04/10] rust: drm: Update AlwaysRefCounted imports to use sync::aref Date: Sun, 23 Nov 2025 14:54:32 +0530 Message-Id: <20251123092438.182251-5-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites to import `AlwaysRefCounted` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand --- rust/kernel/drm/gem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/drm/gem/mod.rs b/rust/kernel/drm/gem/mod.rs index a7f682e95c01..76e6c40d525e 100644 --- a/rust/kernel/drm/gem/mod.rs +++ b/rust/kernel/drm/gem/mod.rs @@ -253,7 +253,7 @@ extern "C" fn free_callback(obj: *mut bindings::drm_gem= _object) { } =20 // SAFETY: Instances of `Object` are always reference-counted. -unsafe impl crate::types::AlwaysRefCounted for Object { +unsafe impl crate::sync::aref::AlwaysRefCounted for Objec= t { fn inc_ref(&self) { // SAFETY: The existence of a shared reference guarantees that the= refcount is non-zero. unsafe { bindings::drm_gem_object_get(self.as_raw()) }; --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 E6A35176ADE for ; Sun, 23 Nov 2025 09:26:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890002; cv=none; b=Vd1gfS5RrBhSGNevBl50vsk4GCR0Ns2bPUDgXL/1GGAmfCtsvTqLySdKexswGN1WCH/KgXYZLc06rDTymNIRuJotqpTEnatBciYNx7hjr+BepvcWlYs6SRs4f/H2xIA/L71aqbjLggUv1G+ok8yZacogO3SCNoJM5f8nLPX8KHg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890002; c=relaxed/simple; bh=vKoO79hHEPcCQYl/tNMLa4IXudiHam4RZkBRwZbei0g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CAVf9xq1cbPIa933EcAQ08rE8AGj68Oqy7etjU3Ux7BXR9PKFhIDw1aHYOufBoqf5gm9ap12Ln8UNctnohwyWsRunb4ecNJimMB77tv5q5DYD9UWqGXr1cv9rirSo55PGvG577yAetin7cBgPC5iQ8OmhdvSjWg5VTD5+lH/ZNg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=l1syOFK/; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l1syOFK/" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2955623e6faso39459515ad.1 for ; Sun, 23 Nov 2025 01:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763890000; x=1764494800; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HepyoJQ30V+nS3WwhUyswnLGOzdzEO2vo/wcuCFozBE=; b=l1syOFK/G37q9PN7BrZKA9mj4Be5qzWE5IlcmClTr8OeaMahODUx21koQqvABB6wCX 8ClhO7CfqhHbFVZjh0pJT+jBL88ySAgO64dYzaPbJHiMFelNsX4PfV/qde5i6TjfTyVT k0DLwAiciToHUtYEYYj7TqTUHtYbiLMyguYVVbnt2M5et6ewgrZVDL2mQETplvbm43+W BUCFARN9c+mRQj2At0Pq8OX15gmydPNXTzK56E38OEBL+JwB9a3Fd6kBNW83saevUhoM VE+HTbAmP8PbY1x/9cEH+ZhpKxUemc0oFlwNc0bCpvTUn6oOFJ3G0vBboNZDiZqqWSp1 3/kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763890000; x=1764494800; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HepyoJQ30V+nS3WwhUyswnLGOzdzEO2vo/wcuCFozBE=; b=ql8T0sdszjtnYxjDuzXXC58Y/bbv8pM4gRpzfcStcqmayrV4Fnaf5zBYYDFuvN0okS SEas+VbRP3QyN9oZmYe+RnlELzsGcyV3JEqLL0PxrOAlTeXwAzcTDKMOduJDYAd4R2Ms bz3czWz+7OU2VOCqhGpMtDmKLIZ6Ee9G+ovwI7TAhR8SOZqvidYckQuO36OjzC9bhw2N laB4HJaE37Pld8PTKuzDUvvqVoJpZY127fXOqmKcTinrm352Nn4848264dzzQG19Q1yZ FUpDhQPVh/5Dm6JGvqHfrjstJ+Nr4GdVXTX30i7niCDFFnmbgVz4zfZ7W+T4+iVWJbsG iK+w== X-Forwarded-Encrypted: i=1; AJvYcCXsFnfVFhWNWp+/ZHpPw+7A4LeGCT8+sxii0U3TKwHc6cChws/sIS7uIsTSWrTgvHY8qpObIyL1tukIFIU=@vger.kernel.org X-Gm-Message-State: AOJu0Yxop2ZUXw0p6cceqOb1JSoJvf63eEmcsyUZeSgdqz8kLLezfBCU DmZOdpn1qLgHlPhrt2RKUDGAWsEfo3W7B2MSxjcJkghqA0NUORunvAKW X-Gm-Gg: ASbGnctJ4jy+kHKx3WQWLWR4MK2lCFij3t00TB4GGHezcGynfCC+VQ2QLDZh2zf5wM6 MLWdiiFIZubhgo3GNb3B9/zMuvPfVH8F4iX3tf3ExflxyRbXHyiABda4+HeRcp3IbByKjkDto/D jXh9BpyRGeiGoCazMmol65NeUsBSjUG/bgSiDVEl3NJRA1AM23+PejbSMtBQKMWbFkBBvAb2HuY Twn/nwvgTdlr7oOUWZHphGacifI3ZTi2koh48S3e5QIP9KJKncidOxkxg+8VQZNY5csN3n8tU/S HVmr/3a9HuUWiqoReIS8Z1FRLkNOoyN7r0Mx8kUT6Jsqlgx4Ra/PBvnAKcudKF5/XYocntOp4OF c6DnAVeSprxuFQ4MFEvPZFvGCYioI/5BW9EywuPr8KP6g+xmdjTuj/J631ujhcpeOMr00RsRRRC fC2oXpvZnkJzf/Dzjp5jPcACuabw== X-Google-Smtp-Source: AGHT+IHnc+TnFjT4Ewq3NCmcVSOlFxFcCR7lWrTNRkJuldxiSn0BMR95iGNmXPyBh157L0RjhglO7g== X-Received: by 2002:a17:903:2c06:b0:295:6427:87d4 with SMTP id d9443c01a7336-29b6bf77fedmr93037125ad.50.1763890000307; Sun, 23 Nov 2025 01:26:40 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:26:39 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 05/10] rust: kernel: Update ARef and AlwaysRefCounted imports to use sync::aref Date: Sun, 23 Nov 2025 14:54:33 +0530 Message-Id: <20251123092438.182251-6-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites in `i2c.rs` to import `ARef` and `AlwaysRefCounted` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand Acked-by: Igor Korotin --- rust/kernel/i2c.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/rust/kernel/i2c.rs b/rust/kernel/i2c.rs index 1aee46f59460..c50ca464d87c 100644 --- a/rust/kernel/i2c.rs +++ b/rust/kernel/i2c.rs @@ -17,10 +17,8 @@ of, prelude::*, str::CStrExt as _, - types::{ - AlwaysRefCounted, - Opaque, // - }, // + sync::aref::AlwaysRefCounted, + types::Opaque, // }; =20 use core::{ @@ -32,7 +30,7 @@ }, // }; =20 -use kernel::types::ARef; +use kernel::sync::aref::ARef; =20 /// An I2C device id table. #[repr(transparent)] @@ -408,7 +406,7 @@ pub fn get(index: i32) -> Result> { kernel::impl_device_context_into_aref!(I2cAdapter); =20 // SAFETY: Instances of `I2cAdapter` are always reference-counted. -unsafe impl crate::types::AlwaysRefCounted for I2cAdapter { +unsafe impl crate::sync::aref::AlwaysRefCounted for I2cAdapter { fn inc_ref(&self) { // SAFETY: The existence of a shared reference guarantees that the= refcount is non-zero. unsafe { bindings::i2c_get_adapter(self.index()) }; --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 CBA2E21CA02 for ; Sun, 23 Nov 2025 09:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890016; cv=none; b=eUg42S1mlyyi4ObP+go/zc4Ep170LABDtOMoZnQMV/VSjvBnZRbOrRGhNgvn6Pmi42j6y5pUlEXau94TlPy8sWbpegKxnfDTumsrv/eNHwAxNQBTcbkmlgy/VRrgmSqtRakP715lJCveHxkVCjboQF2RFA1BIhnAJdNqn4oOcMg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890016; c=relaxed/simple; bh=kZYfkI2nCmz7qEGxmYNzPwIxYr9EHSD53GvUwikKHWw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HJeGh9bDISpePOmEYCKLj0PI713YwRUgYxGQbYB3J/VUeemK8INUuHH8M2XmW/sMbYmPLcl5AEVo77G0QVvQ+u9rIXPCdSppVuV8RINazv8G9UiUOxV+er7G+twq/TG62aZYlhXh31bvYCXL9672SICHriT09KoOI/KTqQKCtHc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Wg8gL3rt; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Wg8gL3rt" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2957850c63bso23976425ad.0 for ; Sun, 23 Nov 2025 01:26:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763890013; x=1764494813; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jcsZ1pYdc/lZZufwkk7hmx3zrC9Zk2tE9eYLDhtARFw=; b=Wg8gL3rtvfAG7OKuY3TqC9T58J5r3F7nruwCS3wUeqJ/0UtxF/rVy+ifrUj1zGAmZg Km/JjB4uUibg9z1sYgfXsWv6VWAfH9OefS0q2mo8FM4uL8K6tlV1LyKBbIw2SlAqMhPz jwqLjCoYdCpGbnmWYASyzsq6QvyeNM5vVit55rCNupdXmEyrlYnAWXO5zLWojFgrW7CV tB2Td85/zWw3O8FGgMG2ApxUpR5A0xF3l1mpJu8nNM2xJMVMGFTHBr+HnwDdVjntq0FC 9jPevqObnm8M+xrMlW4qtK3HqOtSMS9cC1FGGPBhPB+4IlG2vG2Sxlx4qU6mp9ePe7uB pELw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763890013; x=1764494813; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=jcsZ1pYdc/lZZufwkk7hmx3zrC9Zk2tE9eYLDhtARFw=; b=VSO/2mbA5EDuy+fkO16Yd5kgmC8SV5RTQmFu4gq+3BKBIkLhMVrDbDmwsVjVlnMsr0 WTlQBk2dA+EPbtNZ18sBRXNLUTcp4tgEUmw73WWHKFKY40LdXLV+qO57NyyxAz0XmWAN J6AeFO1HocZ7yaQoKVAcefD9vMXf/Do/Piou4dN+/2GMB4bC7cfEylD/HQ1OXVes/Q8S l/aCARk14ox+4LbgyJpueaAo1GzHm8MXTx0uges+wk/odyTqCBZawyfbBYDb93VncODg bThh1TQJaAc7zCb8+Y0E6Rb4avZlxrF5bBrsuCpoL8pyHTzD0vSSRR+C83ZsudePXhQ8 mH3Q== X-Forwarded-Encrypted: i=1; AJvYcCVprPorT7feOMjobPnzTFyO6OhG696uyouIRl6B76Ge48uUzP893nIl7TCFaWpk+a0rG0ETJ1TSrJMvZXA=@vger.kernel.org X-Gm-Message-State: AOJu0YxqUos3WUIqf23+KoC+hCOymUkdzxYv4EtcDTJknEP3Xxf97Zhf dMBC8eOvd5Z21kIrZ9O5trX77A2XhnfGb05Fpv9PWTVg80TjDmfcyuZX X-Gm-Gg: ASbGncvrBXoc5K2cFzLkdbR8yOfwPuFf/K9Lz/f2R9zd9O18AXafdrtSXCQjqHGVVEH UPoOaZ9+/vbgBuZ6Gw/9y7O91gWZ4EPurruP6jl2MqqfQ+HuuB1/nT0za7CWZd7kZBxKfvrS98x vvM3SDupQHSCsrCS2Y/Yv0YxhRWYEgIlxHkIgZso6FLJqPUuMmF+fbisD/MyrbK6jHMCAsrE0Bg EpTyq9+q/VHu0qpTjVql63b0tbmtUaJCKHaRMKQohx33S8K386naw1Q5TKwVumiEYDeZfPsBhur yX1HUK4vBUlhIWdLz1/g94+QdDuoNLvjHe6F9DTGKUZXLByH2fl6U7o1Q09cFdK3xuOZvJcsHUR G6WQC14PD4nRdA+QecH+1sFkZct1sfkU+20z7VrwbgPN78dqxHODhYqvCpAjT0dMBjKeqduwWCW 3oMq+3NIjae415JG0g3bgxy/xDrQ== X-Google-Smtp-Source: AGHT+IEPaSiAglOPtRohHhMD3F7poU82nQz/JA+b9mPjFhoImXk6hT3H7zPq8hH/JIUpP2uJO5DptA== X-Received: by 2002:a17:902:ef4f:b0:295:82d0:9baa with SMTP id d9443c01a7336-29b6bfa8cd3mr100768505ad.17.1763890013033; Sun, 23 Nov 2025 01:26:53 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:26:52 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 06/10] rust: kernel: Update ARef and AlwaysRefCounted imports to use sync::aref Date: Sun, 23 Nov 2025 14:54:34 +0530 Message-Id: <20251123092438.182251-7-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites in `pwm.rs` to import `ARef` and `AlwaysRefCounted` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand Acked-by: Michal Wilczynski Acked-by: Uwe Kleine-K=C3=B6nig --- rust/kernel/pwm.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/kernel/pwm.rs b/rust/kernel/pwm.rs index cb00f8a8765c..1605d13d5d64 100644 --- a/rust/kernel/pwm.rs +++ b/rust/kernel/pwm.rs @@ -13,7 +13,8 @@ devres, error::{self, to_result}, prelude::*, - types::{ARef, AlwaysRefCounted, Opaque}, // + sync::aref::{ARef, AlwaysRefCounted}, + types::Opaque, // }; use core::{marker::PhantomData, ptr::NonNull}; =20 --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 A2CEF13B293 for ; Sun, 23 Nov 2025 09:27:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890029; cv=none; b=iNMn/1bMvY24BiIqP0e5eG5WkdWxRHl5comeraDIEeqz8+vWTLvoox/XiwF4jZxR5o6hI6+bUZziN0g6QpBXI7k0aBhAnVPUPzjJaHceml4GUlvxHRAoI9tYP2GJCYcJ9LeGA4++nsNXhDugqbjD2iILxd0etsmxvpZpQIYISpg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890029; c=relaxed/simple; bh=hswRjYzI10zhUsDjz+wkVowHp0MANy7svfXMu6AA6rA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gSzbNbKiZIvMFIZL0Co2d8F4ociYp/YFxp+z3HfspmIyAJrmgZPrl2K1vXhKYULP/brziRZJxc0SGV2DpYoefvo6qYP0nqe3LN+qHgDI5C4lwhzbPNqpgGECFDyT9lXhBQXTmubDxdZC/bzsFJDXClAEXoAtJJYcP7v6/OiPlsM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MHUaIegI; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MHUaIegI" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-297dc3e299bso33422355ad.1 for ; Sun, 23 Nov 2025 01:27:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763890026; x=1764494826; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SxofK3PIJmJGptGWmPl6GxImW1KehJK8Ra0bi1cA/KY=; b=MHUaIegIDQOCo43fmEKY3VfYaRjaHxMRCjEJdRctUgEoSGnjge2xscSRhxisxU8SLl NJOeH6ADpX8QYPEvx01Jwf16k1rSrrqsN4O0MpZ20Zdv+4CSNKUTyvoIW56eoxd8Dpmp pYUoTjjP37fFEf70a3UvPetXiuceifTyDKvPplAmaqND2Tb4DY0t2PjixqOMwoODTu6n Sfh2RkxmKFUMoSkEh2cvc5S6paa6Tu5jIws+SKUMNGGdFdKR6VVSMvI17kni9GyERYCZ wsL4lT313URpHaa10qovYCCJauAnzm3FzwCqZjnTAPi2qR8mQeZUUFlKP2B1HTh460TS VMMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763890026; x=1764494826; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=SxofK3PIJmJGptGWmPl6GxImW1KehJK8Ra0bi1cA/KY=; b=rwBECDcZCR8W1vl/+8WhUFaxjTQGtwx6Lqcc7EX4TxjszZyBvtIGfplt+o/xEjIMgn ZHzsQlcntjhHPfK5drCcixLP9GYTX5Daki1xfmusLtMKuNDxzVXiJf9MQb2ZgZ8Hlpa7 Mr2TxVVMC1ifgZp4NUXOZE1WtHL4ouia7aUV/qVD0S44eMwJJQH9K2bGLbZyzZnmWWw4 uYAF6b7kbmHKpu8Yrigdhq6BZxrn/GDOQx5u+X0C3nQ0Nrhe+Ymp4RZXUlYRdmIUOgSs 9a2LvJoOIXPfVaq61tSkTZMxpu1MNt3231PfCLhREPBKZ4/kXJwp+adCswXpegHrnF0N jIgQ== X-Forwarded-Encrypted: i=1; AJvYcCWBLOuc1KN5MID4IQqjkzmYnNSVadrQ7dHp8sqkbEFayi2Gmburm5Z3QAS6wzitjyhkhMC2FGdZcQ2f+L4=@vger.kernel.org X-Gm-Message-State: AOJu0YwpZ77KLESWEX7Tt5x9lbt/tbNVzUcoaqeqXRrRIuy5rndOSS4S MmNhjx6l81uSIctedxgBI+2cU+wTC6iUaih/62zVS7JHPoHhi+8PtY4O X-Gm-Gg: ASbGncu7QYXYtJWTMIrSE+UwdmeXBHipiq37+L4CELtlNWjjKPYbWnyx3o8ehUbOqB5 0NcYNd22hCEkAQCug4x4RZgf2Vk5SBWgXld8BGxTk6Ty1qRh3tCl2wxPInm0GYOf2DGB4yDYv/7 I1bedPsr6dYjncgmKVy61QlZLnMYzJHTPShbR1DAM0VnF40J8YW7AnwsVFsvHnfUgTh9HyYn/OT rocQMRaZGHt4diAp3jtKVn3dUiR2NrwcH2kYJfBTwTVGb4nonS9q46dx4XKFoCdmqw7ICUsvW2b 2v7EN5YEtmc9ELAmSpuzZdk7pm/9jXuMgQqjGQzbn1B4pP+MtYL7khmM19przDBGTypOPt6qauU c1TuhtLw2T/7/W6CJuZ8WKzW9UK4zHyGjdBihUAuJMQlk0T2VZbKFdhGemgOeqyW2WINMc5aoih gjmbohiLIsy4SZ+88ScmC+mBbl9A== X-Google-Smtp-Source: AGHT+IH1U8t8hCw2WDyvXF/0DPfy18rrujnj6Em/QND/b9i4osv8+SLy39cyAfSRsaedSvrbycJTtA== X-Received: by 2002:a17:903:290:b0:297:c048:fb60 with SMTP id d9443c01a7336-29b6bedf343mr95210775ad.25.1763890025910; Sun, 23 Nov 2025 01:27:05 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:27:05 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 07/10] rust: kernel: Update ARef imports to use sync::aref Date: Sun, 23 Nov 2025 14:54:35 +0530 Message-Id: <20251123092438.182251-8-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites in `scatterlist.rs` to import `ARef` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand --- rust/kernel/scatterlist.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/kernel/scatterlist.rs b/rust/kernel/scatterlist.rs index 196fdb9a75e7..b83c468b5c63 100644 --- a/rust/kernel/scatterlist.rs +++ b/rust/kernel/scatterlist.rs @@ -38,7 +38,8 @@ io::ResourceSize, page, prelude::*, - types::{ARef, Opaque}, + sync::aref::ARef, + types::Opaque, }; use core::{ops::Deref, ptr::NonNull}; =20 --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 88BB521CA02 for ; Sun, 23 Nov 2025 09:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890041; cv=none; b=MXY/KY+3QiTCtvKduNSoDXf2k9pCVp0vMNKmXbN3cWo+BsUehhb4x4PPyGcvKLVyexV2589U+L7fh45hvUEFPvPmj520e/CCmHAZ9tZBHhBzeReDw5QPewEEtesB19hM/Uku0tAJ/fUBcZb8jKWpXdztJWBCkxOm+2dkSh4/Udk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890041; c=relaxed/simple; bh=0T0m+vzVHWTBjikXdKLHTliy+liCTCohp1BbecNTmzY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Bik1GAGMnpBMxqEqK1sNH3OjBXI2fH8sjt0UEz6ylCHClD/uRUN00hHNYu1EY061iqz5hbCgwV/DZJVNRrL/YejwPifjv55Ml7Ljpk9OdOlVzOtqxF1GIFWIDH63yWfuMt7cnxgyHj79VcxLvWo9t3jvdxjo7GqcWquVFx1goPY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BK6HxJu8; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BK6HxJu8" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-299d40b0845so55318325ad.3 for ; Sun, 23 Nov 2025 01:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763890040; x=1764494840; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cuE/I+mSjy5RFqX89Pi5DjFF+u40p6VYH+8i+leWPLg=; b=BK6HxJu8klsBazdbsG2lf0ie3JYLn/L698A1rKw5A/Vq5mhZ06S0sWiXKKUDLQ9cbc EaPdiKjt0CHqRx1KPhUsmjr9jUABQTE8qP6DFMuR+o18KmEl3nVeig7aFrdnARYS2Q+h F41cf/ghn+cEukAlsxvEt/so/q9tm2nfpguCfTf0+erBS+qjzniFGgcMwKROsDTEwc2g e8Q6vmv9Ulx55qKrk5Fb3qS3YyRz0PAK5D1MGO86l0r8JmE/eMVLPp2xMed1IKqGIFdv 7080TVJwaycuxrAyxFj7Y6uitFgPRg5OEEO0SfvsqT7OldinGtLHFwkSEqOa3jD5j9uQ V++Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763890040; x=1764494840; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cuE/I+mSjy5RFqX89Pi5DjFF+u40p6VYH+8i+leWPLg=; b=LqjBaD9dUeisIX9zLDGUdT4ek93SmnQYIY56fbLQY7lfYirjtizDrKnRGDvOEzvbO4 ogYEbk7vrFclBcsfvZggb41kbcq63QjPj8eimqZJWEDW3ECiK9YZMGCAvn7BC6gTpDIF W9ccEBVatK/NoKf/NMeb6NcBylHrlOAt75Oue3bkbGQ6jdQ/GZqizPzWrKjvXwMycEmY kjfMQsorGuJ9Ab081Wh+6GOnYNGPCso6cnimt+IfjdZg0iGKx6KvxHG1vFcA4xkXkX8T kvQDx4PaltpAtMTsbb8b39CYbF3+sd5Uyvjc300Lrmz3xaWuAlMkNufor6HE9UwKPh9Y g3ug== X-Forwarded-Encrypted: i=1; AJvYcCXQBgPP0FZKM0BF6cZ/UaWz2hpfYREwELVpAZ8H2rYlvSm+OrJ73hF+NAy7CsaHV73M9QXOwPutlOibslM=@vger.kernel.org X-Gm-Message-State: AOJu0YwF3HQP70Aex3vhg6ugoEOBwjvnNgqrzUOSobsaDMX+bO6ttPki aOcJcX9kXfEPdrkdLkyBkoTCuExaUv5w521k2xA2pvqbU2fbLO8Q98eY X-Gm-Gg: ASbGnct/2DfA5TqVc0vJnWIweaxdAADdXz95OwxFDOD/65rN2s/yh1yHF42xKu9JR7o iz6B/1n0d4FT14ytSZJtQI3sdvCQw/uK5Vp7Te9yghu2b8s0ZjkcoLtyhafiaMqdI90I+YdivQj ci394/ZpCHWHrBYBGaWPZjh/nP7Otru9yFxhg4/7mhLuWbB5vJdBeT1x1qaYFbhsIgg1eexnPWh iABCaiSWFB2Hc5js6iaKJKX9DCvx+2KxFcG2ToiPevluvUvkaCoGExFFTC9hWqCFCFcTgFB/qst DBfzpIdKtapZsK/Sf3aJCe9YxalEWzWfxGHFMlgAqxpwy7Ani5TCuWFCRFO0NQ7A1nmt0qyta1l hyWH5h2EvAUXXzHaoiPck0WeSN87vm/AQsIIGZhOkU/3lcRsOpiIzKz2eVbsYsr7N4NbO/s+BVL ymLdipptCu32vLx5MUlj4NiywRzA== X-Google-Smtp-Source: AGHT+IFMN2aUokRTTtS+sIFfNu4kcDd93MwuGAJrh+xf6L/Jjr+U1cR7WS31QoNboosVEzIBjpWEvQ== X-Received: by 2002:a17:903:2c06:b0:297:fc22:3a9f with SMTP id d9443c01a7336-29b6bf19f1dmr93932225ad.38.1763890039910; Sun, 23 Nov 2025 01:27:19 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:27:19 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 08/10] rust: kernel: Update AlwaysRefCounted imports to use sync::aref Date: Sun, 23 Nov 2025 14:54:36 +0530 Message-Id: <20251123092438.182251-9-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites in `usb.rs` to import `AlwaysRefCounted` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand --- rust/kernel/usb.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/kernel/usb.rs b/rust/kernel/usb.rs index d10b65e9fb6a..79ff2f881572 100644 --- a/rust/kernel/usb.rs +++ b/rust/kernel/usb.rs @@ -12,7 +12,8 @@ error::{from_result, to_result, Result}, prelude::*, str::CStr, - types::{AlwaysRefCounted, Opaque}, + sync::aref::AlwaysRefCounted, + types::Opaque, ThisModule, }; use core::{ --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 E8A972C17B6 for ; Sun, 23 Nov 2025 09:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890054; cv=none; b=GCAgEDbAC2j7m+98jsAuUsGP6iuZooQuKpz+wUFPAQsdH7JNRxBhtxf8BwYnrPTYNY97oieQ4il/Zc0SY/rzvQHfvVVwnXozrxj7suUMWKtprDf4pvNqkHm1kzD0wKfLgtt5MfImju01wYAMd+RNLp4CFUFWsF1dw015DboyX/Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890054; c=relaxed/simple; bh=ndUkYRFd3yqWPhWv94jjccTuEH5SGi2NSroSJ8hHhOE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KNd17DcHyStMyX3m34ZoYaCApzitCBvHS2bmvGfCrW/jfI4iiDsEzSAM61kliV2G68COFq7K1zxhtXWAvWAlfWwy3m4mLwhvA/zGYbQOEmBMc86zbzM5Q5T1xqluUzS7nnc6d6gop18GUj+L1WZVWCQAEe5Op8OrhFeV/vjhKQU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FP1BbOBV; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FP1BbOBV" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-298145fe27eso54064995ad.1 for ; Sun, 23 Nov 2025 01:27:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763890052; x=1764494852; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kNN0MI0LidT4OFHOALkJ5vSdl55jONLNA9sdMaqYtkE=; b=FP1BbOBVYS89MpArDQSf3fUmFv2jQn3p6sCIFFH1s4fvAQ6l5O1gYjE9tFrEOlRpM0 dHyZLFt6Wr972ScT7DBKn7lT14D4of+CH4AKw3gdAcyDxpQXOHwiJmWNlVfOknIt3iN2 kDC/3hOFvDXq03Zu5NOxrM3l/X0BWs7UqrR12WSXBExsJweS/2m0jI4lf5LvJoDEwA4+ YkE5KSsjXDSAWxQz8e2gHih/UEQ/aaPiJ3Fc5eHHnh8GLE+PT6oSsKNB0/R77bwb76fm boH7w3Xf7m1L91c0wW6WzkGqDr0dZTDMmEUZ3nYpRZOisL5IEQBwyfSYF5BooTljWdqi lbSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763890052; x=1764494852; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=kNN0MI0LidT4OFHOALkJ5vSdl55jONLNA9sdMaqYtkE=; b=jvRwy0kkUWBgGNZiQtIfnv+4S3R1j7QOnWak+sBeG0HjJMOp2QrMg44fnj2JjmFbNE VgFUNJVtSbX0aCn+qDppPXt7GG/OLqyF4MWMK3SIbA9KMb6TOn+q4HUNzVFSjiYlm/E1 J4JBShwhs0Mp/9YGOm87+AteWyTMXJfI7FdNGZ+wGYgxusqB39RszluM42tXFIxg11Px N9SbyOI0XY10TMdHuS8pywknvDlLFS/u8yY34hK1vV+F1z9xCAJKvnxBnSZZ+NBueoJM K1XrNGCvFTMQblY+Q9ZKRl346N3hL+C84jsgM28R0GTYDEQoTwFQahLo+hdDMCtYtXIS HglQ== X-Forwarded-Encrypted: i=1; AJvYcCVSjtJHJv4hJVQ+3Nv1fR/tQ3M3YQf4TcffZDAhalVAGFl7pzPP85LH7Wf1XjbrSY/sCopO5tJSPGRdOhE=@vger.kernel.org X-Gm-Message-State: AOJu0YwXgS36tA5xx90fhOnWLgZyw/zhGYvFRHfPPrO/wfWak6nmDse3 eXSb2/CQ4aJPKIdNdKiG9foyCgAAB3sGh82PYHYIaDqaaGYHOURN097Q X-Gm-Gg: ASbGnct9RDmRwyW9fBnCNDxoYqP6O/9UQytZZ89PaHX+g8Es0pxx5z0VUd25SeFuu35 FQ81IvPDdcw5iGYJT/DxGfuixBck0o7qzqFJkiYsHFzEEgvjnETlPTkKwElxy2X5eIz/LRaFhRd XwgiXw5HJ5RwAIszNYiomdWLxKSyr9mde/q8prxXdTmL0/KWrxx0ohr3WgoJ9XEFdl6v2he7Koe 6vP8S3js7fhn0cj6XXgiF9q57IxgzQNxd3rA0w76DEm5hc4BhVcevzSLLe4IpIni/tWTa2zi6Vo pTAAKBOx4vv1C/C0LfsVbPC2jNVCHS1WO3Gqj0K/q0onfhtM24rE4a1EAVUolBS4j9zgVg/uQqs dhmG7fpK2Lf8i55OgDOJkjey4gtcv8GSQbkjWeriyVQfRg3RqMuIPyUcabQ+TgpcT7qI0rMpdqE WpQPzWHbNp9e5B/+8T0nMPgd0XvA== X-Google-Smtp-Source: AGHT+IFee8cb2TNSz47vMFblRZKC7Ldla9Ih927BxHiIgXSYRbtyZ2DKKrYa3dNyowUaxQz5HqlIJw== X-Received: by 2002:a17:903:2f86:b0:295:7806:1d7b with SMTP id d9443c01a7336-29b6bf37e59mr102978025ad.45.1763890052139; Sun, 23 Nov 2025 01:27:32 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:27:31 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 09/10] samples: rust: Update ARef imports to use sync::aref Date: Sun, 23 Nov 2025 14:54:37 +0530 Message-Id: <20251123092438.182251-10-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Update call sites in `rust_debugfs.rs` to import `ARef` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand --- samples/rust/rust_debugfs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/rust/rust_debugfs.rs b/samples/rust/rust_debugfs.rs index 025e8f9d12de..be245da577a1 100644 --- a/samples/rust/rust_debugfs.rs +++ b/samples/rust/rust_debugfs.rs @@ -39,7 +39,7 @@ use kernel::sizes::*; use kernel::sync::atomic::{Atomic, Relaxed}; use kernel::sync::Mutex; -use kernel::{acpi, device::Core, of, platform, str::CString, types::ARef}; +use kernel::{acpi, device::Core, of, platform, str::CString, sync::aref::A= Ref}; =20 kernel::module_platform_driver! { type: RustDebugFs, --=20 2.34.1 From nobody Tue Dec 2 01:04:45 2025 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 85766176ADE for ; Sun, 23 Nov 2025 09:27:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890067; cv=none; b=qWizc6DUegy+ri6uXPjmSn9gsO0UC2ZqmI6dJIC9KSOP+9YItfeyQT1H01s5a9eLfUnD5YdUD3NKMlqvNeOSU52vyrEkfUT4HjnAFDCQtweS4Str78rlnyLaF5ACbxZzlpir0/M7pliMB1tiCARhMxI2hUdWzvS/dysdOvco9zY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763890067; c=relaxed/simple; bh=EtbIa6WcARTT+W4TNMAMANC6i+cL8dmR+u7Z213Dj/Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sJujSqHi5HTgFbzY3yYa3zjfqxCYfBq3jDT63PSImkW73OqFWlIDEw+m2429/G7atyd4zD2GbqdkZJ3gxPLG4m36VDZTjxb40zm/812td9fc7017tzU3x4jv8dFHvJx6j0RD2Vg/cZqwJWgzKle47DEBfnke9WBz/28/zWWGw2o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nP14G4Ei; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nP14G4Ei" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-29808a9a96aso40181095ad.1 for ; Sun, 23 Nov 2025 01:27:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763890066; x=1764494866; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YfyBoPWUbKIvicMj0KWg+NHqLc+OcZyzD61cN8gqS4k=; b=nP14G4EiAIxsFMqXc5VQa9Sod/12GminXv9/Ql5T3ogm+HUDRKYf0HODr1VmGsflJw Q9bhdstzJ8131cHjBGerQW96hC8NZEMD2gz2GKq8l8Xy3l2bv4BSnqCcGQJXX6jtIae9 Z4rAwGEkcj1dSa2vJTYoec0PrliO+Uet4Sh7hTXZOszvjv2guy9TCEBWTSlKd66lFK+p 6qf/KpF+wRdn4UghuFeMpseXYXtDP7dxWctTdr+Wpv2lNIj3qss5ilcShlWZZASX1u/J r0R8VIQfpGB54XDrLsZyvpooJNUDG/Ha//01SKtpQ3PjUfiwgnV43uucvaOX+pPuuHZP JnKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763890066; x=1764494866; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=YfyBoPWUbKIvicMj0KWg+NHqLc+OcZyzD61cN8gqS4k=; b=s85Re3BfvnSnNdcRHr+DdubNe63hKD4gEGcXORT3UEyDDxDVfawwxqbpQsqRwWtaN3 TOqaoTJUeHTjTQMK+QR2i/tLyV8Bwh7r3gd0g+QhI9+q2Zd5+T3FnuSEDPqchym0Es3q ia56p6FKFGefVsLKQJk8RtW8vBujkoez0gbyq2wKm9QkeWF0sq2SyqZEtOcoRYFwTvvU orRzUf7Y3CpQweeWLKAf2wY6Xp8rIHzGoWiuR2h5F7+1CvZuaB9+AhxImtFiCMmeLje6 l5kkp+yvA+bEyURhPuzdCAgGwDvrX38EviEbjC5pFD7O6r0Oi0JHDb/3WaTsDgvGaZZB ZaUg== X-Forwarded-Encrypted: i=1; AJvYcCX+qnjP/YooifDWicSXT9aRXXNRJB6XNsX2z1AZrIAgkegjfvTGRTd8A47bGSZwiyZidikH7M3XB3XEz9w=@vger.kernel.org X-Gm-Message-State: AOJu0YzMbFA+ocbJvR0DfPaEYuCBIaklrUbUeBtRUs7G+b4bRfGE1Xp0 54DCnx4x88Ottue3D0pS/qksM4MvY0z/J6Z+Cc4LlJsuj8g6AtldIi1E X-Gm-Gg: ASbGncu4wg/jyFhuUOWQMBTfBh4tC1wqEbjDk3ojKxSxo4TBzHDKUO+VbQI/LdWAU38 TdL4FL6mJrQJ/ULLGQEB3+9E4YwBn+ojwWtGJccmjx0hvpGj8Tp5NauP+5WwwKLH+CQI4DAG4Dr W8gqBMfvWQHwebHMehgwnfOuCdS3y/aa6T+59uk0yymkvwNJLcH/zMON/yLD9NdyYTOTBBnsJt4 Pn2lz18VDz4xfOttEHbG5i9MkUTnVxHsDJ1hdoLP6dqVDi63OhrhaZFs5/C718qQODfqSk0cffz Nhfw24TEw/7DRxj6mhOXhvnRWgpC1L9PbVAMU91P75vR+IPhlWka/YUSHfC+owUnOawKVX5Ug6u Rq12re9GYmND2Id59iBxBW0slJoMDQxLXgs5oWrUsyxPu3Ed4U5kz6BgAIMqASZ+kWTtOu0ON78 CQvvGXkAM4WSL0dXnygdhnJWkIow== X-Google-Smtp-Source: AGHT+IExQFsNPtBs1Xj5miLvxmintvWHhiICyxn8q5+dbslUtcud5J24RqOaI8yRZ14HHbP/D4VKng== X-Received: by 2002:a17:902:db0b:b0:295:28a4:f0aa with SMTP id d9443c01a7336-29b6bf5f036mr89773335ad.43.1763890065882; Sun, 23 Nov 2025 01:27:45 -0800 (PST) Received: from shankari-IdeaPad.. ([103.24.60.188]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b138c08sm100811105ad.25.2025.11.23.01.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Nov 2025 01:27:45 -0800 (PST) From: Shankari Anand To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Danilo Krummrich , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Alexandre Courbot , "Rafael J . Wysocki" , Miguel Ojeda , Alex Gaynor , Igor Korotin , Michal Wilczynski Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Abdiel Janulgue , Robin Murphy , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pwm@vger.kernel.org, Shankari Anand Subject: [PATCH 10/10] rust: kernel: remove temporary re-exports of ARef and AlwaysRefCounted Date: Sun, 23 Nov 2025 14:54:38 +0530 Message-Id: <20251123092438.182251-11-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251123092438.182251-1-shankari.ak0208@gmail.com> References: <20251123092438.182251-1-shankari.ak0208@gmail.com> 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" Remove the temporary re-exports of `ARef` and `AlwaysRefCounted` from `types.rs` now that all in-tree users have been updated to import them directly from `sync::aref`. These re-exports were originally added to avoid breaking the kernel build during the transition period while call sites were incrementally migrated. With all users updated, they are no longer needed. Suggested-by: Benno Lossin Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand --- rust/kernel/types.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/rust/kernel/types.rs b/rust/kernel/types.rs index 9c5e7dbf1632..4329d3c2c2e5 100644 --- a/rust/kernel/types.rs +++ b/rust/kernel/types.rs @@ -11,8 +11,6 @@ }; use pin_init::{PinInit, Wrapper, Zeroable}; =20 -pub use crate::sync::aref::{ARef, AlwaysRefCounted}; - /// Used to transfer ownership to and from foreign (non-Rust) languages. /// /// Ownership is transferred from Rust to a foreign language by calling [`= Self::into_foreign`] and --=20 2.34.1