Re: [PATCH v3] mm: Change return type to vm_fault_t

From: Joe Perches
Date: Sun May 13 2018 - 04:56:41 EST


On Sat, 2018-05-12 at 19:51 -0700, Dan Williams wrote:
> On Sat, May 12, 2018 at 12:14 PM, Souptick Joarder <jrdr.linux@xxxxxxxxx> wrote:
> > > > It'd be nicer to realign the 2nd and 3rd arguments
> > > > on the subsequent lines.
> > > >
> > > > vm_fault_t (*fault)(const struct vm_special_mapping *sm,
> > > > struct vm_area_struct *vma,
> > > > struct vm_fault *vmf);
> > > >
> > > It'd be nicer if people didn't try to line up arguments at all and
> > > just indented by an extra two tabs when they had to break a logical
> > > line due to the 80-column limit.
> >
> > Matthew, there are two different opinions. Which one to take ?
>
> Unfortunately this is one of those "maintainer's choice" preferences
> that drives new contributors crazy. Just go with the two tabs like
> Matthew said and be done.

The only reason I mentioned it was the old function name
was aligned that way with arguments aligned to the open
parenthesis.

Renaming the function should keep the same alignment style
and not just rename the function.

- int (*fault)(const struct vm_special_mapping *sm,
+ vm_fault_t (*fault)(const struct vm_special_mapping *sm,
struct vm_area_struct *vma,
struct vm_fault *vmf);

Here the previous indent was 2 tabs, 5 spaces