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

From: Matthew Wilcox
Date: Wed May 30 2018 - 07:22:48 EST


On Wed, May 30, 2018 at 09:10:47AM +0530, Souptick Joarder wrote:
> On Tue, May 29, 2018 at 11:04 PM, Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> > I see:
> >
> > mm/gup.c:817:15: warning: invalid assignment: |=
> > mm/gup.c:817:15: left side has type int
> > mm/gup.c:817:15: right side has type restricted vm_fault_t
> >
> > are you building with 'c=2' or 'C=2'?
>
> Building with C=2.
> Do I need to enable any separate FLAG ?

Nope. Here's what I have:

willy@bobo:~/kernel/souptick$ make C=2 mm/gup.o
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHECK arch/x86/purgatory/purgatory.c
CHECK arch/x86/purgatory/sha256.c
CHECK arch/x86/purgatory/string.c
arch/x86/purgatory/../boot/string.c:134:6: warning: symbol 'simple_strtol' was not declared. Should it be static?
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
DESCEND objtool
CHECK scripts/mod/empty.c
CHK scripts/mod/devicetable-offsets.h
CHECK mm/gup.c
mm/gup.c:817:15: warning: invalid assignment: |=
mm/gup.c:817:15: left side has type int
mm/gup.c:817:15: right side has type restricted vm_fault_t
CC mm/gup.o