From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76A6D2777E4 for ; Fri, 16 May 2025 17:11:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747415478; cv=none; b=r/AQSULADMtlSfUCh+XyBm4qdUvkMzv+DphsuGfC2RtdTHSyX+esUSilR1BZMhH1ENAIjrZ/gR5dhQWbiDdFB8MCQFqgacWTxijXaI0GXB06GRnQ7hYIXxgG0PVngFV4jvC+OlLv3MEvv2UoP3lvFE98GUiV/LVKrfj/9x5J9lc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747415478; c=relaxed/simple; bh=++Sn/E/ERyIr2ZHwWqCrCG0HJR81HJ7AfG16tP+/cHE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pWfNoYWpuNXc1yYsvg/WSycdWwCtlcNoznOSk1fj0jtLycmXA52a6Tx9CiPZrZ9EW0xVFHF2wPIgCcXDLKjeyaNeig530BCB3cE2PUSHPYYItcFbzo3zKTRq2ApPp/UYvQs25UDPlHL8m/TOhEYhZ7iLOr6RIaAIeAzcwEgn0OM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=W+snFrjr; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="W+snFrjr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1747415473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z0Nr+NnfMtMkinmvD4MzEi3V4QHubCSKas4B2jlH/C4=; b=W+snFrjrCI7cNFM3ujw3BawGyVgiMci48dtAkU6XY6j0b7/gbWsMEeI3ZU6snDKZZCCgJE rw8LUZJwI1mPux4oIR3xZWPVODYzG05hFbhrbjkZm6VI5FKSFDNjtqNdybTeL8HTFFWBUx nD6vYoNXmKQ9E0KnOFARTJMbPp4BJcw= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-164-PGDqqXnxMWK2D4ipsJeS-A-1; Fri, 16 May 2025 13:11:11 -0400 X-MC-Unique: PGDqqXnxMWK2D4ipsJeS-A-1 X-Mimecast-MFC-AGG-ID: PGDqqXnxMWK2D4ipsJeS-A_1747415468 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0932619560A3; Fri, 16 May 2025 17:11:08 +0000 (UTC) Received: from chopper.redhat.com (unknown [10.22.82.40]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 79D2719560AE; Fri, 16 May 2025 17:11:03 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Asahi Lina , Alyssa Rosenzweig Subject: [PATCH v2 4/4] rust: drm: gem: Drop Object::SIZE Date: Fri, 16 May 2025 13:09:19 -0400 Message-ID: <20250516171030.776924-5-lyude@redhat.com> In-Reply-To: <20250516171030.776924-1-lyude@redhat.com> References: <20250516171030.776924-1-lyude@redhat.com> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Drive-by fix, it doesn't seem like anything actually uses this constant anymore. Signed-off-by: Lyude Paul --- rust/kernel/drm/gem/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rust/kernel/drm/gem/mod.rs b/rust/kernel/drm/gem/mod.rs index 2b81298d29765..d0f8da54f49ec 100644 --- a/rust/kernel/drm/gem/mod.rs +++ b/rust/kernel/drm/gem/mod.rs @@ -12,7 +12,7 @@ prelude::*, types::{ARef, AlwaysRefCounted, Opaque}, }; -use core::{mem, ops::Deref, ptr::NonNull}; +use core::{ops::Deref, ptr::NonNull}; /// A type alias for the Object type in use by a [`drm::Driver`]. pub type DriverObject = <::Driver as drm::Driver>::Object; @@ -196,9 +196,6 @@ pub struct Object { } impl Object { - /// The size of this object's structure. - pub const SIZE: usize = mem::size_of::(); - const OBJECT_FUNCS: bindings::drm_gem_object_funcs = bindings::drm_gem_object_funcs { free: Some(Self::free_callback), open: Some(open_callback::), -- 2.49.0