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 E43A128C5C9 for ; Tue, 20 May 2025 20:36:16 +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=1747773380; cv=none; b=QDPeRmI9+ZTL5Sq0j3EEynZEwV5fgmh5NT+CIi0/j1oDhXcp47mA+9gxTChS2zCprZrLVDwjSshXM/cpeU1brLWkpTeRdvRIrrz33m/Xuu2DHpMAeNfO7oYWQvv/XNU0+iEHtljWHGk5IyNlnHMYc/AghG8YABmGaoMtPX4hOVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747773380; c=relaxed/simple; bh=HUjb5SSpguqf14obMWV1CoUWPK/z6RsGfZRYkDmaZrM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H/a8p62a2aLhXqO5+IMQMMRwO8nqijUr5wh3JXIjZAHM5KDYVpSsF/ubKGQyM8k2LNM1qh+sV+qEvUky5RrYCGIoCfLqN6R3y9C4fDtp4egcQmghu9BLipN8fTYR3xmIV+L4DPS0RH6pjUkO5TRbEaf6rH6lbBNiYT3EmztfSQ4= 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=CCS1eee0; 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="CCS1eee0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1747773375; 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=zv2cXxmOj4M7S+/j9A/0DMu053ZlpynGaWjv/seAW+I=; b=CCS1eee0He/RYOwv2oL8fy4p2xUEFzqb2wxPbFzlbSmYbQ+Iot6glvgYl3D/dYQhp6Ho2g 7N1pNE2rVdvkgNwsFmOSazR/FC45lGvF2xEYfhonBoGlubTpKzKkfn+xG8zs8U8bgrf9Zf wrqgqmrkzXhTuZ2hNrxXLxTKYoqtbuo= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-86-UHluAkkyNamM6mrI0Li4HA-1; Tue, 20 May 2025 16:36:14 -0400 X-MC-Unique: UHluAkkyNamM6mrI0Li4HA-1 X-Mimecast-MFC-AGG-ID: UHluAkkyNamM6mrI0Li4HA_1747773371 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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 787ED180034E; Tue, 20 May 2025 20:36:11 +0000 (UTC) Received: from chopper.redhat.com (unknown [10.22.64.128]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5817F19560AD; Tue, 20 May 2025 20:36:07 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Cc: Danilo Krummrich , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Daniel Almeida , Asahi Lina , Alyssa Rosenzweig Subject: [PATCH v4 3/4] rust: drm: gem: Drop Object::SIZE Date: Tue, 20 May 2025 16:35:29 -0400 Message-ID: <20250520203542.1391548-4-lyude@redhat.com> In-Reply-To: <20250520203542.1391548-1-lyude@redhat.com> References: <20250520203542.1391548-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 Reviewed-by: Danilo Krummrich --- 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 eb526d118cd40..c459829ce5a5d 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 retrieving a [`Driver`]s [`DriverFile`] implementation from its /// [`DriverObject`] implementation. @@ -197,9 +197,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