Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1014864pxy; Wed, 28 Apr 2021 20:22:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+yzpkgmZsTKudj3aSu5En734WFIsiatJSENuElZrb9SC+6DHRQ47xSi1bdAtMYTNrIFct X-Received: by 2002:a05:6402:2050:: with SMTP id bc16mr15294720edb.179.1619666526224; Wed, 28 Apr 2021 20:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619666526; cv=none; d=google.com; s=arc-20160816; b=030blNkP6tqvlhktmJrrt2AySSXQpGMI/DNWht0SyJ7Ya7ctLp1WElEAxt979nBYxn Q2JrC6MW5YEDl1gcMukh4V3ODRw1LHRuRghm+a7soV/n9m9dZdLR50AszaGydBno2+AG ZiCcFmYMDmZvyWZOV1LdvzMMLfA4aIr7Er7Pdkq/O7fu8pz/2YwIzlNxpJp4I5FJrxB6 5La5//5m4egBxuzudMprx1sxOIjcD+oXsLMUGwK4q630nRqZPhS+b1yI4EFJH43YlwsS dy6GuhSK6tTQkExZIzWe+ZjxquGx0320J/QJUCM3DCH+sHg/QfaUwBqwiws2dcR0yMgb rSeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Bv/nx1yeXHhnabvY81bkRkXFnBSLZwcL3rTjgkeyM/M=; b=obxnSIDiIef/MRjcF1pvsRjHvo9SQe7pU/A7QMGcxK6GlyzksmSuDPnW4u3OzMjGVP 01m8+k/GxS1H9PZeipBSTiGXaxoTAujMefmDspk/X/0VhJsx7XAbgGalRfensTnilqC1 hwiszj1ZhkMyrsaf8/ZZW1OtJqU2Hsb7kqE9UWxRn1DeRFyqlqEnIhV6EZftZYmKVRcr 7SvkmtvdovbWCTow/m52z9cKIQEl9KYwvzOw6ey4+OfQw5Ts4F7KbkdRWRE7AZiORhm4 vXbN1iCRcD1cPTIPrplpvKvT/Awe4INNSoGBukAU410DliO32EUYah+pkcUa+zYBNkf7 c/jg== 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=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si1649415edm.205.2021.04.28.20.21.43; Wed, 28 Apr 2021 20:22:06 -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=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233053AbhD2DS6 (ORCPT + 99 others); Wed, 28 Apr 2021 23:18:58 -0400 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:47120 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhD2DS5 (ORCPT ); Wed, 28 Apr 2021 23:18:57 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id BAD4F4002A7; Thu, 29 Apr 2021 11:18:09 +0800 (CST) From: Wan Jiabing To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Aric Cyr , Rodrigo Siqueira , Qingqing Zhuo , Aurabindo Pillai , Bhawanpreet Lakha , Jacky Liao , Meenakshikumar Somasundaram , Nicholas Kazlauskas , Wenjing Liu , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] drm/amd/display: Remove duplicate declaration of dc_state Date: Thu, 29 Apr 2021 11:18:02 +0800 Message-Id: <20210429031804.19487-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGUxKSVZLSBhMGkkfGB1IGk9VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Nwg6Vgw5Hz8QGkkXEDgXMk1J QjQaCyFVSlVKTUpCTU1NSUJLT0xLVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFJQ0tKNwY+ X-HM-Tid: 0a791ba245b9d991kuwsbad4f4002a7 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are two declarations of struct dc_state here. The later one is closer to its user. Remove the former duplicate. Signed-off-by: Wan Jiabing --- drivers/gpu/drm/amd/display/dc/dc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 8108b82bac60..cad045db6ea2 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -276,8 +276,6 @@ enum surface_update_type { /* Forward declaration*/ struct dc; struct dc_plane_state; -struct dc_state; - struct dc_cap_funcs { bool (*get_dcc_compression_cap)(const struct dc *dc, -- 2.25.1