RE: [PATCH] staging: most: video: fixed a parentheses coding style issue.

David Laight
2020-12-18T10:40:33Z

From: Joe Perches
> Sent: 18 December 2020 10:09
> On Fri, 2020-12-18 at 09:49 +0000, David Laight wrote:
> > From: Joe Perches
> > checkpatch probably shouldn't complain about lines that end in (
> > if they are function definitions.
>
> Opinons vary.
>
> Very few function declaration/definitions in the linux kernel use the
> one line per argument style (gnu indent -bfde)
>
> type function(
> type argument1,
> type argument2,
> ...
> )
> {
> ...
> }
>
> It probably shouldn't be encouraged.

The only excuse for anything like that is if there are comments for
each parameter that are used to generate the interface documentation.

Using that style for function calls just wastes vertical space.
At least that doesn't happen in the kernel.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)