From nobody Tue Dec 2 01:04:43 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