Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3271113pxj; Mon, 14 Jun 2021 19:32:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQCfd+GPbcVT8y8pkV9e02R1RRepLu1uWlNXQXPEolc9MprYweoIKts5Ux3BoZfehDfbiD X-Received: by 2002:a05:6402:510c:: with SMTP id m12mr18938468edd.126.1623724350789; Mon, 14 Jun 2021 19:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623724350; cv=none; d=google.com; s=arc-20160816; b=cBjDiLQavGjIg5d9ohvRH2BD4VX1FsTCKrL/zPrlMl5BVBd4kMpeuZtCvuDgfjOcTt 8ucHBUtxsWNfwp9+3j7/81fC2khuMG3X0S1u1yocCtMjtwtp0vDNZYe6/pj2JIXLOz8v Coa7bzNp7P/Q+xslLyfuVH5sHSj/modOI5sJdEQQuv0N0VPZ6/iDMRE5DLr22820dAzJ ESWUgRGtTEpW6mQu92RHEkB6k6CLDX+mNlruP42ZLfQoO5Bz/mnHAtDk4GKeCvgpibXc 3ENpkCia1qFoCh8sV+fkHFYleXF3GCBFrTT4+L5STXq9K3hvtLYCD3TKPhAocJa9O4aa MdWA== 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=jOnqgwwcOC3rNFCzO2Aag/C1YBQejxTeqfZQCaAdDVU=; b=nRkAgnW02XMxs30mlyE1/7sXEM0IJYn39V3TcHd50/m+CYCoCDY4jG+OvXY0zC9GcI 6cOFyf0D35XwLlIg18tXKNWmY3LQMGc8Ryu1OlImjpyPekkp5egCquN7wytpOglSeJNh sr43MEJMNxAaAXukakCA84PBJtfo5XTq1HxMf6z3VT/Ytf5Az/OfrauYRLTmDsf5+6qX hDW8mwpg7teB1eH/AJ1/X5UCz6XKZrJSP9UP1Wwj7adjZ+hska70kTM4ntb3EnezcviD 5C5IFX+srBH84pGX/bvznxzAP6lh9bqDTtH+fRLZ0C0D4Bf3xLDfPNUUes7t3Q/oPWw7 sakA== 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 b10si9266423ede.515.2021.06.14.19.32.07; Mon, 14 Jun 2021 19:32:30 -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 S230344AbhFOCbV (ORCPT + 99 others); Mon, 14 Jun 2021 22:31:21 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:10057 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230302AbhFOCbU (ORCPT ); Mon, 14 Jun 2021 22:31:20 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G3sD16pGXzZdcf; Tue, 15 Jun 2021 10:08:01 +0800 (CST) Received: from dggpemm500019.china.huawei.com (7.185.36.180) by dggemv703-chm.china.huawei.com (10.3.19.46) 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:10:56 +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:10:56 +0800 Subject: Re: [PATCH -next] drm/hyperv: Remove unused variable To: Deepak Rawat , Thomas Zimmermann , , CC: , , , References: <20210609024940.34933-1-pulehui@huawei.com> <078d9bb5-e7af-4961-f4c1-cd3ab415cff4@suse.de> <2bf51ac723cb097685dd4c89926599d939d31765.camel@gmail.com> From: Pu Lehui Message-ID: <5944abf7-7535-f425-fdc3-58e6bd032186@huawei.com> Date: Tue, 15 Jun 2021 10:10:55 +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: <2bf51ac723cb097685dd4c89926599d939d31765.camel@gmail.com> 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: dggems706-chm.china.huawei.com (10.3.19.183) 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/14 22:01, Deepak Rawat wrote: > On Wed, 2021-06-09 at 09:46 +0200, 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 >> >> > > Hi Pu, > > Thanks for the patch. Is it possible to send another patch as per > suggestion by Thomas. There is a kernel test robot failure as well. > > Deepak > > . > Hi Deepak, Thanks for your reply, I will send v2 soon. Best regards Lehui