Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3298082pxj; Mon, 14 Jun 2021 20:20:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQyPYFX/yTCrtBS7xt1s/HtLo0+CnqMG7Q1vw0IIQ0+LFD1pU6vJmJrfJC4lOWpN9TI5oe X-Received: by 2002:a05:6e02:12ac:: with SMTP id f12mr16381791ilr.207.1623727252715; Mon, 14 Jun 2021 20:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623727252; cv=none; d=google.com; s=arc-20160816; b=qSLHIJ+3nvqoPip0Hb2z/oxqUoZU7ZjL4NE7nHT51M7WuyuLVGX/AjE2DTAdcrfbGD 4L+EZLEOlTfOejMa28iGa0EjrH60Pdrx5VC/ZNyu3CAPm7TaMjsKtofNV85BkW2bfvkR WIqsQlXekzEsmFWd38UTtNFfyuE5nsWUV7UxmNqZUXUw6Q0+SnSMbOMreNpzu0Bp2RKB 53szbI3nowpcB4fmvEw5WsHt3v5BLtdWkPSNBoC/xWIKgGV/PoJlDxpRFGK80/Sm5Q4G 8Yuj1nyARgG2Gf12EhCE6Q7cRPpkO37EkQETskQlsfm6rlHlA67A7nwKXo52QIgRgr/H TAiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=a+ZXocUgOW7jTiHRHBTxidsJxFSF3lJskTua1IdTmqI=; b=hlH+EuiGZ/Ty39TCGGj6gMSxi/7XR1roJBbFkTqbcTBWZa3BJZ4PUOOCs/8FR/usZ1 7mSYEbxBjhcW6NVKyQzH0V/ZEasGYCcJ88/5crZ5KUzo8QdCvVrTyDrdy7C5SBEMjLXc LnfdkhkCYnVv8oU9gyymd288BjC5vPQhsg/rFVg8zycNFIBnCAMMC4T3Y67ftEPvsoIQ XLKtjtYeGm7H0d++s/MVPjsQngK6ISrOiodA8xM/v8LvgzYQhEsxwK65BDmVTEMojyi2 8lWKBAHJsdVZpvbnXg5QzbbR+vDE9r3rJWQqnz3G3FmRn6/xNZY5vp+PzTZQ/KCKCy6o tjyg== 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 v17si17956843iln.123.2021.06.14.20.20.40; Mon, 14 Jun 2021 20:20:52 -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 S230410AbhFODWL (ORCPT + 99 others); Mon, 14 Jun 2021 23:22:11 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4908 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbhFODWJ (ORCPT ); Mon, 14 Jun 2021 23:22:09 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G3s3n5J9Vz6ys2; Tue, 15 Jun 2021 10:00:53 +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; Tue, 15 Jun 2021 10:04:01 +0800 Received: from [10.67.109.184] (10.67.109.184) 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; Tue, 15 Jun 2021 10:04:00 +0800 Subject: Re: [PATCH -next] drm/hyperv: Remove unused variable To: Thomas Zimmermann , , , CC: , , , References: <20210609024940.34933-1-pulehui@huawei.com> <078d9bb5-e7af-4961-f4c1-cd3ab415cff4@suse.de> From: Pu Lehui Message-ID: Date: Tue, 15 Jun 2021 10:04:00 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <078d9bb5-e7af-4961-f4c1-cd3ab415cff4@suse.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.109.184] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) 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 On 2021/6/9 15:46, Thomas Zimmermann wrote: > Hi > > Am 09.06.21 um 04:49 schrieb Pu Lehui: >> 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 >> -}; > > This constant should rather be used in the call to > drm_simple_display_pipe_init(). [1] > > Best regards > Thomas > > [1] > https://cgit.freedesktop.org/drm/drm-misc/tree/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c#n161 > > > >> - >>   static inline int hyperv_pipe_init(struct hyperv_drm_device *hv) >>   { >>       int ret; >> > Hi Thomas, Thanks for your suggestion, I will fix it in v2. Best regards Lehui