Hi Mauro, On Tue, 2017-10-31 at 12:04 -0400, Mauro Carvalho Chehab wrote: > On lots of places, assert/return are starting at the first > column, causing indentation issues, as complained by spatch: > > drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/irq_private.h:32 irq_reg_store() warn: inconsistent indenting > > Used this small script to fix such occurrences: > > for i in $(git grep -l -E "^(assert|return)" drivers/staging/media/); do perl -ne 's/^(assert|return)/\t$1/; print $_' <$i >a && mv a $i; done This also catches labels that start with "return". Adding some whitespace to the regular expression may avoid these false positives. > Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx> > --- > .../pci/atomisp2/css2400/camera/util/src/util.c | 2 +- > .../hive_isp_css_common/host/event_fifo_private.h | 2 +- > .../host/fifo_monitor_private.h | 28 +++++----- > .../css2400/hive_isp_css_common/host/gdc.c | 8 +-- > .../css2400/hive_isp_css_common/host/gp_device.c | 2 +- > .../hive_isp_css_common/host/gp_device_private.h | 16 +++--- > .../hive_isp_css_common/host/gpio_private.h | 4 +- > .../hive_isp_css_common/host/hmem_private.h | 4 +- > .../host/input_formatter_private.h | 16 +++--- > .../hive_isp_css_common/host/input_system.c | 28 +++++----- > .../host/input_system_private.h | 64 +++++++++++----------- > .../css2400/hive_isp_css_common/host/irq.c | 30 +++++----- > .../css2400/hive_isp_css_common/host/irq_private.h | 12 ++-- > .../css2400/hive_isp_css_common/host/isp.c | 4 +- > .../css2400/hive_isp_css_common/host/mmu.c | 6 +- > .../css2400/hive_isp_css_common/host/mmu_private.h | 12 ++-- > .../css2400/hive_isp_css_common/host/sp_private.h | 60 ++++++++++---------- > .../atomisp/pci/atomisp2/css2400/sh_css_hrt.c | 2 +- > drivers/staging/media/imx/imx-media-capture.c | 2 +- [...] > diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/staging/media/imx/imx-media-capture.c > index ea145bafb880..149f0e1753a1 100644 > --- a/drivers/staging/media/imx/imx-media-capture.c > +++ b/drivers/staging/media/imx/imx-media-capture.c > @@ -463,7 +463,7 @@ static int capture_start_streaming(struct vb2_queue *vq, unsigned int count) > > return 0; > > -return_bufs: > + return_bufs: > spin_lock_irqsave(&priv->q_lock, flags); > list_for_each_entry_safe(buf, tmp, &priv->ready_q, list) { > list_del(&buf->list); This label should stay at the first column. regards Philipp _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel