Message ID | 20240216065326.6910-13-jirislaby@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp338665dyb; Thu, 15 Feb 2024 22:56:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVW18ilpW2jIWpM1+VNqHmZwT7mRrA685TlrS2ivWfPM1F60K4WTcmYEExae2sUQ6/kp1JoBp/zVqpJDTWvz+FsCBN/pQ== X-Google-Smtp-Source: AGHT+IE4V4QHLG9Eer1s+lbQxQIxCZ2aJp0o9ddy6TayAftbgiV5NldNIcvyq6CDujZpV8EaG3za X-Received: by 2002:ac8:5f4b:0:b0:42d:c7da:eb43 with SMTP id y11-20020ac85f4b000000b0042dc7daeb43mr4962194qta.1.1708066570634; Thu, 15 Feb 2024 22:56:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066570; cv=pass; d=google.com; s=arc-20160816; b=o6YSy5vcS0ADIAE8VYu9bIZZCrjcIST95UnxWxgMKQqDPhMDiWwlyVdvUiPAHhN7zh bkL1dAcery88DGVk5rI8dZM0Q7z1oO0lVRKc/ZSY4oIGRx6+3mvpiXxrkHXpJARrgp4R JGrFkWUuoMA5GRDLIEhMRtu21qLU0EoIE2gPMRJpRj0EqiqOKxxP7AWFCVVMAVmUOtYR njvtSa61n5on5YvyUx2KnNpOstuNADkwVcUL48aHjZivIrbdSLBaVeDYUhiDNUXsKAG9 HR9WQf9r47uLaq30YYR467bdjSpBmiNttlS19v/5vuDQsE9LgLvceUQRvH1tUvtFzDfR JuEA== 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=hodXtwu8V1BhQDC9etuwvcRmEibeFHKJr4TIdSZ8gFo=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=OymGYgLfdWYGlVKbjzEV1e8NSar0PkDWaUdwG7o1Mgb6827Eb16Kym5ZPE9f2YCKQQ wxWiMG9Ag01/ZMAEZGJKa/poAQPIZ6pqiUb051ThPG+UrzbQXJFc33IZKvBrD2c8I/7V HiSjbE8PrnOizq0EgnCYRHi14OMHQxORo3s6Phu4WOLI+1FVOoVw909zGt0cLLigG4jN PNH8zsrSB/cnTj7cuwyy07S/KbdvTaTveCf8CGQp1uzkvX1Xfmp9kdBOQefQnWqLc/ls 4rKgAZaXXnTajwwxXyQM+ODpcW8ZnqZrQl6odcpxNY3QGQIO1Z77/jH97plJJv4FC5PR MWjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KDfx5flm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z17-20020ac87f91000000b0042dd522fa45si2536202qtj.678.2024.02.15.22.56.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:56:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KDfx5flm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68126-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68126-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 697F51C213FE for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 06:56:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54D511CD23; Fri, 16 Feb 2024 06:54:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KDfx5flm" 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 C3E9B1CAB7 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 06:54:09 +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=1708066449; cv=none; b=qxMONfvXYhLm0y+aX7tKl2zviOcPFNRXNcJJUR78D7urTIyPLPScnzBfFUesOEGysupiZusVKxeVs1QuD79qiuROCakGHUSC33iFio+VPD0RMm0g47sQqi718IjtLYrIM3HPzrjUuSHsA6hJl3lA2SXCDFUfEcdy4t1o+wRVwAo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066449; c=relaxed/simple; bh=8o0wvfgtp9sQfzOgFfW8t1yUu/RnxbOaOuDmpI5A5qk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=anwak8RlJe7tKv/tv77bh5F/Iry8XufU+L6qQeIp7GiGifxKomT9crjRqoFUO87Mmhn08raa64ufaDI8P9zqVc2GxyZ1lvRMeFlZAgp8+3yl+zzbqi6uzWjAEv1/yxHYXQfwetxQpMNlIlxOIfaWSHC5u3G8t8fZIQ2mIHgcSpE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KDfx5flm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1434FC433C7; Fri, 16 Feb 2024 06:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066449; bh=8o0wvfgtp9sQfzOgFfW8t1yUu/RnxbOaOuDmpI5A5qk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KDfx5flmsaTtfTYf4Irng/CnPwsgJzJ+dCaPmXn2In2KJowAOIDfk3S4a8EZN8Wci BNHEy6+fHdkUEo33XX5p8tlaEut0C49KaVhNLaHht/oPG2DVLypJecnoYueC81JbXi V0HMdYliYRfKvpOuoGFohYyUEurgXau3BOqP80MA+a6fFF2OrIEUmbWa6oaOlOC/I9 l6Py+6hUpe5SiWWTWl///JzRTnAmmSkRN2KvUepgwDllHeTf1tMrfqLy5uFFpg1g6y H+/gIlTcFRsYy4ZdCjDqRfIxjzk/y2rYHqBZoql1212DKkabX918XDQfNWKRkEzMzb xNGpHrnT1crUQ== 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 12/21] drm/i915: remove intel_vgpu_fence::base Date: Fri, 16 Feb 2024 07:53:17 +0100 Message-ID: <20240216065326.6910-13-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: 1791037612058951415 X-GMAIL-MSGID: 1791037612058951415 |
Series |
drm/i915: remove unused structure members
|
|
Commit Message
Jiri Slaby
Feb. 16, 2024, 6:53 a.m. UTC
intel_vgpu_fence::base was never used since its addition in commit
28a60dee2ce6 (drm/i915/gvt: vGPU HW resource management). Drop it.
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/gvt.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index c57aba09091f..b6fe17f1a16f 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -89,7 +89,6 @@ struct intel_vgpu_gm { /* Fences owned by a vGPU */ struct intel_vgpu_fence { struct i915_fence_reg *regs[INTEL_GVT_MAX_NUM_FENCES]; - u32 base; u32 size; }; @@ -444,7 +443,6 @@ int intel_gvt_load_firmware(struct intel_gvt *gvt); #define vgpu_hidden_gmadr_end(vgpu) \ (vgpu_hidden_gmadr_base(vgpu) + vgpu_hidden_sz(vgpu) - 1) -#define vgpu_fence_base(vgpu) (vgpu->fence.base) #define vgpu_fence_sz(vgpu) (vgpu->fence.size) /* ring context size i.e. the first 0x50 dwords*/