Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp689231ybb; Thu, 28 Mar 2019 10:12:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyw5SWckvXqO3aakzg6kK06kmiIkIq+/eV0wdc6Ql5RqDQj6OBKDcUVuQ+O9NVx6CV++KpR X-Received: by 2002:a63:114d:: with SMTP id 13mr19571431pgr.216.1553793154246; Thu, 28 Mar 2019 10:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553793154; cv=none; d=google.com; s=arc-20160816; b=iinZMwEViHkRfCJOoXwdl2TIX+XPKUvD4xtKedinyNRBDi8eXpPhu3wpZ3c9S8VyBi OxQ0H9/5xgoYbGvuWjsnMTJWsqs9BsQZAsk1ITvvgPL9y96z4gOYvokgbW34lnX5r7Sn X1pgad8kC1qWjQvxGjyYHRNweV/p+mrHvsDlFprUNj7BQShcCrNE4Ob5V8zZx2ANHz/w 7ASK9hhRFzPKLzgyzp2KokrfMJOGVLr9PTly+grq34dsD7lJss/tr34GGi6ksrpNwCfs mDB6a/AfRMgOnaFzMp+BOynDwNg1nIKX/jBE6l9RqTdBVNdZSQ4l0FAKBpIv4wApEWck JPZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+luZLveOgW0ezcsj4kzoCAaYqh/zxiLbPom43ySTdYE=; b=k9vczWFggZXVjV+gscFvJdFP4JVX29a/kXpT/jLoZ+CQ0HbAHpkGXS1t3QNsXlxTQs sg0CO1GAiBmii4zd6CW00fN6yUf75OqyuWZz1M3IX0H+YGHPSCpBe9vKHIZbk1GHCJla 99cuzibrBwAjglWez/K9hXRrDri2dWMAd8BOhSC9Y+XexE04De531nug1PbE/taAGQdX xa4ia8BJcrkexNo8Aaf2S/dxQOHAK9IBWW3vb9Xb7lgBKfnKswI4BxNLSwwTZVJVdcZf n+v+W/+tLv+4srlWe+GPFjDzbj18a9IcGFjKf4uI9ls0JCLZ5qYiqbTiC5Q9VNz6+d04 LeKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TuGBn7iq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v82si18179042pfa.42.2019.03.28.10.12.18; Thu, 28 Mar 2019 10:12:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TuGBn7iq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727684AbfC1RLi (ORCPT + 99 others); Thu, 28 Mar 2019 13:11:38 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45632 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbfC1RLh (ORCPT ); Thu, 28 Mar 2019 13:11:37 -0400 Received: by mail-pf1-f195.google.com with SMTP id e24so10786128pfi.12 for ; Thu, 28 Mar 2019 10:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+luZLveOgW0ezcsj4kzoCAaYqh/zxiLbPom43ySTdYE=; b=TuGBn7iqwM5v0B4Bm40K5s7yE4HVHgUiAGzeNUmTNkQX2u0Pac6aMuoldukAlxjlf0 C+MG9KzehokpacpUTzp1R9wt5XVszcEjV9gj9ch0CtYN717yHeg+68wvH6qo5bLetrh4 ELDKDq/OT+P6lgOQQKHV+q+h+9JdACVWYQnIhVg7aJn9WibEp70dyMZb5WA9kDC9rQ7w IAjtcrvS/GjZ4eautGSBOSW+NDy19qBtJMA/d4x1oEdTy/GPz1uCuSssus3mhV6SSSed 1xNfA3y1WKGGO8DA8svueZGnozmXBqMGoqnG3sGF283Z8HdcFqUQjq8TiI2XeeapkGW5 g/og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+luZLveOgW0ezcsj4kzoCAaYqh/zxiLbPom43ySTdYE=; b=JDWs+SMgvs/LLHQb0eRthw7QgA+3I/drBKTwWfWuhpKlpEWu8Hw7deGuibaSUONgRp klJves3t3gmz2cLmVn1El9a78K+yZO7YMStJaP+uldrAakcXcOX9NKupLq6dcXQVIPob tm8NR6dfNMrGLcZyGzXjv5DIs8FuYp8x4kmL/GC8S5sac+3buNvNZvFLsJyuy/0RIMXT Ov5mJ1pcJV3kE+XOZyNGCC1MkDfX+4GCFg1o6yR5Hznu/tIlCLA7B0acKBXp4u0NPRm7 v854GeiYrmsIB8IkRKbKyiuzv1QKGLVBAzUZPlsNJvxRFX/wWaPR3gnoXg18d3d6qLPo ZW2Q== X-Gm-Message-State: APjAAAXlhvVBuyKoVs5CaBsrowmUNVVltXTWmX0W/H9DKEgKSTtf/klG /4VDJ3OCLlWcWIcYZl+YaFA= X-Received: by 2002:aa7:8694:: with SMTP id d20mr41695287pfo.81.1553793096585; Thu, 28 Mar 2019 10:11:36 -0700 (PDT) Received: from CentOS76.localdomain ([49.205.222.128]) by smtp.gmail.com with ESMTPSA id n65sm89286677pfb.160.2019.03.28.10.11.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 10:11:35 -0700 (PDT) Date: Fri, 29 Mar 2019 00:32:03 +0530 From: Jagadeesh Pagadala To: Laurent Pinchart , a.hajda@samsung.com, airlied@linux.ie, daniel@ffwll.ch, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org Subject: Re: [PATCH v2] gpu:drm: Remove duplicate headers Message-ID: <20190328190203.GA27353@CentOS76.localdomain> References: <1553721116-37832-1-git-send-email-jagdsh.linux@gmail.com> <20190328065124.GB4846@pendragon.ideasonboard.com> <20190328160206.GA94653@CentOS76.localdomain> <20190328141210.GA4813@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <20190328141210.GA4813@pendragon.ideasonboard.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 28, 2019 at 04:12:10PM +0200, Laurent Pinchart wrote: > Hi Jagadeesh, > > On Thu, Mar 28, 2019 at 09:32:06PM +0530, Jagadeesh Pagadala wrote: > > On Thu, Mar 28, 2019 at 08:51:24AM +0200, Laurent Pinchart wrote: > > > On Thu, Mar 28, 2019 at 02:41:56AM +0530, jagdsh.linux@gmail.com wrote: > > > > From: Jagadeesh Pagadala > > > > > > > > Remove duplicate headers which are included twice. > > > > > > Could you, while at it, also sort the existing #include statements > > > alphabetically ? This should help avoiding similar issues in the future. > > > > > > > Signed-off-by: Jagadeesh Pagadala > > > > --- > > > > drivers/gpu/drm/bridge/panel.c | 1 - > > > > drivers/gpu/drm/i915/intel_display.c | 7 ------- > > > > 2 files changed, 8 deletions(-) > > > > > > > > diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c > > > > index 38eeaf8..eb9567d 100644 > > > > --- a/drivers/gpu/drm/bridge/panel.c > > > > +++ b/drivers/gpu/drm/bridge/panel.c > > > > @@ -15,7 +15,6 @@ > > > > #include > > > > #include > > > > #include > > > > -#include > > > > > > > > struct panel_bridge { > > > > struct drm_bridge bridge; > > > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > > > > index ccb6163..1166342 100644 > > > > --- a/drivers/gpu/drm/i915/intel_display.c > > > > +++ b/drivers/gpu/drm/i915/intel_display.c > > > > @@ -51,14 +51,7 @@ > > > > #include "intel_dsi.h" > > > > #include "intel_frontbuffer.h" > > > > > > > > -#include "intel_drv.h" > > > > -#include "intel_dsi.h" > > > > -#include "intel_frontbuffer.h" > > > > - > > > > -#include "i915_drv.h" > > > > -#include "i915_gem_clflush.h" > > > > #include "i915_reset.h" > > > > -#include "i915_trace.h" > > > > > > > > /* Primary plane formats for gen <= 3 */ > > > > static const u32 i8xx_primary_formats[] = { > > > From c9a68b204fe4bb013c2b8481ca8239c957dd69cc Mon Sep 17 00:00:00 2001 > > From: Jagadeesh Pagadala > > Date: Thu, 28 Mar 2019 21:20:12 +0530 > > Subject: [PATCH] gpu:drm: sort the existing #includes alphabetically > > > > Hi Laurent, > > > > Hopefully this helps. > > It does, thanks. If you squash it with your original patch and send a > v2, you can add my > > Reviewed-by: Laurent Pinchart > > > Signed-off-by: Jagadeesh Pagadala > > --- > > drivers/gpu/drm/bridge/panel.c | 2 +- > > drivers/gpu/drm/i915/intel_display.c | 4 ++-- > > 2 files changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c > > index eb9567d..000ba7c 100644 > > --- a/drivers/gpu/drm/bridge/panel.c > > +++ b/drivers/gpu/drm/bridge/panel.c > > @@ -9,11 +9,11 @@ > > */ > > > > #include > > -#include > > #include > > #include > > #include > > #include > > +#include > > #include > > > > struct panel_bridge { > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > > index 1166342..7956e89 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +++ b/drivers/gpu/drm/i915/intel_display.c > > @@ -46,13 +46,13 @@ > > > > #include "i915_drv.h" > > #include "i915_gem_clflush.h" > > +#include "i915_reset.h" > > #include "i915_trace.h" > > + > > #include "intel_drv.h" > > #include "intel_dsi.h" > > #include "intel_frontbuffer.h" > > > > -#include "i915_reset.h" > > - > > /* Primary plane formats for gen <= 3 */ > > static const u32 i8xx_primary_formats[] = { > > DRM_FORMAT_C8, > > -- > Regards, > > Laurent Pinchart --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gpu-drm-Remove-duplicate-headers.patch" From 25776c74d289f8c2e6c89d8838f3110981ce2515 Mon Sep 17 00:00:00 2001 From: Jagadeesh Pagadala Date: Fri, 29 Mar 2019 00:04:29 +0530 Subject: [PATCH v2] gpu:drm: Remove duplicate headers 1. Remove duplicate headers which are included twice. 2. Sort the existing #includes alphabetically Signed-off-by: Jagadeesh Pagadala Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/panel.c | 3 +-- drivers/gpu/drm/i915/intel_display.c | 9 +-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 38eeaf8..000ba7c 100644 --- a/drivers/gpu/drm/bridge/panel.c +++ b/drivers/gpu/drm/bridge/panel.c @@ -9,13 +9,12 @@ */ #include -#include #include #include #include #include -#include #include +#include struct panel_bridge { struct drm_bridge bridge; diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index ccb6163..7956e89 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -46,20 +46,13 @@ #include "i915_drv.h" #include "i915_gem_clflush.h" +#include "i915_reset.h" #include "i915_trace.h" -#include "intel_drv.h" -#include "intel_dsi.h" -#include "intel_frontbuffer.h" #include "intel_drv.h" #include "intel_dsi.h" #include "intel_frontbuffer.h" -#include "i915_drv.h" -#include "i915_gem_clflush.h" -#include "i915_reset.h" -#include "i915_trace.h" - /* Primary plane formats for gen <= 3 */ static const u32 i8xx_primary_formats[] = { DRM_FORMAT_C8, -- 1.8.3.1 --1yeeQ81UyVL57Vl7--