Re: linux-next: build warning after merge of the tip tree

Ingo Molnar
2016-04-07T08:48:38Z

* Stephen Rothwell <sfr@canb.auug.org.au> wrote:

> Hi all,
>
> After merging the tip tree, today's linux-next build (powerpc ppc44x_defconfig)
> produced this warning:
>
> mm/gup.c: In function 'get_user_pages_fast':
> mm/gup.c:1510:20: warning: unused variable 'mm' [-Wunused-variable]
> struct mm_struct *mm = current->mm;
> ^
>
> Introduced by commit
>
> dc8cfd957d85 ("mm/gup: Remove the macro overload API migration helpers from the get_user*() APIs")

Indeed - and this only triggers on HAVE_GENERIC_RCU_GUP.

I've amended the commit.

Thanks,

Ingo