Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755597Ab3EQJ5x (ORCPT ); Fri, 17 May 2013 05:57:53 -0400 Received: from perceval.ideasonboard.com ([95.142.166.194]:54261 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753886Ab3EQJ5v (ORCPT ); Fri, 17 May 2013 05:57:51 -0400 From: Laurent Pinchart To: Prabhakar Lad Cc: DLOS , LMML , LKML , Mauro Carvalho Chehab , Hans Verkuil Subject: Re: [PATCH 1/7] media: davinci: vpif: remove unwanted header includes Date: Fri, 17 May 2013 11:58:08 +0200 Message-ID: <14563937.EKN96hEmBk@avalon> User-Agent: KMail/4.10.2 (Linux/3.7.10-gentoo-r1; KDE/4.10.2; x86_64; ; ) In-Reply-To: References: <1368709102-2854-1-git-send-email-prabhakar.csengg@gmail.com> <1561290.MnyCnpJz5W@avalon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2039 Lines: 53 Hi Prabhakar, On Friday 17 May 2013 10:40:24 Prabhakar Lad wrote: > On Thu, May 16, 2013 at 6:32 PM, Laurent Pinchart wrote: > > On Thursday 16 May 2013 18:28:16 Lad Prabhakar wrote: > >> From: Lad, Prabhakar > >> > >> Signed-off-by: Lad, Prabhakar > >> --- > >> > >> drivers/media/platform/davinci/vpif.c | 7 ------- > >> 1 files changed, 0 insertions(+), 7 deletions(-) > >> > >> diff --git a/drivers/media/platform/davinci/vpif.c > >> b/drivers/media/platform/davinci/vpif.c index ea82a8b..d354d50 100644 > >> --- a/drivers/media/platform/davinci/vpif.c > >> +++ b/drivers/media/platform/davinci/vpif.c > >> @@ -17,18 +17,11 @@ > >> * GNU General Public License for more details. > >> */ > >> > >> -#include > >> #include > >> #include > >> -#include > >> -#include > >> -#include > >> -#include > >> #include > >> #include > > > > I think you should keep most of those includes. For instance this file > > uses spinlock functions, so linux/spinlock.h should be included. It might > > work fine now due to nested includes, but if someone reorganizes the > > kernel headers internal includes then the driver might break. As a general > > rule of good practice you should include headers for all the APIs you use. > > OK, do you want me too drop the similar patches from this series ? Please at least go through them and make sure to keep the includes for APIs used in the file. If there's unneeded includes you can of course remove them, and if it turns out that all includes are useful please drop the patch. -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/