Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp304838pxf; Thu, 1 Apr 2021 01:22:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDoHxmAIubOYA0zA9fZH3jBrAGDka37qcWNOMlTMkas9XJ2ECKcR3wrIxsl6B8T5M0TN82 X-Received: by 2002:a17:906:c143:: with SMTP id dp3mr7719664ejc.499.1617265367954; Thu, 01 Apr 2021 01:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617265367; cv=none; d=google.com; s=arc-20160816; b=Hby65LJ1bbHWRdbF2/mhkw1CFLwR8GrQAO93UNj5cMMmstLVBsIcif4RYDJ2iAawAK Ac40A40DDZmzAzeEJoGAZYpWkF15sULDxS0cJIJ9chT4o8my03OG3Tkm3/SrYm64F7pB ZiFRXtl7od554cwkbIRbMUW8k/aR+iYEVnrCdas2T3BEmQJOwLHWUBwqEXRIPuOOWZ9V XDPoaMtevr9N1CLSGuCqVSgTL6eWnJbb4Sw7f0xKVZHiIzc1IsbKvQYlqmaKuwC/Ba+r ZDGAK7G5TGPWaU/JEWE3vLqgr33vNCUCYHRRjlhDzo5gfAyGINcwWW2xzm4+o6DkCxeY ovyQ== 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=I02U8hJsm4vsz5vEpaTJknMnHgQwfcyDaXpyEJCg/24=; b=kCT8X3PYQh5oq6w5f3pXoodqHwawewR0d7sNYvljIds9GLUgi69KVdW5ZK5KvkiLRJ rSBOqXxvQd0fc486vW/UrZkdZev1W6YQ0m3l9UxUJTfzsoJgt7tvExgbxMO48eB7Kcdf hfvW2Jagi+3u4AVePARkL4zk3MCDovCjU9WizJLbpijhf/e4m4QGqE8ShJTgIGF5JAJo RpUl/WDHWo63TkdDP9FTTtqpnsyKs2Hic0vorJpC2CZ85U23mJYxd/zjj4Is3Rmh46il /XaBtcRMUs8aRRXrPgRAI025i0/PQJu3Vl+vgx9FzdC0tE+A0j61sT8cQmJU0WzMRg7B KZhA== 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 v21si4133030ejg.244.2021.04.01.01.22.25; Thu, 01 Apr 2021 01:22:47 -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 S232585AbhDAISF (ORCPT + 99 others); Thu, 1 Apr 2021 04:18:05 -0400 Received: from mail-m17637.qiye.163.com ([59.111.176.37]:16584 "EHLO mail-m17637.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbhDAIRe (ORCPT ); Thu, 1 Apr 2021 04:17:34 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17637.qiye.163.com (Hmail) with ESMTPA id BF44E98011F; Thu, 1 Apr 2021 16:17:32 +0800 (CST) From: Wan Jiabing To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] drm/drm_internal.h: Remove repeated struct declaration Date: Thu, 1 Apr 2021 16:17:03 +0800 Message-Id: <20210401081704.1000863-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 oVCBIfWUFZS05CShpPSUgeQ0hMVkpNSkxJTU5LTkhKS0xVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OhA6IRw5HT8RHisjKSNLQgIe PjwaFB5VSlVKTUpMSU1OS05IT0pKVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFKQkhCNwY+ X-HM-Tid: 0a788c824d65d992kuwsbf44e98011f Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct drm_gem_object is declared twice. One is declared at 40th line. The blew one is not needed. Remove the duplicate. Signed-off-by: Wan Jiabing --- drivers/gpu/drm/drm_internal.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index fad2249ee67b..1265de2b9d90 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h @@ -170,7 +170,6 @@ void drm_sysfs_connector_remove(struct drm_connector *connector); void drm_sysfs_lease_event(struct drm_device *dev); /* drm_gem.c */ -struct drm_gem_object; int drm_gem_init(struct drm_device *dev); int drm_gem_handle_create_tail(struct drm_file *file_priv, struct drm_gem_object *obj, -- 2.25.1