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

From: Ingo Molnar <[email-masked]>
Date: Thu, 7 Apr 2016 10:48:33 +0200

* Stephen Rothwell <[email-masked]> 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