diff mbox

[1/6] DMA: shdmac: Keep #include sorted alphabetically

Message ID 1399935736-16854-2-git-send-email-laurent.pinchart+renesas@ideasonboard.com (mailing list archive)
State Accepted
Commit a5cdc1c15562
Delegated to: Vinod Koul
Headers show

Commit Message

Laurent Pinchart May 12, 2014, 11:02 p.m. UTC
This helps detecting duplicate includes.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
 drivers/dma/sh/shdmac.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Comments

Andy Shevchenko May 13, 2014, 8:14 a.m. UTC | #1
On Tue, 2014-05-13 at 01:02 +0200, Laurent Pinchart wrote:
> This helps detecting duplicate includes.

No need to do that, since we have nice helper
make includecheck

Similar comment to patch 3/6.
But if you have stronger explanation why it's needed besides that... you
are welcome )

> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
>  drivers/dma/sh/shdmac.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/dma/sh/shdmac.c b/drivers/dma/sh/shdmac.c
> index dda7e75..7313537 100644
> --- a/drivers/dma/sh/shdmac.c
> +++ b/drivers/dma/sh/shdmac.c
> @@ -18,21 +18,21 @@
>   *
>   */
>  
> +#include <linux/delay.h>
> +#include <linux/dmaengine.h>
>  #include <linux/init.h>
> +#include <linux/interrupt.h>
> +#include <linux/kdebug.h>
>  #include <linux/module.h>
> +#include <linux/notifier.h>
>  #include <linux/of.h>
>  #include <linux/of_device.h>
> -#include <linux/slab.h>
> -#include <linux/interrupt.h>
> -#include <linux/dmaengine.h>
> -#include <linux/delay.h>
>  #include <linux/platform_device.h>
>  #include <linux/pm_runtime.h>
> +#include <linux/rculist.h>
>  #include <linux/sh_dma.h>
> -#include <linux/notifier.h>
> -#include <linux/kdebug.h>
> +#include <linux/slab.h>
>  #include <linux/spinlock.h>
> -#include <linux/rculist.h>
>  
>  #include "../dmaengine.h"
>  #include "shdma.h"
Laurent Pinchart May 13, 2014, 10:15 a.m. UTC | #2
Hi Andy,

On Tuesday 13 May 2014 11:14:20 Andy Shevchenko wrote:
> On Tue, 2014-05-13 at 01:02 +0200, Laurent Pinchart wrote:
> > This helps detecting duplicate includes.
> 
> No need to do that, since we have nice helper
> make includecheck

We do, but it's much quicker and easier to spot the duplicate visually when 
modifying the source code than having to run an external script.

> Similar comment to patch 3/6.
> But if you have stronger explanation why it's needed besides that... you
> are welcome )
> 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >  drivers/dma/sh/shdmac.c | 14 +++++++-------
> >  1 file changed, 7 insertions(+), 7 deletions(-)
> > 
> > diff --git a/drivers/dma/sh/shdmac.c b/drivers/dma/sh/shdmac.c
> > index dda7e75..7313537 100644
> > --- a/drivers/dma/sh/shdmac.c
> > +++ b/drivers/dma/sh/shdmac.c
> > @@ -18,21 +18,21 @@
> > 
> >   *
> >   */
> > 
> > +#include <linux/delay.h>
> > +#include <linux/dmaengine.h>
> > 
> >  #include <linux/init.h>
> > 
> > +#include <linux/interrupt.h>
> > +#include <linux/kdebug.h>
> > 
> >  #include <linux/module.h>
> > 
> > +#include <linux/notifier.h>
> > 
> >  #include <linux/of.h>
> >  #include <linux/of_device.h>
> > 
> > -#include <linux/slab.h>
> > -#include <linux/interrupt.h>
> > -#include <linux/dmaengine.h>
> > -#include <linux/delay.h>
> > 
> >  #include <linux/platform_device.h>
> >  #include <linux/pm_runtime.h>
> > 
> > +#include <linux/rculist.h>
> > 
> >  #include <linux/sh_dma.h>
> > 
> > -#include <linux/notifier.h>
> > -#include <linux/kdebug.h>
> > +#include <linux/slab.h>
> > 
> >  #include <linux/spinlock.h>
> > 
> > -#include <linux/rculist.h>
> > 
> >  #include "../dmaengine.h"
> >  #include "shdma.h"
diff mbox

Patch

diff --git a/drivers/dma/sh/shdmac.c b/drivers/dma/sh/shdmac.c
index dda7e75..7313537 100644
--- a/drivers/dma/sh/shdmac.c
+++ b/drivers/dma/sh/shdmac.c
@@ -18,21 +18,21 @@ 
  *
  */
 
+#include <linux/delay.h>
+#include <linux/dmaengine.h>
 #include <linux/init.h>
+#include <linux/interrupt.h>
+#include <linux/kdebug.h>
 #include <linux/module.h>
+#include <linux/notifier.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
-#include <linux/slab.h>
-#include <linux/interrupt.h>
-#include <linux/dmaengine.h>
-#include <linux/delay.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
+#include <linux/rculist.h>
 #include <linux/sh_dma.h>
-#include <linux/notifier.h>
-#include <linux/kdebug.h>
+#include <linux/slab.h>
 #include <linux/spinlock.h>
-#include <linux/rculist.h>
 
 #include "../dmaengine.h"
 #include "shdma.h"