Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F25EC433C1 for ; Thu, 25 Mar 2021 09:05:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B412461A1E for ; Thu, 25 Mar 2021 09:05:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B412461A1E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EE1186EB71; Thu, 25 Mar 2021 09:05:27 +0000 (UTC) Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by gabe.freedesktop.org (Postfix) with ESMTPS id 377AF6EB71 for ; Thu, 25 Mar 2021 09:05:26 +0000 (UTC) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8985E8C9; Thu, 25 Mar 2021 10:05:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1616663124; bh=/SywUhKN0TyjTDbmFwZZQmOsTEDAh0nvpn/dDHY+Nrc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E7IpUKonP2G+CJe0y9GlvUurm3qlQRRoNc7AkmcfWBCfMISo5Ik/lbtQ6istzeDaS xZmjZw3gtxKL0qrD/M+DDg84q4Up8U+Dpph2k+j5GBQI4zrazi5GVvUw0KFJztt9D1 SLXV047N1+/VlnlDZoqEXc8KZhd4SJ8vcXPRHdts= Date: Thu, 25 Mar 2021 11:04:39 +0200 From: Laurent Pinchart To: Wan Jiabing Subject: Re: [PATCH] drivers: gpu: drm: Remove duplicate declaration Message-ID: References: <20210325045022.847135-1-wanjiabing@vivo.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210325045022.847135-1-wanjiabing@vivo.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomi Valkeinen , David Airlie , Sebastian Reichel , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jyri Sarha , kael_w@yeah.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Wan, Thank you for the patch. On Thu, Mar 25, 2021 at 12:50:19PM +0800, Wan Jiabing wrote: > struct dss_device has been declared at 51st line. > Remove the duplicate. > > Signed-off-by: Wan Jiabing > --- > drivers/gpu/drm/omapdrm/dss/omapdss.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h > index a40abeafd2e9..2658aadee09a 100644 > --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h > +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h > @@ -52,7 +52,6 @@ struct dss_device; > struct omap_drm_private; > struct omap_dss_device; > struct dispc_device; > -struct dss_device; > struct dss_lcd_mgr_config; > struct snd_aes_iec958; > struct snd_cea_861_aud_if; While at it, could you sort these forward declarations alphabetically, so that duplicates are easier to see ? -- Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel