Skip to content

checkpatch checks for trailing semicolons on conditionals

Andy Whitcroft linux-mips linux-s390 linux-um linuxppc-dev lkml netdev netfilter-devel 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am exportbomb.1187270320@pinky

Versions newest first

  1. v1 Latest6 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6mips: irix_getcontext will always fail EFAULTarch/mips/kernel/irixsig.c+1 -11 reply
2/6powerpc: hash_preload fails to preload under CONFIG_PPC_MM_SLICESarch/powerpc/mm/hash_utils_64.c+1 -10 replies
3/6sh: remove extraneous ; on scif_sercon_putc wait looparch/sh/kernel/early_printk.c+1 -11 reply
4/6infiniband: mlx4_MAD_IFC copies out response unconditionallydrivers/infiniband/hw/mlx4/mad.c+1 -11 reply
5/6irda_nl_get_mode: always results in failurenet/irda/irnetlink.c+1 -10 replies
6/6netfilter: xt_u32: fix length checks in u32_match_itnet/netfilter/xt_u32.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] checkpatch checks for trailing semicolons on conditionals

A couple of people suggested adding checks to checkpatch for trailing semicolons on conditionals, where the conditional block may not be actually conditional:

	if (err);
		return err;

While regression testing the changes, I ran these checks across the whole of 2.6.23-rc3 and there appear to be 5 places where this is occurs (above and beyond the IPv6 one which triggered this effort) and a benign use which could be confused later which it seems safest to fix.

Following this email are 6 patches for these issues, relevant maintainers cc'd. All against 2.6.23-rc3

-apw