From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751509AbcDGIsl (ORCPT ); Thu, 7 Apr 2016 04:48:41 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34016 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755272AbcDGIsi (ORCPT ); Thu, 7 Apr 2016 04:48:38 -0400 Date: Thu, 7 Apr 2016 10:48:33 +0200 From: Ingo Molnar To: Stephen Rothwell Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: linux-next: build warning after merge of the tip tree Message-ID: <20160407084833.GA2288@gmail.com> References: <20160407152603.173426e5@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160407152603.173426e5@canb.auug.org.au> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Stephen Rothwell 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