Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp927999rdb; Thu, 15 Feb 2024 22:54:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWCqZMou6bjMhdQXilMZtcp575szEvScTbntCqpJcqU8pRCnYz8sx7p/s5fMelVTjgpokwZfoKO/MASX4FuGhc2zXNyuyVZ5SvGlVL0Tg== X-Google-Smtp-Source: AGHT+IEV0CZIq8fwJmZn7mQ6NGFn/bA2O3i83LOv7R75mUlxnsQKax3EXvpP9EmB5DqlCEu3VkKQ X-Received: by 2002:a05:690c:a81:b0:607:b85e:2d21 with SMTP id ci1-20020a05690c0a8100b00607b85e2d21mr4436927ywb.24.1708066468444; Thu, 15 Feb 2024 22:54:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708066468; cv=pass; d=google.com; s=arc-20160816; b=xrl3CzpgAQEMY1Y+xvFy0DUyAP5m8URe9CdXbIhNScsSfpWa1bOYPiPmbmNgIPkjDD 4kpXABqrWcsd6BCIeG3YFpotcC5kx7nR965Xk1ZngT1bHIBStgNb0DQqh8iCwch7i9St 40xiSPCFdJXwW9SJWPglPvf06n4ZHl0a5Pc07QeiO7iOOfQN5owyzS7Vzr4Wd8r6WXvn hYkUFBk7QVG1i95BD5VcerASRBF97tC89Zecg+gVfZyfYYXTrETmAv9aBTi/W3DtCYPu Ivz9tdPw8kEzB8+0/QYPuK8w8oAK177KAS7VemuJ5GGyAjYGCm8aG2XT7EQ/afIhMn8k zA4g== 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=gYKsDUiTrx9yPA28Ee/9jsC4zNpN7cDhlXDYddHkwdc=; fh=7ii8bnn+ZTeQOxdHt+mw4UkYyxgNVZW5u4vTB84Vals=; b=i5ChR4iP8o9p8aSU++C0Ss8QTK2c/KnUaWsXR6v0ughIZQPF142t0SLBeWeFvfLzPh o9vYKmYrffyeDaV/piOq8o6GLhfiNUJyAhhlYgBQGF97G5UkRbf4xKI51Ic0Qyu4ypN+ Opr7+ELBP6h1lBAj0IrYeAuYXU0smHDYxH2L2P69AN/CTERPuZd7EndmXo/TZX7IVu47 Awzay17bpW9SzkcqKs603dnnfhaPWZjjF2YL3hLA3qnwioBDD3m5oR6e/MWx3c2fplTh P4xPyXH2wB5V5kcz9d3t+7eqqjfELrMSoJNwQXvgq+7PuNWwltfgNiSuf49AWJSqotAE kBfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AZfOy8AS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p5-20020ac87405000000b0042c605fd8c7si3075638qtq.433.2024.02.15.22.54.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:54:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AZfOy8AS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68118-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68118-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 22BF61C226B9 for ; Fri, 16 Feb 2024 06:54:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6162F1B27D; Fri, 16 Feb 2024 06:53:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AZfOy8AS" 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 8FA6C1AACF for ; Fri, 16 Feb 2024 06:53:45 +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=1708066425; cv=none; b=PpCgHPb9LglTOExvlYii0gIm5IeBWxP7C9W+eTm/8F+535E43qChkaOKiauStnqQtYqBw99TiRlEysCyJu4KXyzupg7P/lGUbpwpoKXowEbpgiJDDihfXKYKtvz1SyR8CHxPkXPMzoNs2zJParLMX/jaqFT8TnyfmitQTrGelqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708066425; c=relaxed/simple; bh=sH0FzSylb4GHpKMjELKxOSqoIZwIATsF0+uo2uRnxfE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pQeU1QnNHcBeP/jH1TVpk17YEZVc5zTv1EB0Z2zUGleWvhLiu3Yx3MhjABQMPOzODHVs7EqqV5eRj9q/lyjPvh9IyfmK3GsEA1FB1fUwxux8UEuiG4I0cZR7ESKAl55a0Y1Kf18hbf/Wf3/7RuL/mxoGXpmyAGuuZ1m6s7X2HtQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AZfOy8AS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 932E8C433C7; Fri, 16 Feb 2024 06:53:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708066425; bh=sH0FzSylb4GHpKMjELKxOSqoIZwIATsF0+uo2uRnxfE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AZfOy8AS1VK794BqL6EDv6yN4/raYXNT5U7KlgAdOJiZS4GPNDzMCLba4+68d/6CH fQweIQd5bMxXv8H33HHDsDkqEnikj528gOFmAc3ypAnDT2qYip7vOoZOqlYZuRGorc xeiSKoxWi7pPX0S3hJF9YETECd9RujLyhyKZqqV/lcAQOClVYwOFp9EnO39LsUSKG1 aFFlIuiXlycxCnHFJ26ihTzCPz7pfYIiERAKyExjotKbiIzg9VuxrVuoFvvaac2nFj 0M07qcJK7luruzbR+Ai8jXgBVZcXkYWynqFyfjqq4KEm4LqbG8gpdPvoIp/BxqfDug RfX7JfabFHc0A== 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 04/21] drm/i915: remove intel_gvt_gtt::{mm_alloc_page_table,mm_free_page_table} Date: Fri, 16 Feb 2024 07:53:09 +0100 Message-ID: <20240216065326.6910-5-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_gtt::{mm_alloc_page_table,mm_free_page_table} are not used since commit ede9d0cfcb78 (drm/i915/gvt: Rework shadow graphic memory management code). 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/gtt.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/gtt.h b/drivers/gpu/drm/i915/gvt/gtt.h index 4cb183e06e95..fb96ea454fd1 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.h +++ b/drivers/gpu/drm/i915/gvt/gtt.h @@ -93,8 +93,6 @@ struct intel_gvt_gtt_gma_ops { struct intel_gvt_gtt { const struct intel_gvt_gtt_pte_ops *pte_ops; const struct intel_gvt_gtt_gma_ops *gma_ops; - int (*mm_alloc_page_table)(struct intel_vgpu_mm *mm); - void (*mm_free_page_table)(struct intel_vgpu_mm *mm); struct list_head oos_page_use_list_head; struct list_head oos_page_free_list_head; struct mutex ppgtt_mm_lock; -- 2.43.1