Message ID | 20240216065326.6910-6-jirislaby@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338530dyb; Thu, 15 Feb 2024 22:55:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWw0vtXBtsT6f7HJfAFxtksQWjYIS48+mJ9OXpOn6wDzFCRBNVGQfjTGqHxk4PvQmkNqMtmbmPqg70fuj8l9MQfwB3LkQ== X-Google-Smtp-Source: AGHT+IHhMSEQ7WLCQrjsHwVfj3SORjUG/9M+Iy6tf58UC2N9dX9vMlrkengn2Jl5rzaH4aKC3yxY X-Received: by 2002:a05:6a00:18aa:b0:6e1:1e05:d629 with SMTP id x42-20020a056a0018aa00b006e11e05d629mr5381557pfh.18.1708066540713; Thu, 15 Feb 2024 22:55:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066540; cv=pass; d=google.com; s=arc-20160816; b=DXF5WxDGazSBoXwEBxMPfveJqAYSYS+Hp5KXNvpwgPonfbs/91Fx05H8k+DTCfUVsQ nHC/DE/xr9oab9BhCvLLZs9wkgmLTHpQXP+hWE9yzlG/ytG8wSWLROA1JPFwLWd41Gdx rF/DQ1hDrF78UaOFHoFHJPVv8lWuwu7VZqCEItf0l09+6pSqcVydlWd+k5D88nx6c8HB ETOIDBlyRO0Y9fGtZyW+3aZvqWHkkIX8i28TxmV8JnsPYhjZzIziFHouxK/Eq9mo8l+l 2PT24dwIgzZ2dbRlkfuNYIvKifw5cnlxKL2twTgdEy4xzFOnGqEv2eXQBU5xVvutTq4S xYBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=j8pPDTvCKIp5y4wk1+j1kc05D1ZgS9KYtvlyCeVrUH4=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=hDS42+I2LkmF0urgmZTdh0XI6+Dh1EoAbZtCagLf2bA/7XXHEFtGs8im8t0CjHr2fN WfB/lQBfg1n/cTDqHC1NxdCF8tqVP/JdOe0G9szGt+3TrsN3oA6VWsGpWvHjXy+ElkWM yVHjBsbvhmD6OVVBUi76o+CRx0pfV8kyqlAJsBW+TP+B+aLacs/auydjV1vvH3RcuphJ 2wPo8fNWmzow4T96tL41GyZaI8mTU2es85nc5/soqQwhhmmyLO99Z+M89BJFOQN/sES9 nuNbDSwx/2WJHxvDxCwPm4xtatki6m803L4IJvc3n1WgIy6u8uC8rdvubkKAbXCHFxVy cHqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u7Qk1Sx4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f18-20020a056a00229200b006e081c9be0fsi2524956pfe.392.2024.02.15.22.55.40 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:55:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u7Qk1Sx4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68119-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7420F2832FA for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 06:54:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D5CE1B95A; Fri, 16 Feb 2024 06:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u7Qk1Sx4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EDB8D1B812 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 06:53:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066429; cv=none; b=j//97qXGpbpiDbY/1/tHQDmQvwG8WzI+iZTH1od0qcPC3kKabO7G9z1NYzJFQA15ij4keSk/fb6H+CltIwPR8vYtDslS/PV8CoarpxWf8mgMom+ldQlOyUtV9VAGgnNqhpFJYEpFdOxrJVPXxU7f9r84N1dl2kb87xmMuTPYteI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066429; c=relaxed/simple; bh=qkEq3E8Km4jpaGRnx1Vm2eeB5z7Na+ns2sz54n6h9uI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UopiKH7eG+vgORDjQ7wwP5/j/rrhnExjPUNcU+AwxN6WgEp4Eiqqd5haNq2qDO7XBsuwdDUvh1ZsP+UgOqdO1YHS35uASMp0ugpFmvVrAjZx4mc8gbsXho6q00YoUbaBJEE/r72Ne1C5y0ivdVc+rjLVgIFFWPNYaFGa10SEnS8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u7Qk1Sx4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F02DC433A6; Fri, 16 Feb 2024 06:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066428; bh=qkEq3E8Km4jpaGRnx1Vm2eeB5z7Na+ns2sz54n6h9uI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u7Qk1Sx4GA+PGmFjQyCFB2rBOZ8P5QWLyc9Jh5KlH9OocfGntKGl75SuUz2Bi+9J4 3I5IfLJuVP+ogCoPL4n9b8H/U3Kr9ev+t5BHRElOVCFHW9FERbXvNH/eVG0iuhqURy Z+OMoy66+JIxkK9LzplSveGRMzqKLuPd4L3SwrGP46ODY1hm71WVuRIspzO50219nx N/DizssclSDGn1Sup9OZ4A0csADlHybg9vVfZ60a018fmhWDovvO8GvF71UcODibIu 6FBKW9V5mCgdrU19Lzl0/nnqd/D90L6uytIClTUUfNpDReTZSpSDuGpO5Zgzqh5+Gn EMDkYkElKaqqw== From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> To: jani.nikula@linux.intel.com Cc: linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" <jirislaby@kernel.org>, Joonas Lahtinen <joonas.lahtinen@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>, Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>, intel-gfx@lists.freedesktop.org Subject: [PATCH 05/21] drm/i915: remove intel_gvt_mmio_info::{device,addr_range} Date: Fri, 16 Feb 2024 07:53:10 +0100 Message-ID: <20240216065326.6910-6-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.1 In-Reply-To: <20240216065326.6910-1-jirislaby@kernel.org> References: <20240216065326.6910-1-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791037581344463602 X-GMAIL-MSGID: 1791037581344463602 |
Series |
drm/i915: remove unused structure members
|
|
Commit Message
Jiri Slaby
Feb. 16, 2024, 6:53 a.m. UTC
intel_gvt_mmio_info::device is not used since commit e0f74ed4634d
(i915/gvt: Separate the MMIO tracking table from GVT-g) and ::addr_range
was never used since its addition in commit 12d14cc43b34 (drm/i915/gvt:
Introduce a framework for tracking HW registers.). Drop them.
Found by https://github.com/jirislaby/clang-struct.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
---
drivers/gpu/drm/i915/gvt/mmio.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gvt/mmio.h b/drivers/gpu/drm/i915/gvt/mmio.h index bba154e38705..32ebacb078e8 100644 --- a/drivers/gpu/drm/i915/gvt/mmio.h +++ b/drivers/gpu/drm/i915/gvt/mmio.h @@ -62,10 +62,8 @@ typedef int (*gvt_mmio_func)(struct intel_vgpu *, unsigned int, void *, struct intel_gvt_mmio_info { u32 offset; u64 ro_mask; - u32 device; gvt_mmio_func read; gvt_mmio_func write; - u32 addr_range; struct hlist_node node; };