Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5142349pxj; Wed, 9 Jun 2021 10:04:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2ryVTa9DiRkoVTEn+TQgUzQYbAo+iUP97AV2qnmBuQiMJhm3b6gdqXnpyBOv2paMBK5rk X-Received: by 2002:a50:eb47:: with SMTP id z7mr469048edp.68.1623258288969; Wed, 09 Jun 2021 10:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258288; cv=none; d=google.com; s=arc-20160816; b=UuB3KRo7FT5Lnp7FKYlyc4GD/bdjKEtQq3547fPgFxOnt8OeCeKg/Cu+ai3OxIVZtz ChSg9X4jl0T6fBunkprbEgUctRD5poOvc1M6sHt8Ez3uaIQDchUaa+oQTzPAjxHF322x iH4xiE5Up/KYbQ19gT8jusoJb3ludW57uEQHmolyQ6RvWUHSuYJ27QMKwssL0MyvxnQK 6mOH5ZtLPSEdLRV0ChpSPxRJU/uUBBrviPmw/w0Wsd8FPppcsyQBTBn8fWDqGhIM0NuJ kpve/vPhyIt37kTYm5sziNNiTW+OJqjzoRC1FQrNcHQx/PSPEAzb+hI427Vy9lndwsLQ xdcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=p8f9f0gER6Gbw5TXxgNMCAjAVW/I6b2VJCDmkF634KE=; b=vHqNmOS5rvEjIW70xi2Go85TZiFIWStfb4kK/gdn1ChOQ8aV9LEaWZr+1t6xWaDngn dRxXWlAy44neFp7M0wev/fCcWeM+77UYOtbj9w372yPv2VSTp0paRNFJjE6Lb1zMCdJp SnzKavT6x6oOxSi1AzrP/MggGy8PdWAuUt7+AEHaSMTIcGxAWauwAno15ZRDMoBYnpDq Glm1fuObSmFRZhAHqArEisbD2N9JEhdlT75lU1uFQ5gN4LbmvzJyGB6SwEfUsMwbtewy EXUU55vYie0LAEmKoeGwZirMRC+RgFK5v/I0PluN9fLF+e4bAsdLVuNPmaDlO/LZa/iH gGVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu6si267737ejb.547.2021.06.09.10.04.13; Wed, 09 Jun 2021 10:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235918AbhFICuv (ORCPT + 99 others); Tue, 8 Jun 2021 22:50:51 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:5296 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232690AbhFICuv (ORCPT ); Tue, 8 Jun 2021 22:50:51 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4G0BJM4Dy5z1BJmC; Wed, 9 Jun 2021 10:44:03 +0800 (CST) Received: from dggpemm500019.china.huawei.com (7.185.36.180) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 10:48:55 +0800 Received: from ubuntu1804.huawei.com (10.67.174.98) by dggpemm500019.china.huawei.com (7.185.36.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 10:48:54 +0800 From: Pu Lehui To: , , CC: , , , , Subject: [PATCH -next] drm/hyperv: Remove unused variable Date: Wed, 9 Jun 2021 10:49:40 +0800 Message-ID: <20210609024940.34933-1-pulehui@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.98] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500019.china.huawei.com (7.185.36.180) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-const-variable' warning: drivers/gpu/drm/hyperv/hyperv_drm_modeset.c:152:23: warning: 'hyperv_modifiers' defined but not used [-Wunused-const-variable=] Signed-off-by: Pu Lehui --- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c index 02718e3e859e..3f83493909e6 100644 --- a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +++ b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c @@ -149,11 +149,6 @@ static const uint32_t hyperv_formats[] = { DRM_FORMAT_XRGB8888, }; -static const uint64_t hyperv_modifiers[] = { - DRM_FORMAT_MOD_LINEAR, - DRM_FORMAT_MOD_INVALID -}; - static inline int hyperv_pipe_init(struct hyperv_drm_device *hv) { int ret; -- 2.17.1