On Mon, 2014-03-10 at 12:33 -0700, Greg KH wrote: > On Mon, Mar 10, 2014 at 11:48:50AM -0700, Joe Perches wrote: [] > > I've no strong opinion of the need to write code > > like: > > > > { > > u32 iterations = 0; > > > > while (arch_spin_is_locked(lock)) > > delay_backoff(iterations++); > > } > > I wonder if there's a way to "count" the size of the function, and only > complain if it's longer than 4-5 lines long? No, there's isn't really. checkpatch works on patch hunks. The function scope isn't necessarily visible. _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel