Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3294539pxj; Mon, 14 Jun 2021 20:14:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyKa02/yqoe+A4QCOaKqz4KdnQ5JHY8h8eX5AQtOPyLGhbY8FuFSyW6Gi3fZ7KKGF2O3zq X-Received: by 2002:a05:6402:214:: with SMTP id t20mr21103391edv.20.1623726881124; Mon, 14 Jun 2021 20:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623726881; cv=none; d=google.com; s=arc-20160816; b=qHOub89TXwUw++oZVCQPzbLWcReFzQ8XY9uolVq/6Vs1nb7FN3JzPi5nfnNKHbx/cO B3w73hGiScRY75PTiJWe3kxs3BHdt0NPjmXJlzybkPSM2BlABxmHsJ7yyRNfK/VUku9m ujwICm5x9NrVn5O4qtLa/SqXCSf9GkWc8/chPXG9MvHMadmDDJ0aFHDhJ+8J5k7TT8Vt g30puAjolJgmR5xIJ9kSgQrJYZxng1M9GJ+P2AuqTiwxN4FRqreV6oAIabO0djh/fgte 59E5k0WXhkI2fj8RcZhCluxiF5J2fUgMVkhWvnWXxilKZMaSQOTojbnM10Grh07lsTMG CMDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=2NGlx/MBK69nwkssG8rurN5lNOst2YrvmRU1pasKI+A=; b=jG/A2LXp0Pdw+hXgNqMDMyAMwEucnO0xXjWmPtwv8SEZPlDJl8dgr5GdIOypGPa+PQ BdOPUpHd3kHWEg6TkM+5PqdRSUrJ5ivAJoNG8EA9jr8qqQlFQW3+GMh5vKR4EMTKcpbA FV/X74OYYo+V6CrrT/4XIfVLnC53vsAM/5v5rxNmutL4NU1fXefhezdjTOcp0zYUsoaM 5zSrfEJHdd4brSoRZHQpl35Yth73KKw1hA5ydhyMxv0/XBWvU4IkJdD46m6R/HgIgPyw a3iquLlQfkQm++9cNZLbb+s3OIZn/oNi2HNXpeolrccmypzXiApIqaaLzcic+MaJjP+5 IenQ== 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 z3si13092559ejr.183.2021.06.14.20.14.18; Mon, 14 Jun 2021 20:14:41 -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 S229809AbhFODPX (ORCPT + 99 others); Mon, 14 Jun 2021 23:15:23 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:10066 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbhFODPR (ORCPT ); Mon, 14 Jun 2021 23:15:17 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G3tbs6dwmzZdg8; Tue, 15 Jun 2021 11:10:17 +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 11:13:12 +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; Tue, 15 Jun 2021 11:13:12 +0800 From: Pu Lehui To: , , , CC: , , , , Subject: [PATCH v2 -next] drm/hyperv: Fix unused const variable 'hyperv_modifiers' Date: Tue, 15 Jun 2021 11:14:01 +0800 Message-ID: <20210615031401.231751-1-pulehui@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210609024940.34933-1-pulehui@huawei.com> References: <20210609024940.34933-1-pulehui@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.98] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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 There is a 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=] while the variable should be used in drm_simple_display_pipe_init() as suggested by Thomas, let's fix it. Fixes: 76c56a5affeb ("drm/hyperv: Add DRM driver for hyperv synthetic video device") Signed-off-by: Pu Lehui --- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c index 02718e3e859e..3aaee4730ec6 100644 --- a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +++ b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c @@ -163,7 +163,7 @@ static inline int hyperv_pipe_init(struct hyperv_drm_device *hv) &hyperv_pipe_funcs, hyperv_formats, ARRAY_SIZE(hyperv_formats), - NULL, + hyperv_modifiers, &hv->connector); if (ret) return ret; -- 2.17.1