Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753845Ab3EPNCi (ORCPT ); Thu, 16 May 2013 09:02:38 -0400 Received: from perceval.ideasonboard.com ([95.142.166.194]:48159 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753474Ab3EPNCf (ORCPT ); Thu, 16 May 2013 09:02:35 -0400 From: Laurent Pinchart To: Lad Prabhakar Cc: DLOS , LMML , LKML , Mauro Carvalho Chehab , Hans Verkuil Subject: Re: [PATCH 1/7] media: davinci: vpif: remove unwanted header includes Date: Thu, 16 May 2013 15:02:54 +0200 Message-ID: <1561290.MnyCnpJz5W@avalon> User-Agent: KMail/4.10.2 (Linux/3.7.10-gentoo-r1; KDE/4.10.2; x86_64; ; ) In-Reply-To: <1368709102-2854-2-git-send-email-prabhakar.csengg@gmail.com> References: <1368709102-2854-1-git-send-email-prabhakar.csengg@gmail.com> <1368709102-2854-2-git-send-email-prabhakar.csengg@gmail.com> 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: 1677 Lines: 52 Hi Prabhakar, Thank you for the patch. 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. > > -#include > - > #include "vpif.h" > > MODULE_DESCRIPTION("TI DaVinci Video Port Interface driver"); -- 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/