Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp928602rdb; Thu, 15 Feb 2024 22:56:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVDQb3zwboSoGh3HktIQqNbDKPkmYRusAi/LeH99dHjRBAYy5/3dGWeZ6lroiZ0Wy2AA5TYI80GUqosW8I+1tvEzQivDPd0ajfCXdHFSQ== X-Google-Smtp-Source: AGHT+IHDFUkmY+wg7W2OEfdc2/v5gZxYtWm7lwTCayuwedTOKdOqWEfo/NvaEv6Z8INQM3xjn2oG X-Received: by 2002:a05:6358:d585:b0:17b:c8d:f396 with SMTP id ms5-20020a056358d58500b0017b0c8df396mr4130169rwb.29.1708066593269; Thu, 15 Feb 2024 22:56:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066593; cv=pass; d=google.com; s=arc-20160816; b=ShYbzIQ7FJKxC2X9Spvu465LWVb6hw7NPTVtwSAdzz7WS4shKubp38oGmWwTCKKS9W f8/fu6vx+2mblmcETT0EsXFqh+54IzglxfyzAi2pteQN4ePrOggmpcgJ+4pA57FLyM+e Xu+UIkZ+wFHkYPtOZ6o1KIC/3YMRgVO8Pt/5Eza3K2YSfCmJAT2LlvIoa85TDXjmf2GI 6bYIjyOwmQ7XxBsFC4LJCrHFeSBTVXI2KrjXcUaZX7prglMfFXBXkK+tP61t78kt+nEr BGhV7zV5zTn3CK1Wcu+DIawjg4A9wzVig4ZI1V6N68ZFoJB7mR6gYGLczB1RImzAbRmr xuNg== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68119-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g16-20020aa79dd0000000b006dfde776206si2479712pfq.75.2024.02.15.22.56.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:56:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68119-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 242F2B23D15 for ; Fri, 16 Feb 2024 06:54:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE1E81B940; Fri, 16 Feb 2024 06:53:49 +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 ; 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)" To: jani.nikula@linux.intel.com Cc: linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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) Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin 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; }; -- 2.43.1