From nobody Sat Feb 7 05:01:06 2026 Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (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 B9C992609CC for ; Fri, 2 Jan 2026 21:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767391105; cv=none; b=Jowcr2qhmMHGOafZJtb6PBVEO4zL8YDe+zgDVLxxE1xfFJqNn1QnrO6FoMrXvD5sodrqTNs0SzSozxo4vg5ZtsZTW/gFGcXIr8tsVMkPxllNw3sXDhdWucyMTxRTgh5OS3TJzbDsvH9fJ17p6yP76hHyEXO+0ECwfXFknCEwjG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767391105; c=relaxed/simple; bh=P6CLUaoBrZVe2iO8pEgsU/Uckoe2bn/GpAIG7klU3Cg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VMKhX0Ksp2wdup0w1TwQX5ewfdOVilvFyTZ1yULMH28GssVA5M8i4TbCHqAXHwoSzlcT9NY5RFmU0s7SQ9Zq4CoOYmAkV20kPHtIicBeWvDdzCVmKcM8sjPZ0+JBzNus3rvuSzoPhwk8egt13/16KbT/xI5/p7baCuJW3h07fRI= 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=DdfcLru7; arc=none smtp.client-ip=209.85.222.54 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="DdfcLru7" Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-93f5dd1046fso6804612241.2 for ; Fri, 02 Jan 2026 13:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767391102; x=1767995902; 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=JzPkPBTdxo+DXDsLhg4MqCszafnvLPi7c5YcRPd0+SY=; b=DdfcLru7t3KYRGd7LugwFuKrwfNypu/zaecPdQGvp248sL+AnCLTX8uG6VLbr6EB2X 7cZzcp0ZYosrTvLU8PZfumK6U+N2theqdIKu2BWR9/aDRgYSQfz2Cp788mhDz61T0I5x 2WSRSdcOeOVq8P6GtjfXmQsco/k8MV/+nPusUki+2byPB0ED8izO37LiQcuwm/qFULfg 2e+fnRvy0PLmq0CC3kXkTj57z8rZB1ioGewGDNbhKs5THDdMqRxsrLkZlW7ExMKB/SsK j7S7IxU5sopgDyWKCDwlkd43daisq6sOrgzUhoNSw4sFw6nnWl4xJlcFgGjYVpRbvSzI eDqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767391102; x=1767995902; 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=JzPkPBTdxo+DXDsLhg4MqCszafnvLPi7c5YcRPd0+SY=; b=bXC2ZRR0M126sxvEYn9FNViC/Z8Z6KqH5EU15OcnHNbGLqf2nGHWhfzkjDZfffeHO9 Vvq4MPRnJtnJbpLMf/CYRrtFnKREe3RPd1HRCDVpCN89Pivn4TmAgqduQjJjSVFAj0DG ToLzJoMm4GKS6cQCn/XZtkfdGfsvu2Vmn06k1g56DKdtFSPGyLgQifho01+4cCNqH/pC fywZqy3Bh8gG3IqUFQrqJC/gS3AQISxtmwpwPVOeYPK/MVwQlIEYGd1Fs48+c7L1E0SL HkNVN6p5+284GDRLLuRwo70i5/O/SdrbRIkWDNAJUKJ/te4htwwp7BDfmB3rQNzxhVId wfgw== X-Forwarded-Encrypted: i=1; AJvYcCUhJMEkiIorWozTH/VvJtO92SwA76CMsBkMWY2vlmvqxOpo0U/PTkWJ57wI/lqrydQHJqGoGASKvNW1rbo=@vger.kernel.org X-Gm-Message-State: AOJu0YxGfGKb57mCQiiyS7bPBh2AEVX17wprlrJXcfb4x7dFa7YOGIIb u7lRsp8AbeUm20IoVUqQylUED44122HdJU1A3WoZJMko3rG+CGsgk7n8Np93Pw== X-Gm-Gg: AY/fxX7bmLp3mkKekmutFdBRStvym331R9C0D18nUAOOUrpXdr51fQkfn2vjMIdiNak IKgERlKGWhhCZKzBDf1OEc6AgGAoKCSCIZ1/wGsarR6wLDKZJxs10KKAJuvpW2bnQxwcjJKv5o6 YPnm6Vb0kszBUcJLyco63VVMWPQH8OlypPYP38my2MAdVPHemUCUWnsDQ4B2wXvH+WY1Rmp3Zz1 7SKasQEIYojeetmAEctpaRb7hrtVPFUmjBhERHmiyHC5l3ZAPlW7l++Yd/grcK9xzRL04Y6UHHn c6euICEgYN9LhAQOA3jQjd+3iTeGdlqhuYT6A7UGTSIJzUygFaFb0gh1bOyfk6WOyij0x+dwfnA 7HGJVyvgxgwNpmpnxraa48KDy5Rh90DLTLrBBL6/FqjDwQoOwrlG/WWnQUlSX4o1sK4mzLhmnQB zuewnxZut14TqPcCq5if2awhh7OM9uYw== X-Google-Smtp-Source: AGHT+IF4APWzwwkb10zobyqhGIJZ2eP3tKaurfLiy7XUMDZZ04iDnnZUmDwz0Vjazspcx/YcTYZDag== X-Received: by 2002:a05:6a00:a882:b0:7f7:26fe:c92f with SMTP id d2e1a72fcca58-7ff64cd5fcbmr35797857b3a.29.1767385679728; Fri, 02 Jan 2026 12:27:59 -0800 (PST) Received: from shankari-IdeaPad.. ([2409:40f2:2123:b1fb:b93b:b5b4:2357:c53]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7ff7e88cd71sm41163964b3a.64.2026.01.02.12.27.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 12:27:58 -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, rust-for-linux@vger.kernel.org, Shankari Anand Subject: [PATCH v2 1/4] drivers: android: binder: Update ARef imports from sync::aref Date: Sat, 3 Jan 2026 01:57:11 +0530 Message-Id: <20260102202714.184223-2-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260102202714.184223-1-shankari.ak0208@gmail.com> References: <20260102202714.184223-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 --- No change from v1 -> v2. Carry-forwarded the acked-by. Link of v1: https://lore.kernel.org/all/20251123092438.182251-2-shankari.ak= 0208@gmail.com/ --- 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 132055b4790f..db25307b5a4a 100644 --- a/drivers/android/binder/process.rs +++ b/drivers/android/binder/process.rs @@ -28,11 +28,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 1a8e6fdc0dc4..6a5c90547844 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 Sat Feb 7 05:01:06 2026 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (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 304B72D0C94 for ; Fri, 2 Jan 2026 22:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767392482; cv=none; b=RM9N/zQHLEuiJl9+xjA6NEE55lqgBaIfDog5hvejOk/7sIfDLz7c0nM486pCzXMUsHHaK0iEzeWLmP+RDL/tl9disWCWydRGTJDc8GV3ifDUYf52CE0eQqkfLhEUDPhx5XKGdznSWwFDBFv8oSFC1ZNQcnjKE4TSOw0q9IZFwR8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767392482; c=relaxed/simple; bh=BXnDH38sAKTaU6fZXWIje2HtBe6o+6O97pyAsFykX10=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qtvoht9Ne0N+B/sPx1tnOV42bFLiXIwBlvS1+R+rCdSfX9htax4aG9z8RaFm1RrY6FqJPbv3rlND+wAVCS2gsf1fNCv4ZjZY2kjySLZv7cfUuj2hNk37Qf+UlSF1mKAFduysJupEUda287IM+VhEr3cmaEKE3sFXAKRb1ljJgPU= 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=dXgqkPe9; arc=none smtp.client-ip=209.85.222.46 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="dXgqkPe9" Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-93f5905e60eso7841287241.0 for ; Fri, 02 Jan 2026 14:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767392480; x=1767997280; 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=r6eDZoYciOr2lYVwtxpxq+97yZ/JvKudSVZ9w95niiU=; b=dXgqkPe9JSbpHoLosfRagUwzeQ+q1XYD3zZmxZHylzey/Q3NZDO4FCnmk29F192hh5 524czZ3RyW2MyGtsc9Y6XZQ0HBXOiKJ8v7QoCk570rTL9SelsQvvmYUEqRFoVlcpHKGa N1X4mNtlxRlZ6+ky+s8XUZOTt70nC3WWCF1rmw0fJWqub+e67GNzUsVUHAbPGVCMRIyi kXvZCSW2I2RDGeIb1spMxH132blEi1bPgK1ru5sTMnfpCFc8uDoou5taSMVrsawP1UMV nQ7a1eN9d1My+e+NQpC1eVCjw6NZXWkalupAPXjBKj6Y/4NSARBMHb1o1SmQGbzCgg95 RyFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767392480; x=1767997280; 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=r6eDZoYciOr2lYVwtxpxq+97yZ/JvKudSVZ9w95niiU=; b=RPFB01/4cAT3060TtOk7YXmNgKhxxurqB5Os7dORgZuuG+pMFAxR3p0SlqRxAY75cv 8JbBEEr4MipodVl048csGWLHw0cGY1h+kyT74p4XP5Ec5AuokcQ/zX3QupGm3KPEHNoZ lI+b1Y9juSOO4VO+FIWxBtptiGahUlrEuzCxX6XZcsAz1V0Jjd7Dg2FHyDIPeDDjQU0S a+Pt+oSc/q7HOmA0tVbRvQloe2e6rAPQSN/EBcZ6WJ9nkeivS5stzn0M/xLXV7SxPZRJ Zwlj+f6lRyVXFQyQo89mph2H6QytrZV+FK2mBIojwtZNNST4yjZ6iwnklvrtmzAiyWTq yvLA== X-Forwarded-Encrypted: i=1; AJvYcCWDqoAW0jKAt+Mc+8bZOwW1lkQLuMJaOTPIhfCrpoDO9PIeojaFyoeSZIZ6U4sk9SiB24S3H4ZrPr2C7Y8=@vger.kernel.org X-Gm-Message-State: AOJu0YyOQHJon2E8EHsKdAYK2+Za/vgShAKzrEDM6CGjppugnx1b5WRn +BkqcFiCe5R5Vp3bY1Kz1+2aWDBqxe+YFjq8MYsE0nICawyoX38xU8eRaXOiBA== X-Gm-Gg: AY/fxX6dliAbez8PxyWOhiAIbglgCeG+uB/GW7cH6QWFe6QpWxatckW77NNaiGRLZog nqgltfqXynbyQlw6zuksQdQxmAZRb9+GmVjMhVjSkhBULx85hVTO1zWMMZu5abMmJt+NuxKsD0q +tHhcumIaU7mXNCwESZgrjwjQLxdFXQFc+St42bVRtHpiJidoeYUgnQsCgV0ECMNs2Dv3SfzLTh fw306511yg5+zPkhzkY95kJx2w7OESSrJDZnygbxwZi0AveDZzIKECnG9H38Mojocaw2JzlJsms Ipk5/HTo0QwSZFd3fVw+8SVpb/ZKtq2RIRQydo2qDC2JSEAnBs9jt5M4lHFP91723Drefh03+ns GwhkvYgMUbZTB6w/whHfEy2vfxmI/U32cZ2NndGuOlTSzXdMtrQA2N4eSUy7S1PbmrUONqYeX27 k/3c9L8k0IhT2r4cxQ6opc8XIaVVQveg== X-Google-Smtp-Source: AGHT+IGIsARfCgd5//D4UmLiREc1aDWqV7PK9qWSlWBBWPowHyvTYCk6XncFLI8Z8N2XnWEey2jwoQ== X-Received: by 2002:a05:6a00:430a:b0:7a2:7bdd:cbe8 with SMTP id d2e1a72fcca58-7ff655b041bmr34350824b3a.18.1767385706150; Fri, 02 Jan 2026 12:28:26 -0800 (PST) Received: from shankari-IdeaPad.. ([2409:40f2:2123:b1fb:b93b:b5b4:2357:c53]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7ff7e88cd71sm41163964b3a.64.2026.01.02.12.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 12:28:25 -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, rust-for-linux@vger.kernel.org, Shankari Anand Subject: [PATCH v2 2/4] rust: i2c: Update ARef and AlwaysRefCounted imports to use sync::aref Date: Sat, 3 Jan 2026 01:57:12 +0530 Message-Id: <20260102202714.184223-3-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260102202714.184223-1-shankari.ak0208@gmail.com> References: <20260102202714.184223-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 --- v1 -> v2: Used the direct module name instead of including the path again, re-worded the commit title to rust: i2c: and carry-forwarded the Acked-by tag. Link of v1: https://lore.kernel.org/all/20251123092438.182251-6-shankari.ak= 0208@gmail.com/ --- 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 491e6cc25cf4..9f5f18792916 100644 --- a/rust/kernel/i2c.rs +++ b/rust/kernel/i2c.rs @@ -16,10 +16,8 @@ error::*, of, prelude::*, - types::{ - AlwaysRefCounted, - Opaque, // - }, // + sync::aref::AlwaysRefCounted, + types::Opaque, // }; =20 use core::{ @@ -31,7 +29,7 @@ }, // }; =20 -use kernel::types::ARef; +use kernel::sync::aref::ARef; =20 /// An I2C device id table. #[repr(transparent)] @@ -407,7 +405,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 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 Sat Feb 7 05:01:06 2026 Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (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 43D133A1E6C for ; Fri, 2 Jan 2026 22:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767391225; cv=none; b=dZtgqTk+SCZlh+Uc+DOhqAhZcHP6LqQaqARFA6V1sZqPnpsCxYg3FfVaA65C4cfGUkwVwt6CINjNdanQdVqO/hNtdFylabk/dmgz65h3oqxhpzbCUh5ZyiW5/m1otxqW1YhHpogjbIWD1CICZAaTboUVa9URGhVXNcNSM6NPZZw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767391225; c=relaxed/simple; bh=HiwJMnq8mr6pQzgKiF+VCQjWYlZRdru5QWhtxuLezo4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X6P8EkYHDj1EDiAz2U4Diso7mMboYRqKf1ciJa3Q0SzrQGP8pWEIwQ5jQNBrit8aXaLpq2zw2SloP5BnvriEFkjf3pEBgdEvKuxuq+9cKkLrkKA3bVvqTLf5q08dkG40a+UcvIYdCFJDR1zgpO1EyJvk++g8vfTI5Kru9Y0TIS0= 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=WP2GDm0L; arc=none smtp.client-ip=209.85.222.44 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="WP2GDm0L" Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-93f523bba52so158439241.1 for ; Fri, 02 Jan 2026 14:00:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767391223; x=1767996023; 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=00GmlgJ1AaWzlpDrlo1/wDhQO5iplJBPhyzyjHKeuRM=; b=WP2GDm0L1hSOLKEN5/2Vs1hQ/89XGee5ZTy7eTMmgFQiPocPQlGTL+1NEYeZU9RMt0 Lb7rVYPmzVnvc+1GuOEBuGnlgMJ5kHSUGl32D9nlGVc1ncRCnWxHp/UhPvawypDRgF1w MFpgDwgAFBCid0RrUcWTfn+EhaN7eq3RpjSrjylZG9Q8RL/akz8M+51kEqpsC12vjseU dupRA0BfCnq0YZOTCyNa9y+ehk65pTz2mWzv64N3Y+5ykdeFueEiLGkro1uD93ZmQ37E 9ooIAw5u9SVXqCsqy5PqLoYxiHQdocUbTaXqrbcDtO3RwRtXD9klvqpoHk6tZZIfT/tg mTFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767391223; x=1767996023; 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=00GmlgJ1AaWzlpDrlo1/wDhQO5iplJBPhyzyjHKeuRM=; b=HVa1QSn3Fcxx201V7rpE+K8iZpsT0LYUpKGxL5uaMGM5fu9JDoBiRvRX53ZWrJ7Scc tB1/my42UcCgAvhryVTjqNAba7DJ7M5SUmkk2VazEcrmjYUra2cDDbnM33nZZ0Nzlmj8 ONWqvp2bjxl3UvG2UdLhUZC8HIfiRiAebYPMNuaunQi3dV9PBP3UMi1ALfHQdTQkSfkX kczrIaBqvEBVEIF6SQQKVBJt1OyaHwtl/pp6i3xtHI1dCTg38rz0kDw+60QfUnZzZ/X3 1Pp+b7TbgLcAwV7nkmm7Drt5eI+biB+VpzTmBBZ29BuDoMNu5VvxZd4Rvw76y+Gs9gc7 h63A== X-Forwarded-Encrypted: i=1; AJvYcCWDxLTUy7LAZ8HeDfQQOdutznvaxLmvE1jvAGe9Knj4K8W09QegKFMDl0fv0DtjFZwx1Ulsd4tlhaD+e1s=@vger.kernel.org X-Gm-Message-State: AOJu0Yx1GuLpd2Ye0p6oxlWC5z4Z48W+NxPF0WlF0J7fL5qjWx9i2SMe Iz5kmU0KikfnbZjPicjnrPtmrwB2q9MBjbtGXxp1Fttz/yFAE0txIcuTosTcig== X-Gm-Gg: AY/fxX6Xy3n1MEBWJxgaioXn+T7D7xRYGfNzfmEN7JmQp0FSwo/+EGzJV/DNQSV2IRR 5avpw5WO5WRnH4Lj0F8h44cJQZTFISIDcrj124ydG/UyLhr5ss/BX3TyR8uYGY7c8BTOaz3PO3/ rec8KU/EBk63HU9pMuWCSBJjWpeTcjUQ2gcLkjYUhr7AVaMPC6Zi4m8xfq40sXoiE3x9VCjqaxB YjE6gm+kW6ZqYiv86Uyv/odLPXHEt9WNC1GsnibfHf6DR1w6TWakb7pqZXzn3BZNVDcgWVVcnai 6EanKtKVLiTU4yJ3hYv2MXvoHweYRnfiK3isXOQLvOfVL+hb+VSiX6gP1yVXvyxz0JWLux+7BkC jyVtCdphB/+1DF3yMyWhheYROZJ8cNe7SXQ0vySpsL1H290hOmx8XBiyQWanWjtLsTvvi4Iw9P9 w8F03dZQ+tkySIN5f55DnQfPgM+iDumg== X-Google-Smtp-Source: AGHT+IEPMyBJPq9CEUhq+9mYwW8PVJVrcnr0aB/pVVOfrs9LUwZ+gBfHYbBS0sfvzwsICPax6EXltQ== X-Received: by 2002:a17:90a:d883:b0:343:747e:2ca4 with SMTP id 98e67ed59e1d1-34f45399a2cmr556499a91.9.1767385730273; Fri, 02 Jan 2026 12:28:50 -0800 (PST) Received: from shankari-IdeaPad.. ([2409:40f2:2123:b1fb:b93b:b5b4:2357:c53]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7ff7e88cd71sm41163964b3a.64.2026.01.02.12.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 12:28:49 -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, rust-for-linux@vger.kernel.org, Shankari Anand Subject: [PATCH v2 3/4] rust: usb: Update AlwaysRefCounted imports to use sync::aref Date: Sat, 3 Jan 2026 01:57:13 +0530 Message-Id: <20260102202714.184223-4-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260102202714.184223-1-shankari.ak0208@gmail.com> References: <20260102202714.184223-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 --- v1 -> v2: Re-worded the commit title to rust: usb: Link of v1: https://lore.kernel.org/all/20251123092438.182251-9-shankari.ak= 0208@gmail.com/ --- 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 Sat Feb 7 05:01:06 2026 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (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 AA12F2036E9 for ; Fri, 2 Jan 2026 22:06:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767391581; cv=none; b=UXyiN1pBcKEhUfNb4GxAwt9BIPz+W4WADzcuTYZgBgYuY1x88YCM2PMEGZRRUk8y1T0lkD2mPYMj8VPGlFHaoekIsrwIiq7tmaDuazmgW7wXNlTep14XYXM3Uw7nFOHbOXDMhzxFFimTLKhW7hvGfpwRbK3RWx+yGNNoi8FkMzU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767391581; c=relaxed/simple; bh=EMMkEKDBYQlPPVj8hbI9T1WIarwzfCraz4glSicyigc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EVFSvlm6WD/YX2Z+sLNUpVnTY23bTnWfyQSTYdh9ngOyPM10+2KtoX9NjUwpGv0r4hMD5Rke+gBY6JVrC2r8P0FPfnxFsBXniCrAGEVepa7VpW3hPyy4MntCSpypDqRcqfKS82IfIhLk6FqLdLHYP0Xz9q3wc5UGXuZLlFytTUg= 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=NmHUH28q; arc=none smtp.client-ip=209.85.222.181 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="NmHUH28q" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-8b144ec3aa8so1308714885a.2 for ; Fri, 02 Jan 2026 14:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767391578; x=1767996378; 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=EHf0Cw2T8TXNCaYX5vHXpRGxLPgjtsELwtTPtFxfep8=; b=NmHUH28q8bGNriN5/zR0eAI1aF2esO2e3IRqqKbi1ysa6XxCyiFJKIOiGiA722Mh+R A18RQxcksg6faLqjj0ionvgMJ2p4bPFy1LpmBAzfz18qIAdnkqocErZjjdKEEHsMNm7B hhyrPwmfIpJLjo7HEvFw9xiQUtssuRbbUvQIE52hWaOLrIgnoGeSnftCeJAgJiS4P2Fr zGoeLOy2/591I2DI1TGtLjyX1UOcf6lne2uH465iHvjjUOd4bFd1AHyNTNlCVcQm6FAo LyHFaO8lbL5cFAuG8X8pZWY0inc2k0NPONCdgdd7SMvfeH0OnYe5Uzz2qcnNwCLVAths oIuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767391578; x=1767996378; 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=EHf0Cw2T8TXNCaYX5vHXpRGxLPgjtsELwtTPtFxfep8=; b=jlVn2WvwiQjttMLApKFwfJYWhWQH6/Cb3h60zJY99cejVZ2pZutmuo76doCYV87SjL DOInlxyf79w0gOme+RislxXc3sB+JKfkn988howTTW+s6ePX3P80ETAypYAHO44wbJ0e MVaDOfhCvJBhNVVMJceeVxy8ZLF7HH6Hr75mfQl7fboPLqX5Z1R9gG/LRQWzVls707dE i86wQZxRjZwGclmm/FZGC/Rh95iAO8KA/9fqMmVuF0GOPcIF9uw8QMIXRwea/sYd50KN 1Ef3AfuOZpr15WdN0PowpVzr3RjW660oZaow6bUswGPP9TkuYkYOnnUo0Oyq5M1Qv+N/ pnYQ== X-Forwarded-Encrypted: i=1; AJvYcCXiVCF6i3TfzEfsXTbsdGeJBaPFPTIaoL2J6Be4/oEGG/L2FnQRmRk1IWEsVC4+8xRcRolVIkYbXTQJCGE=@vger.kernel.org X-Gm-Message-State: AOJu0YyT56a5VbK4xfNKBOD2lFRzdNTvIZUWgiru33W8gpol2BMnQHx2 Cb7hKo7DiKxc78Kl7ccLcIZE80hqkHgEwUXfEpscg9ZeZkYKji4nIOwRB5owLQ== X-Gm-Gg: AY/fxX4VrF5CKE0o98QETr1y6FQR5qsNKpy9bVxM8iN1hlevA9yfAOnhRZjHKqDDI5r lC0pItoP55uiwx7B2l8VEfQw4sVN2hf0/uml+Plj28+YZyaPFqazQBVi2SCD6s158vOI+WfohCU 5DxyPM77IgtYAXxjiEH/UjQdA2LkJy1CIYH6UA6ZBl8/+3Gav6jKPRUTwYtreQDJe4CQS87Yi9z G2r7wgpmEJ0WOcvoC1Gz4lMYLJcDIbByO1H6EQvscqYkVSiOAvxjy0NCayxQ628PVJ9tF9ChvXT KcmSUUZ6iT6+1dAyzhcS0duG6nXadRl0RBVBAYTDrQfAJ4MlUM4Ctr3kP2kT8Cy33ubpFP5jVOo WMTv3LYHeE9aCR8khSKeY8Idco0fY39KFWAN87zx9DgWoItbVcORVcRQ+GJJM1OjHMGptb41Yoi ewrrYyUk/bNJ/CfS/uo9Qbyt92pXvcFA== X-Google-Smtp-Source: AGHT+IFUU02kaMpZOmAE1cbvVQkZ4U+cCpsROlkOGIuje7KQvVu3XAsyFDM3AK3Twn/ENVZrOLU0sQ== X-Received: by 2002:a05:6a00:1d08:b0:7e8:450c:61c6 with SMTP id d2e1a72fcca58-7ff6667b6bemr35159912b3a.54.1767385751373; Fri, 02 Jan 2026 12:29:11 -0800 (PST) Received: from shankari-IdeaPad.. ([2409:40f2:2123:b1fb:b93b:b5b4:2357:c53]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7ff7e88cd71sm41163964b3a.64.2026.01.02.12.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 12:29:10 -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, rust-for-linux@vger.kernel.org, Shankari Anand Subject: [PATCH v2 4/4] rust: types: remove temporary re-exports of ARef and AlwaysRefCounted Date: Sat, 3 Jan 2026 01:57:14 +0530 Message-Id: <20260102202714.184223-5-shankari.ak0208@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260102202714.184223-1-shankari.ak0208@gmail.com> References: <20260102202714.184223-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 --- v1 -> v2: Re-worded the commit title to rust: types: Link of v1: https://lore.kernel.org/all/20251123092438.182251-11-shankari.a= k0208@gmail.com/ --- 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